/*
Theme Name: Envision Blank
Theme URI: https://envisiondigital.it
Author: Envision
Description: Tema minimale "vuoto" pensato per costruire le pagine interamente con il plugin Grapely. Non impone contenitori, larghezze o header/footer propri: la larghezza (boxed/full) e gli Header/Footer sono gestiti dal plugin. Essendo un tema classico, riabilita la voce "Aspetto > Menu" usata dal widget Navbar.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: envision-blank
*/

/*
 * Reset minimale: nessuna larghezza massima, nessun padding di layout - il
 * plugin gestisce da sé il boxing delle righe (.gjs-row / .gjs-row-inner).
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #1a1a1a;
  background: #eef1f6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

/* Il contenuto della pagina occupa tutta la larghezza disponibile: sono le
   righe del builder a decidere se restare boxed o full width. */
.site-main {
  width: 100%;
}

/* Layout con la sidebar principale: appare SOLO se l'area widget contiene
   widget (vedi index.php). Senza widget non viene nemmeno stampato questo
   wrapper, quindi la pagina resta a piena larghezza. Il contenuto si
   restringe alla larghezza del sito perché una sidebar affiancata a righe a
   piena larghezza non avrebbe senso. */
.site-content-wrap.has-sidebar {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}

.site-content-wrap.has-sidebar .site-content-main {
  flex: 1 1 0;
  min-width: 0;
}

.site-content-wrap.has-sidebar .site-sidebar {
  flex: 0 0 300px;
}

.site-sidebar .widget {
  margin-bottom: 28px;
}

.site-sidebar .widget-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

/* Su schermi stretti la sidebar va sotto il contenuto. */
@media (max-width: 782px) {
  .site-content-wrap.has-sidebar .site-sidebar {
    flex-basis: 100%;
  }
}

@font-face {
  font-family: "testttt";
  src: url('./fonts/fa-solid-900.woff2') format('woff2'),
       url('./fonts/fa-solid-900.woff') format('woff');
}