@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* Base */

html, body { overflow-x: clip; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;}


:root{
  --ml-content: var(--wp--style--global--content-size, 980px);
  --ml-wide:    var(--wp--style--global--wide-size, 1300px);
  --ml-gutter:  clamp(16px, 3vw, 32px);

  --bg: #fbf7f3;
 --ink: #5a5a60;

      --purple: #6a4a6d;
      --teal: #3b8e92;
      --teal-ink: #3a7f83;
      --gold: #c9a742;

      --pill-bg: rgba(180, 206, 206, .22);
      --pill-br: rgba(150, 190, 190, .45);

      --btn-br: rgba(60, 150, 155, .55);
      --btn-br-2: rgba(205, 165, 55, .75);

      --shadow: 0 18px 40px rgba(40, 30, 40, .18);
      --soft: 0 10px 25px rgba(30, 30, 40, .12);

      --radius: 999px;
      --container: 1180px;
    }
	



/* Blocchi normali: contenuti a larghezza contentSize */
.entry-content > :where(:not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull)){
  max-width: var(--ml-content);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--ml-gutter);
  padding-right: var(--ml-gutter);
  box-sizing: border-box;
}

/* Wide */
.entry-content > :where(.alignwide){
  max-width: var(--ml-wide);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--ml-gutter);
  padding-right: var(--ml-gutter);
  box-sizing: border-box;
}

/* Full */
.entry-content > :where(.alignfull){
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

  /* ===== CONTAINER ===== */
    .wrap{
      width: 1360px;
      position: relative;
      z-index: 1;
	  margin: auto;
    }

    /* ===== HEADER ===== */
    .header{
      display:grid;
      grid-template-columns: 0 1fr 1200px;
      align-items:center;
      gap: 14px;
      padding: 8px 6px 18px;
    }

.logo {width: 150px;}


    .nav{
      display:flex;
      justify-content:center;
      gap: 14px;
      flex-wrap:wrap;
    }

.nav li {list-style-type: none;}

    .nav a{
      font-size: 14px;
      text-decoration:none;
      color: rgba(58, 127, 131, .9);
      padding: 7px 14px;
      border-radius: var(--radius);
      background: var(--pill-bg);
      border: 1px solid var(--pill-br);
      line-height: 1;
      transition: transform .15s ease, background .15s ease;
      white-space: nowrap;
    }
    .nav a:hover{
      transform: translateY(-1px);
      background: rgba(180, 206, 206, .30);
    }

    /* hamburger (solo mobile) */
    .navToggle{
      justify-self:end;
      width: 46px; height: 46px;
      border-radius: var(--radius);
      background: transparent;
      border: 0;
      display:none;
      cursor:pointer;
    }
    .navToggle span{
      display:block;
      width: 22px; height: 2px;
      background: rgba(106, 74, 109, .85);
      margin: 5px auto;
      border-radius: 2px;
      transition: transform .2s ease, opacity .2s ease;
    }

  /* Texture/Acquerello generale (fallback). Sostituisci con PNG se li hai */
    .hero::before{
      content:"";
      position:absolute; inset:0;
      background: radial-gradient(520px 320px at 20% 35%, rgba(165, 215, 215, .18), transparent 60%), radial-gradient(520px 320px at 70% 25%, rgba(165, 140, 190, .16), transparent 60%), radial-gradient(520px 320px at 55% 75%, rgba(240, 220, 160, .14), transparent 60%);
      pointer-events:none;
      z-index:0;
    }



    /* ===== MOBILE HERO ===== */
    @media (max-width: 900px){


		 .wrap{
      width: 100%;
      position: relative;
      z-index: 1;
	  margin: auto;
    }

      .header{
        grid-template-columns: 1fr;
        justify-items:center;
        gap: 10px;
        padding-bottom: 10px;
      }

      .nav{
        display:none;
        width: 100%;
        justify-content:center;
        gap: 25px;
        padding: 8px 0 0;
      }
      .nav.is-open{ display:flex; }

      .navToggle{
        display:block;
        justify-self:center;
      }
}

/* =========================================================
   GLOSSARY – Base tokens (puoi cambiare qui)
   ========================================================= */
:root {
  --gls-max: 1100px;
  --gls-gap: 16px;
  --gls-radius: 14px;

  --gls-border: rgba(0, 0, 0, 0.10);
  --gls-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);

  --gls-bg: #ffffff;
  --gls-bg-soft: #f7f7f8;
  --gls-text: #111827;
  --gls-muted: rgba(17, 24, 39, 0.72);
  --gls-link: #1d4ed8;
  --gls-link-hover: #1e40af;
}

/* =========================================================
   Layout containers
   ========================================================= */
.glossary-archive,
.glossary-single {
  width: min(100%, var(--gls-max));
  margin-inline: auto;
  padding: 28px 16px;
  margin-top: 150px;
  color: var(--gls-text);
}

.glossary-archive .page-header,
.glossary-single .entry-header {
  margin-bottom: 18px;
}

.glossary-archive .page-title,
.glossary-single .entry-title {
  margin: 0 0 8px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.glossary-archive .archive-description {
  color: var(--gls-muted);
}

/* =========================================================
   Archive list (grid)
   ========================================================= */
/* ========= Glossary directory (A–Z) ========= */
:root{
  --gls-bg: #f6edf8;          /* lilla chiaro come screenshot */
  --gls-navy: #112a59;        /* blu scuro */
  --gls-pink: #6b4f6a;        /* fucsia link */
  --gls-pink-soft: rgba(255, 85, 163, .18);
  --gls-max: 1080px;
}

.glossary-page{
  padding: 54px 16px 70px;
  margin-top:100px;
}

.glossary-page > *{
  width: min(100%, var(--gls-max));
  margin-inline: auto;
}

.glossary-title{
  color: var(--gls-pink);
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

/* --- Alphabet bar --- */
.glossary-alpha{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 10px auto 26px;
  padding: 6px 0;
  /* se vuoi “sempre visibile” quando scrolli: */
  position: sticky;
  top: 0;
  z-index: 10;
}

.glossary-alpha__link{
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1;
  color: var(--gls-navy);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: transparent;
  padding: 6px 2px;
  border-radius: 8px;
}

.glossary-alpha__link[href]{
  color: var(--gls-pink);
}

.glossary-alpha__link[href]:hover{
  background: var(--gls-pink-soft);
  text-decoration-color: var(--gls-pink);
}

.glossary-alpha__link[href]:focus-visible{
  outline: 3px solid rgba(17, 42, 89, .25);
  outline-offset: 3px;
}

.glossary-alpha__link.is-disabled{
  opacity: .35;
  text-decoration: none;
  cursor: default;
}

/* --- Groups --- */
.glossary-groups{
  display: grid;
  gap: 22px;
}

.glossary-group{
  scroll-margin-top: 78px; /* per sticky alphabet */
}

.glossary-letter{
  margin: 0 0 8px;
  font-size: 28px;
  color: var(--gls-navy);
}

/* evidenzia la sezione target quando clicchi una lettera */
.glossary-group:target{
  background: rgba(255,255,255,.55);
  border-radius: 14px;
  padding: 12px 12px 6px;
  box-shadow: 0 10px 30px rgba(17, 42, 89, .06);
}

/* --- Items list --- */
.glossary-items{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.glossary-item{
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--gls-navy);
}

.glossary-bullet{
  color: var(--gls-navy);
  font-size: 20px;
  line-height: 1;
  transform: translateY(1px);
}

.glossary-link{
  color: var(--gls-pink);
  font-weight: 700;
  text-decoration: none;
}

.glossary-link:hover{
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Responsive fine-tuning */
@media (max-width: 520px){
  .glossary-alpha__link{ font-size: 16px; }
  .glossary-letter{ font-size: 26px; }
}

.glossary-single-nav{
  margin: 0 0 50px;
}

.glossary-back{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #6b4f6a;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid #6b4f6a;
}

.glossary-back:focus-visible{
  outline: 3px solid rgba(17, 42, 89, .22);
  outline-offset: 3px;
}

