/* AccademiAKUA™ — identità visiva 2026
   Palette ufficiale: #111f45 · #527fba · #a3c6da · #e7eff2
   Font: Outfit (sostituto web di Outfit Light + Bryant) */

:root {
  --navy: #111f45;
  --navy-2: #1a2b5c;
  --blu: #527fba;
  --blu-testo: #41689c; /* blu del marchio scurito per i testi: contrasto AA (5,7:1 su bianco) */
  --azzurro: #a3c6da;
  --ghiaccio: #e7eff2;
  --bianco: #ffffff;
  --testo: #111f45;
  --testo-2: #3d4a6b;
  --linea: rgba(17, 31, 69, .14);

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --r: 28px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --img-acqua: url("../img/acqua.jpg");
}
@media (max-width: 860px) { :root { --img-acqua: url("../img/acqua-m.jpg"); } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(16px, 1.05vw + 12px, 18px);
  line-height: 1.65;
  color: var(--testo);
  background: var(--bianco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 500; }
::selection { background: var(--azzurro); color: var(--navy); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 999px; }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-block;
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blu-testo);
  margin-bottom: 1.1rem;
}
h1, h2, h3, h4 { margin: 0 0 .6em; font-weight: 300; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); font-weight: 400; }
h4 { font-size: .85rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: var(--testo-2); max-width: 46ch; }
.caps { font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--testo-2); }

/* ---------- Bottoni (pillola con freccia, come nelle tavole) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .8em;
  padding: .85em 1.5em;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font: 500 .82rem/1 var(--font);
  letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn::after {
  content: ""; width: 26px; height: 10px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 10'%3E%3Cpath d='M0 5h24M20 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 10'%3E%3Cpath d='M0 5h24M20 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .3s var(--ease);
}
.btn:hover::after { transform: translateX(4px); }
.btn--solid { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--solid:hover { background: var(--blu-testo); border-color: var(--blu-testo); }
.btn--ghost { color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--light { color: #fff; }
.btn--light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
:focus-visible { outline: 2px solid var(--blu); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-color: var(--linea); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; color: var(--navy); text-decoration: none; }
.brand svg { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.nav a {
  text-decoration: none; font-weight: 400; font-size: .92rem; letter-spacing: .02em;
  color: var(--testo-2); position: relative; padding: 6px 0;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--blu); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: .7em 1.2em; font-size: .74rem; color: var(--navy); }
.nav .btn::after { display: none; }
.nav .btn:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--navy); }
.menu-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s var(--ease), opacity .2s; }

@media (max-width: 1020px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; height: calc(100dvh - 76px);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 24px var(--gutter) 40px; background: #fff;
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav a { font-size: 1.5rem; font-weight: 300; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--linea); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 24px; font-size: .85rem; width: auto; border-bottom: 1.5px solid currentColor; padding: 1em 1.6em; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ghiaccio) var(--img-acqua) center / cover no-repeat;
  padding: clamp(72px, 12vw, 150px) 0 clamp(80px, 12vw, 150px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 30% 45%, rgba(231, 239, 242, .92), rgba(231, 239, 242, .55) 60%, rgba(163, 198, 218, .35));
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 48px; }
.hero h1 { color: var(--navy); }
.hero h1 em { font-style: normal; color: var(--blu-testo); }
.hero__symbol { color: var(--navy); justify-self: center; width: min(100%, 300px); animation: float 9s ease-in-out infinite; }
.hero__symbol svg { width: 100%; filter: drop-shadow(0 30px 40px rgba(17, 31, 69, .12)); }
.hero__keys { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.hero__keys li { font-weight: 500; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--navy); padding: 0 18px; border-left: 1px solid var(--navy); line-height: 1.2; }
.hero__keys li:first-child { padding-left: 0; border-left: 0; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .hero__symbol { animation: none; } }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__symbol { order: -1; width: 120px; justify-self: start; }
}

/* Hero interno (pagine) */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--ghiaccio) var(--img-acqua) center / cover no-repeat;
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 100px);
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(231, 239, 242, .95) 30%, rgba(231, 239, 242, .5)); }
.page-hero .wrap { position: relative; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: .4rem; }
.page-hero--navy { background-color: var(--navy); color: #fff; }
.page-hero--navy::before { background: linear-gradient(100deg, rgba(17, 31, 69, .96) 35%, rgba(17, 31, 69, .7)); }
.page-hero--navy .eyebrow { color: var(--azzurro); }
.page-hero--navy .lead { color: rgba(255, 255, 255, .8); }

/* ---------- Sezioni ---------- */
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section--tight { padding: clamp(48px, 7vw, 88px) 0; }
.section--ghiaccio { background: var(--ghiaccio); }
.section--azzurro { background: var(--azzurro); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy .eyebrow { color: var(--azzurro); }
.section--navy .muted, .section--navy .lead { color: rgba(255, 255, 255, .75); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.1em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--blu-testo); }

/* ---------- Valori (4 simboli) ---------- */
.valori { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .16); }
.valore { padding: 40px 28px 8px; border-right: 1px solid rgba(255, 255, 255, .16); text-align: center; }
.valore:last-child { border-right: 0; }
.valore svg { width: 84px; height: 84px; margin: 0 auto 22px; color: var(--azzurro); transition: transform .6s var(--ease), color .4s; }
.valore:hover svg { transform: translateY(-6px); color: #fff; }
.valore h4 { color: #fff; margin-bottom: .7em; }
.valore p { font-size: .95rem; color: rgba(255, 255, 255, .7); margin: 0; }
@media (max-width: 860px) {
  .valori { grid-template-columns: 1fr 1fr; }
  .valore:nth-child(2) { border-right: 0; }
  .valore:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .16); padding-bottom: 32px; }
}

/* Fascia valori a 4 colori (pagina accademia) */
.palette-band { display: grid; grid-template-columns: repeat(4, 1fr); }
.palette-band > div { padding: clamp(36px, 5vw, 64px) 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-height: 280px; justify-content: space-between; }
.palette-band svg { width: 72px; height: 72px; }
.palette-band .p1 { background: var(--navy); color: #fff; } .palette-band .p1 svg { color: var(--blu-testo); }
.palette-band .p2 { background: var(--blu-testo); color: #fff; } .palette-band .p2 svg { color: var(--azzurro); }
.palette-band .p3 { background: var(--azzurro); color: var(--navy); } .palette-band .p3 svg { color: var(--navy); }
.palette-band .p4 { background: var(--ghiaccio); color: var(--navy); } .palette-band .p4 svg { color: var(--blu-testo); }
.palette-band h4 { margin: 0 0 .5em; }
.palette-band p { font-size: .95rem; margin: 0; opacity: .85; }
@media (max-width: 860px) { .palette-band { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .palette-band { grid-template-columns: 1fr; } .palette-band > div { min-height: 0; flex-direction: row; align-items: center; } }

/* ---------- Dipartimenti ---------- */
.dipartimenti { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dip {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--linea); border-radius: var(--r);
  padding: 36px 32px 32px; text-decoration: none;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.dip:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(17, 31, 69, .35); border-color: transparent; }
.dip__logo { height: 92px; display: flex; align-items: center; margin-bottom: 28px; }
.dip__logo img { max-height: 92px; width: auto; max-width: 200px; object-fit: contain; }
.dip h3 { margin-bottom: .3em; }
.dip .tags { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blu-testo); font-weight: 500; margin-bottom: 1em; }
.dip p { color: var(--testo-2); font-size: .98rem; }
.dip .more { margin-top: auto; padding-top: 12px; font-weight: 500; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); }
@media (max-width: 900px) { .dipartimenti { grid-template-columns: 1fr; } }

/* ---------- Percorsi (liste corsi) ---------- */
.percorso { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 6vw, 88px); padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--linea); }
.percorso:first-of-type { border-top: 0; padding-top: 0; }
.percorso__intro { position: sticky; top: 110px; align-self: start; }
.percorso__intro img { max-height: 100px; width: auto; margin-bottom: 28px; }
.percorso__intro p { color: var(--testo-2); }
.corsi { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.corsi li { counter-increment: c; display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--linea); }
.corsi li::before { content: counter(c, decimal-leading-zero); font-weight: 500; font-size: .8rem; letter-spacing: .1em; color: var(--blu-testo); padding-top: .35em; }
.corsi strong { display: block; font-weight: 400; font-size: 1.15rem; line-height: 1.35; }
.corsi span { color: var(--testo-2); font-size: .95rem; }
@media (max-width: 860px) { .percorso { grid-template-columns: 1fr; } .percorso__intro { position: static; } }

/* ---------- Eventi ---------- */
.eventi { display: grid; gap: 20px; }
.evento {
  display: grid; grid-template-columns: 200px 1fr auto; gap: clamp(20px, 4vw, 48px); align-items: center;
  padding: 32px clamp(24px, 3vw, 40px);
  background: #fff; border-radius: var(--r); border: 1px solid var(--linea);
  transition: border-color .3s, box-shadow .4s var(--ease);
}
.evento:hover { border-color: transparent; box-shadow: 0 24px 50px -28px rgba(17, 31, 69, .35); }
.evento__data { color: var(--navy); }
.evento__data .gg { display: block; font-size: clamp(1.8rem, 2.6vw, 2.3rem); font-weight: 300; line-height: 1.05; }
.evento__data .mese { display: block; font-weight: 500; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blu-testo); margin-top: 6px; }
.evento h3 { margin-bottom: .25em; }
.evento .luogo { font-weight: 500; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--testo-2); margin-bottom: .6em; display: block; }
.evento p { margin: 0; color: var(--testo-2); font-size: .98rem; }
.evento .btn { white-space: nowrap; }
@media (max-width: 820px) { .evento { grid-template-columns: 1fr; gap: 14px; } }

.evento-full { display: grid; grid-template-columns: 1fr 1.2fr; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--linea); }
.evento-full + .evento-full { margin-top: 28px; }
.evento-full__media { background: var(--navy) var(--img-acqua) center top / cover no-repeat; min-height: 420px; position: relative; color: #fff; padding: 36px; display: flex; flex-direction: column; justify-content: flex-end; }
.evento-full__media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 31, 69, .1), rgba(17, 31, 69, .85)); }
.evento-full__media > * { position: relative; }
.evento-full__media .gg { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 300; line-height: 1.1; }
.evento-full__media .luogo { font-weight: 500; letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; color: var(--azzurro); margin-bottom: 8px; }
.evento-full__body { padding: clamp(28px, 4vw, 48px); }
.evento-full__body ul { padding-left: 1.1em; margin: 0 0 1.2em; }
.evento-full__body li::marker { color: var(--blu-testo); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.meta li { font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; background: var(--ghiaccio); color: var(--navy); padding: 6px 12px; border-radius: 999px; }
.moduli { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 1.2rem 0 1.4rem; }
.modulo { background: var(--ghiaccio); border-radius: 18px; padding: 20px 22px; }
.modulo h4 { color: var(--blu-testo); margin-bottom: .6em; }
.modulo ul { padding-left: 1em; margin: 0 0 .6em; font-size: .95rem; }
.modulo small { font-size: .8rem; color: var(--testo-2); letter-spacing: .06em; }
@media (max-width: 860px) { .evento-full { grid-template-columns: 1fr; } .evento-full__media { min-height: 220px; } }

/* ---------- Persona / ritratto ---------- */
.ritratto { position: relative; width: min(100%, 440px); justify-self: center; }
.ritratto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 999px 999px var(--r) var(--r); }
.ritratto__sigillo { position: absolute; right: -18px; bottom: 28px; width: 92px; height: 92px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: 0 16px 30px -10px rgba(17, 31, 69, .5); }
.ritratto__sigillo svg { width: 46px; }
.firma { font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; color: var(--blu-testo); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.persona { background: #fff; border-radius: var(--r); padding: 32px; border: 1px solid var(--linea); }
.persona .ruolo { font-weight: 500; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blu-testo); margin-bottom: .8em; display: block; }
.persona h3 { margin-bottom: .5em; }
.persona p { font-size: .96rem; color: var(--testo-2); margin: 0; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }

/* ---------- Liste con icona / benefici ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--linea); }
.checklist li::before { content: ""; width: 14px; height: 18px; margin-top: .3em; background: var(--blu); -webkit-mask: url("../icons/goccia.svg") center/contain no-repeat; mask: url("../icons/goccia.svg") center/contain no-repeat; }
.section--navy .checklist li { border-color: rgba(255, 255, 255, .16); }
.section--navy .checklist li::before { background: var(--azzurro); }

.principi { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.principio { background: #fff; border-radius: 22px; padding: 28px 24px; }
.principio .n { font-weight: 500; font-size: .78rem; letter-spacing: .12em; color: var(--blu-testo); }
.principio h3 { margin: .9em 0 .4em; font-size: 1.25rem; }
.principio p { margin: 0; font-size: .94rem; color: var(--testo-2); }
@media (max-width: 1000px) { .principi { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .principi { grid-template-columns: 1fr; } }

.tre-vie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.16); border-radius: var(--r); overflow: hidden; }
.tre-vie > div { background: var(--navy); padding: 40px 32px; }
.tre-vie h3 { color: #fff; }
.tre-vie p { color: rgba(255, 255, 255, .75); font-size: .98rem; }
.tre-vie .focus { font-weight: 500; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--azzurro); }
@media (max-width: 900px) { .tre-vie { grid-template-columns: 1fr; } }

.nota { border-left: 2px solid var(--blu); padding: 4px 0 4px 22px; color: var(--testo-2); font-size: .95rem; }

.citazione { font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.25; font-weight: 300; max-width: 24ch; margin: 0 auto; text-align: center; color: var(--navy); }
.citazione strong { font-weight: 500; }

/* ---------- Certificazioni ---------- */
.cert { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cert .card { background: #fff; border-radius: var(--r); padding: 36px; border: 1px solid var(--linea); }
.cert img { max-height: 70px; width: auto; margin-bottom: 24px; }
.badge { display: inline-block; font-weight: 500; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--ghiaccio); color: var(--navy); }
.badge--ok { background: var(--navy); color: #fff; }
@media (max-width: 860px) { .cert { grid-template-columns: 1fr; } }

/* ---------- Operatori ---------- */
.filtri { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 28px; }
.filtri input[type="search"] {
  flex: 1 1 260px; min-width: 0; font: inherit; font-size: 1rem; color: var(--navy);
  padding: 14px 20px; border-radius: 999px; border: 1px solid var(--linea); background: #fff;
}
.chip { font: 500 .76rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--linea); background: #fff; color: var(--testo-2); cursor: pointer; transition: all .25s; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.op-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.op { background: #fff; border-radius: 22px; padding: 26px; border: 1px solid var(--linea); display: flex; flex-direction: column; gap: 6px; }
.op__top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.op h3 { font-size: 1.15rem; margin: 0; }
.op .liv { flex: none; font-weight: 500; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--ghiaccio); color: var(--navy); }
.op .liv--master { background: var(--navy); color: #fff; }
.op .loc { font-size: .92rem; color: var(--testo-2); }
.op .abil { font-size: .9rem; color: var(--testo-2); }
.op .modi { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.op .modi span { font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--blu-testo); }
.op .modi span + span::before { content: "·"; margin-right: 6px; color: var(--azzurro); }
.op a { margin-top: 8px; font-size: .9rem; color: var(--blu-testo); text-decoration: none; word-break: break-all; }
.op a:hover { text-decoration: underline; }
.op--off { background: #f7f9fa; }
.op--off :is(h3, .loc, .alma-breve, .modi span, a) { color: var(--testo-2); }
.op-empty { padding: 32px; text-align: center; color: var(--testo-2); }
.tabs { display: flex; gap: 6px; padding: 6px; background: var(--ghiaccio); border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto; margin-bottom: 36px; }
.tabs button { font: 500 .8rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; padding: 14px 20px; border-radius: 999px; border: 0; background: transparent; color: var(--testo-2); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 4px 14px -6px rgba(17, 31, 69, .25); }
@media (max-width: 600px) {
  .tabs { flex-direction: column; width: 100%; border-radius: 24px; overflow: visible; }
  .tabs button { white-space: normal; text-align: left; display: flex; justify-content: space-between; align-items: center; border-radius: 18px; }
}

/* ---------- Contatti / form ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-weight: 500; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.form input, .form select, .form textarea {
  font: 300 1rem/1.5 var(--font); color: var(--navy); text-transform: none; letter-spacing: 0;
  padding: 14px 18px; border-radius: 16px; border: 1px solid var(--linea); background: #fff; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blu); box-shadow: 0 0 0 4px rgba(82, 127, 186, .15); }
.form textarea { min-height: 150px; resize: vertical; }
.form .privacy { display: flex; gap: 12px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-weight: 300; font-size: .9rem; color: var(--testo-2); }
.form .privacy input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.form button { justify-self: start; cursor: pointer; font-family: var(--font); }
.form-msg { font-size: .95rem; color: var(--blu-testo); min-height: 1.5em; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }

.contatto-box { background: var(--navy); color: #fff; border-radius: var(--r); padding: clamp(32px, 4vw, 48px); position: relative; overflow: hidden; }
.contatto-box::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; background: url("../icons/simbolo-bianco.svg") center/contain no-repeat; opacity: .06; }
.contatto-box h3 { color: #fff; }
.contatto-box a { color: var(--azzurro); text-decoration: none; }
.contatto-box a:hover { text-decoration: underline; }
.contatto-box dl { margin: 0; display: grid; gap: 20px; }
.contatto-box dt { font-weight: 500; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 4px; }
.contatto-box dd { margin: 0; font-size: 1.05rem; }

/* ---------- CTA finale ---------- */
.cta {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: var(--navy) var(--img-acqua) center / cover no-repeat;
  padding: clamp(80px, 11vw, 140px) 0;
}
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(17, 31, 69, .88); }
.cta .wrap { position: relative; }
.cta svg.cta__symbol { width: 64px; margin: 0 auto 28px; color: var(--azzurro); }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta p { color: rgba(255, 255, 255, .78); max-width: 52ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); padding: 80px 0 32px; font-size: .95rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer .brand { color: #fff; margin-bottom: 20px; }
.site-footer .brand svg { height: 54px; }
.site-footer .footer-h { color: #fff; font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; line-height: 1.15; margin: 0 0 1.2em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: rgba(255, 255, 255, .72); transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; font-size: .82rem; color: rgba(255, 255, 255, .5); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Animazioni all'ingresso ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
/* Prima schermata: visibile subito, senza attendere lo script */
.hero .reveal, .page-hero .reveal { opacity: 1; transform: none; transition: none; animation: entra .6s var(--ease) both; }
.hero .reveal:nth-child(2) { animation-delay: .06s; } .hero .reveal:nth-child(3) { animation-delay: .12s; } .hero .reveal:nth-child(4) { animation-delay: .18s; }
@keyframes entra { from { opacity: .35; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero .reveal, .page-hero .reveal { animation: none; } }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Contenuto editor a blocchi (.entry) ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.entry { padding: clamp(56px, 8vw, 110px) 0; }
.entry > * { width: min(100% - 2 * var(--gutter), 760px); margin-left: auto; margin-right: auto; }
.entry > .alignwide, .entry > .akua-wide { width: min(100% - 2 * var(--gutter), var(--wrap)); }
.entry > .alignfull, .entry > .akua-section { width: 100%; }
.entry > :first-child { margin-top: 0; }
.entry > .akua-section:first-child { margin-top: calc(-1 * clamp(56px, 8vw, 110px)); }
.entry > .akua-section:last-child { margin-bottom: calc(-1 * clamp(56px, 8vw, 110px)); }
.entry h2 { margin-top: 1.4em; }
.entry h3 { margin-top: 1.4em; }
.entry .wp-block-list { padding-left: 1.1em; margin: 0 0 1.4em; }
.entry .wp-block-list li { margin-bottom: .45em; }
.entry .wp-block-list li::marker { color: var(--blu-testo); }
.entry .lead { max-width: none; }
.entry a:not(.btn) { color: var(--blu-testo); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Sezione a tutta larghezza: gruppo con classe "akua-section" (+ is-ghiaccio | is-navy | is-azzurro) */
.akua-section { padding: clamp(64px, 9vw, 120px) 0; margin: clamp(48px, 7vw, 96px) 0; }
.akua-section > * { width: min(100% - 2 * var(--gutter), 760px); margin-left: auto; margin-right: auto; }
.akua-section > .akua-wide, .akua-section > .wp-block-columns, .akua-section > .principi, .akua-section > .tre-vie, .akua-section > .team, .akua-section > .cert, .akua-section > .percorsi, .akua-section > .operatori { width: min(100% - 2 * var(--gutter), var(--wrap)); }
.akua-section > :first-child { margin-top: 0; }
.akua-section > :last-child { margin-bottom: 0; }
.akua-section + .akua-section { margin-top: calc(-1 * clamp(48px, 7vw, 96px)); }
.akua-section.is-ghiaccio { background: var(--ghiaccio); }
.akua-section.is-azzurro { background: var(--azzurro); }
.akua-section.is-navy { background: var(--navy); color: #fff; }
.akua-section.is-navy .eyebrow { color: var(--azzurro); }
.akua-section.is-navy .lead, .akua-section.is-navy p { color: rgba(255, 255, 255, .8); }
.akua-section.is-navy .wp-block-list li::marker { color: var(--azzurro); }
.akua-section.is-acqua { background: var(--ghiaccio) var(--img-acqua) center / cover; position: relative; }

.entry .wp-block-columns { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 72px); margin-bottom: 1.6em; }
.entry .wp-block-column { flex: 1 1 280px; min-width: 0; }
.entry .wp-block-column > :first-child { margin-top: 0; }

/* Card generiche dentro l'editor: gruppo con classe "akua-card" */
.akua-card { background: #fff; border-radius: var(--r); padding: clamp(28px, 3vw, 40px); border: 1px solid var(--linea); }
.akua-section.is-navy .akua-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); }
.akua-card > :first-child { margin-top: 0; }
.akua-card > :last-child { margin-bottom: 0; }
.akua-card .eyebrow { margin-bottom: .6rem; }

/* Griglie: gruppo con classe "akua-grid-2|3|5" */
.akua-grid-2, .akua-grid-3, .akua-grid-5 { display: grid; gap: 16px; }
.akua-grid-2 { grid-template-columns: repeat(2, 1fr); }
.akua-grid-3 { grid-template-columns: repeat(3, 1fr); }
.akua-grid-5 { grid-template-columns: repeat(5, 1fr); }
.entry > .akua-grid-2, .entry > .akua-grid-3, .entry > .akua-grid-5,
.akua-section > .akua-grid-2, .akua-section > .akua-grid-3, .akua-section > .akua-grid-5 { width: min(100% - 2 * var(--gutter), var(--wrap)); }
.akua-grid-5 .akua-card { padding: 26px 22px; border-radius: 22px; }
.akua-grid-5 h3 { font-size: 1.2rem; margin: 0 0 .4em; }
.akua-grid-5 p { font-size: .94rem; }
@media (max-width: 1000px) { .akua-grid-5 { grid-template-columns: 1fr 1fr; } .akua-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .akua-grid-2, .akua-grid-5 { grid-template-columns: 1fr; } }

.entry .nota, .nota { margin-top: 1.6em; }
.entry .akua-section .eyebrow, .entry .eyebrow { display: block; }
.entry .wp-block-shortcode { width: auto; }
.entry > .percorsi, .entry > .operatori, .entry > .eventi { width: min(100% - 2 * var(--gutter), var(--wrap)); }

/* Pagine WooCommerce (shop riservato) */
.woocommerce .entry > *, .woocommerce-page .entry > * { width: min(100% - 2 * var(--gutter), var(--wrap)); }
.woocommerce .button, .woocommerce button.button { font-family: var(--font) !important; border-radius: 999px !important; background: var(--navy) !important; color: #fff !important; font-weight: 500 !important; letter-spacing: .08em; }
.woocommerce .button:hover { background: var(--blu-testo) !important; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--blu) !important; background: var(--ghiaccio) !important; }

.entry .checklist { padding-left: 0; list-style: none; }
.entry .checklist li { margin: 0; }
.entry .checklist li::marker { content: none; }
.evento-full__content > :last-child { margin-bottom: 1.2em; }
.evento-full__content .moduli { margin-top: 0; }
.footer-titolare { flex-basis: 100%; margin: 0 0 6px; color: rgba(255, 255, 255, .62); line-height: 1.6; }
.footer-legale { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-bottom a { color: rgba(255, 255, 255, .72); }
.footer-bottom a:hover, .footer-bottom a:focus-visible { color: #fff; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ---------- Rifiniture mobile ---------- */
@media (max-width: 860px) {
  .valori { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .valore { padding: 32px 12px 24px; }
  .valore svg { width: 64px; height: 64px; }
  .valore h4 { letter-spacing: .1em; font-size: .74rem; }
  .valore p { font-size: .88rem; }
  .hero__keys li { padding: 0 10px; letter-spacing: .16em; font-size: .7rem; }
  .hero__symbol { width: 84px; }
  .dip { padding: 28px 24px; }
  .evento-full__media { padding: 28px 24px; }
}
.tabs .tab-n { display: inline-block; margin-left: 6px; font-size: .72rem; color: inherit; }

/* ---------- Header: area allievi / carrello ---------- */
.nav-ico { display: inline-flex !important; align-items: center; gap: 6px; position: relative; }
.nav-ico::after { display: none !important; }
.nav-ico__label { font-size: .92rem; }
.nav-ico__n { position: absolute; top: -2px; left: 12px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--blu-testo); color: #fff; font-size: .62rem; font-weight: 500; display: grid; place-items: center; }
@media (min-width: 1021px) { .nav-ico__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- Blog ---------- */
.articoli { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.articolo { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linea); border-radius: var(--r); overflow: hidden; text-decoration: none; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.articolo:hover { transform: translateY(-5px); box-shadow: 0 28px 56px -30px rgba(17, 31, 69, .35); }
.articolo__media { aspect-ratio: 16 / 10; background: var(--ghiaccio) var(--img-acqua) center / cover; display: grid; place-items: center; color: var(--navy); overflow: hidden; }
.articolo__media svg { width: 56px; opacity: .85; }
.articolo__media img { width: 100%; height: 100%; object-fit: cover; }
.articolo__body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.articolo__meta { font-weight: 500; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blu-testo); }
.articolo h2 { font-size: 1.35rem; font-weight: 400; margin: 0; }
.articolo p { color: var(--testo-2); font-size: .95rem; margin: 0; }
.articolo .more { margin-top: auto; padding-top: 10px; font-weight: 500; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; }
.filtri a.chip { text-decoration: none; }
.paginazione { margin-top: 40px; }
.paginazione .nav-links { display: flex; gap: 8px; }
.paginazione .page-numbers { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--linea); text-decoration: none; }
.paginazione .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.articolo-cover img { border-radius: var(--r); width: 100%; }
.entry .wp-block-quote { border-left: 2px solid var(--blu); margin: 0 0 1.6em; padding: 4px 0 4px 24px; }
.entry .wp-block-quote p { font-size: 1.4rem; line-height: 1.4; color: var(--navy); }
.entry .wp-block-quote cite { font-style: normal; font-weight: 500; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blu-testo); }
@media (max-width: 900px) { .articoli { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .articoli { grid-template-columns: 1fr; } }

/* ---------- Shop allievi (WooCommerce) ---------- */
.shop .akua-wide { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 28px !important; color: var(--testo-2); font-size: .9rem; }
.woocommerce .woocommerce-ordering select { font: inherit; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--linea); }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; background: #fff; border: 1px solid var(--linea); border-radius: var(--r); padding: 18px 18px 24px !important; display: flex; flex-direction: column; }
.woocommerce ul.products li.product a img { border-radius: 18px; background: var(--ghiaccio); aspect-ratio: 1; object-fit: cover; margin-bottom: 16px !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font); font-weight: 400 !important; font-size: 1.1rem !important; color: var(--navy); padding: 0 4px !important; }
.woocommerce ul.products li.product .price { color: var(--blu-testo) !important; font-weight: 500; font-size: 1rem !important; padding: 0 4px; }
.woocommerce ul.products li.product .button { margin-top: auto !important; align-self: flex-start; }
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images img { border-radius: var(--r); background: var(--ghiaccio); }
.woocommerce div.product .product_title { font-weight: 300; font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.woocommerce div.product p.price { color: var(--blu-testo) !important; font-size: 1.4rem !important; font-weight: 400; }
.woocommerce div.product form.cart .qty { font: inherit; padding: 10px; border-radius: 999px; border: 1px solid var(--linea); width: 80px; text-align: center; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 0 !important; background: var(--ghiaccio) !important; border-radius: 999px !important; margin-right: 6px !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--navy) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff !important; }
.woocommerce span.onsale { background: var(--blu-testo) !important; }
.woocommerce .woocommerce-breadcrumb { display: none; }
@media (max-width: 900px) { .woocommerce ul.products { grid-template-columns: 1fr 1fr; } .woocommerce div.product { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .woocommerce ul.products { grid-template-columns: 1fr; } }
.percorso__intro img { width: auto; max-width: 220px; max-height: 84px; }

/* ---------- Shop ALMATEA ---------- */
.shop-hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.shop-hero__logo { width: clamp(120px, 16vw, 220px); height: auto; opacity: .9; }
@media (max-width: 700px) { .shop-hero .wrap { grid-template-columns: 1fr; } .shop-hero__logo { order: -1; width: 110px; } }
.akua-cat { margin-bottom: 32px; }
.woocommerce ul.products li.product a img { background: var(--ghiaccio); padding: 8%; object-fit: contain !important; }
.woocommerce div.product div.images img { padding: 8%; object-fit: contain; }
.akua-formato { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--testo-2); padding: 0 4px; margin: -4px 0 6px; }
p.akua-formato { padding: 0; margin: 0 0 1em; }
.akua-prezzo-nota { font-size: .9rem; font-weight: 500; letter-spacing: .06em; color: var(--blu-testo); }
.woocommerce span.onsale.akua-badge { background: var(--navy) !important; border-radius: 999px; min-height: 0; min-width: 0; line-height: 1; padding: 8px 12px; font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; top: 26px; left: 26px; }
.woocommerce a.button.akua-richiedi { background: transparent !important; color: var(--navy) !important; border: 1.5px solid var(--navy) !important; }
.woocommerce a.button.akua-richiedi:hover { background: var(--navy) !important; color: #fff !important; }
.akua-shop-info { margin-top: clamp(48px, 7vw, 88px); }
.akua-shop-info .akua-section { margin: 0; border-radius: var(--r); padding: clamp(40px, 6vw, 72px) 0; }
.akua-shop-info .akua-section > * { width: min(100% - 48px, 760px); }
.wp-block-details { margin: 1.4em 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); padding: 14px 0; }
.wp-block-details summary { cursor: pointer; font-weight: 500; letter-spacing: .04em; color: var(--navy); }
.wp-block-details ul { columns: 2; column-gap: 32px; margin-top: 14px; font-size: .92rem; }
@media (max-width: 600px) { .wp-block-details ul { columns: 1; } }
.woocommerce div.product .woocommerce-product-attributes th { font-weight: 500; }
.akua-section > .wp-block-list, .akua-section > .wp-block-details { margin-left: auto; margin-right: auto; }

/* ---------- Area allievi (Il mio account) ---------- */
.woocommerce-account .entry .woocommerce { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 4vw, 56px); width: min(100% - 2 * var(--gutter), var(--wrap)); }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { width: auto !important; float: none !important; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: sticky; top: 110px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 11px 16px; border-radius: 14px; text-decoration: none; color: var(--testo-2); font-size: .96rem; }
.woocommerce-MyAccount-navigation a:hover { background: var(--ghiaccio); color: var(--navy); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--navy); color: #fff; }
.woocommerce-MyAccount-navigation-link--percorso { margin-top: 10px; }
.woocommerce-MyAccount-navigation-link--profilo-operatore { margin-bottom: 10px; }
.woocommerce-MyAccount-content h3 { font-size: 1.3rem; margin-top: 1.6em; }
.woocommerce-MyAccount-content h3:first-child { margin-top: 0; }
@media (max-width: 820px) {
  .woocommerce-account .entry .woocommerce { grid-template-columns: 1fr; }
  .woocommerce-MyAccount-navigation ul { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .woocommerce-MyAccount-navigation a { white-space: nowrap; background: var(--ghiaccio); }
  .woocommerce-MyAccount-navigation-link--percorso, .woocommerce-MyAccount-navigation-link--profilo-operatore { margin: 0; }
}
.area-riepilogo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 1.4em 0; }
.area-tile { background: var(--ghiaccio); border-radius: 22px; padding: 22px; text-decoration: none; color: var(--navy); display: flex; flex-direction: column; gap: 4px; transition: background .3s; }
.area-tile:hover { background: var(--azzurro); }
.area-tile__n { font-size: 2.2rem; font-weight: 300; line-height: 1; }
.area-tile span:last-child { font-size: .9rem; color: var(--testo-2); }
@media (max-width: 600px) { .area-riepilogo { grid-template-columns: 1fr; } }
.area-lista li { grid-template-columns: 44px 1fr; padding: 14px 0; }
.area-form { margin-bottom: 1em; }
.area-form > summary { list-style: none; cursor: pointer; display: inline-flex; }
.area-form > summary::-webkit-details-marker { display: none; }
.area-form[open] > summary { margin-bottom: 24px; }
.area-form .form { background: var(--ghiaccio); padding: clamp(20px, 3vw, 32px); border-radius: var(--r); }
.tirocini { display: grid; gap: 12px; }
.tirocinio { border: 1px solid var(--linea); border-left: 4px solid #dba617; border-radius: 16px; padding: 18px 22px; background: #fff; }
.tirocinio--approvato { border-left-color: #2e9e5b; }
.tirocinio--da_rivedere { border-left-color: #c94a4a; }
.tirocinio__top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tirocinio .stato { font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--testo-2); }
.tirocinio__meta { font-size: .88rem; color: var(--testo-2); margin: 4px 0 8px; }
.tirocinio p { margin: 8px 0 0; font-size: .95rem; }
.tirocinio__azioni { display: flex; gap: 18px; margin-top: 10px; font-size: .9rem; }
.tirocinio__azioni a { color: var(--blu-testo); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #c94a4a; cursor: pointer; }
.materiali { display: grid; gap: 12px; }
.materiale { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center; border: 1px solid var(--linea); border-radius: 18px; padding: 16px 20px; }
.materiale__tipo { width: 56px; height: 56px; border-radius: 14px; background: var(--ghiaccio); display: grid; place-items: center; font-size: .72rem; font-weight: 500; letter-spacing: .08em; color: var(--blu-testo); }
.materiale__titolo { text-transform: none; letter-spacing: 0; font-size: 1.05rem; font-weight: 400; margin: 0; }
.materiale p { margin: 4px 0 0; font-size: .92rem; color: var(--testo-2); }
.materiale__corsi { font-size: .78rem; color: var(--blu-testo); }
@media (max-width: 600px) { .materiale { grid-template-columns: 1fr; } .materiale__tipo { display: none; } }
.woocommerce-account .entry .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-account .entry .woocommerce > .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-MyAccount-content > p:first-child { color: var(--testo-2); }
.woocommerce-account .entry .woocommerce::before, .woocommerce-account .entry .woocommerce::after { display: none !important; }
@media (max-width: 960px) {
  .woocommerce-account .entry .woocommerce { grid-template-columns: 1fr; }
  .woocommerce-MyAccount-navigation ul { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .woocommerce-MyAccount-navigation a { white-space: nowrap; background: var(--ghiaccio); }
  .woocommerce-MyAccount-navigation-link--percorso, .woocommerce-MyAccount-navigation-link--profilo-operatore { margin: 0; }
}
.woocommerce-account .entry .woocommerce { grid-template-columns: 240px minmax(0, 1fr); }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { min-width: 0; }
@media (max-width: 960px) { .woocommerce-account .entry .woocommerce { grid-template-columns: minmax(0, 1fr); } }
.accesso { max-width: 520px; }
.accesso h2 { font-size: 1.6rem; }
.accesso .form { background: var(--ghiaccio); padding: clamp(22px, 3vw, 32px); border-radius: var(--r); }

/* Intestazione con logo (es. Trattamenti AKUA) */
.page-hero--logo .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.page-hero__logo { width: clamp(150px, 20vw, 280px); height: auto; }
@media (max-width: 700px) { .page-hero--logo .wrap { grid-template-columns: 1fr; } .page-hero__logo { order: -1; width: 150px; } }
.team--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .team--2 { grid-template-columns: 1fr; } }

/* Canalizzatori A.L.M.A.: tipo di lettura */
.filtri--tipo { margin: -8px 0 22px; }
.alma-tipo { display: inline-block; font-weight: 500; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--ghiaccio); color: var(--navy); margin: 6px 0 2px; }
.alma-tipo--medio { background: var(--azzurro); }
.alma-tipo--master { background: var(--navy); color: #fff; }
.alma-breve { font-size: .9rem; color: var(--testo-2); margin: 6px 0 4px; }
.alma-dettagli summary { cursor: pointer; font-size: .82rem; font-weight: 500; color: var(--blu-testo); }
.alma-dettagli[open] summary { margin-bottom: 8px; }
.alma-dettagli p, .alma-dettagli li { font-size: .86rem; color: var(--testo-2); }
.alma-dettagli ul { padding-left: 1.1em; margin: 0 0 .8em; }
.alma-dettagli li::marker { color: var(--blu-testo); }
.alma-tipo--completo { background: var(--azzurro); }
.alma-tipo--avanzato { background: var(--blu-testo); color: #fff; }

/* Area allievi → Iscrizioni ai percorsi */
.iscrizioni { display: grid; gap: 12px; margin-top: 1em; }
.iscr { display: grid; grid-template-columns: 180px 1fr; gap: 20px; border: 1px solid var(--linea); border-radius: 18px; padding: 20px 22px; }
.iscr--confermata { border-left: 4px solid #2e9e5b; }
.iscr--richiesta { border-left: 4px solid #dba617; }
.iscr__data strong { display: block; font-weight: 400; font-size: 1.05rem; color: var(--navy); }
.iscr__data span { font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blu-testo); }
.iscr h4 { text-transform: none; letter-spacing: 0; font-size: 1.1rem; font-weight: 400; margin: 0 0 .3em; }
.iscr p { margin: 0 0 .6em; font-size: .94rem; color: var(--testo-2); }
.iscr__stato { font-weight: 500; color: var(--navy) !important; }
.iscr__form > summary { list-style: none; display: inline-flex; cursor: pointer; }
.iscr__form > summary::-webkit-details-marker { display: none; }
.iscr__form[open] > summary { display: none; }
.iscr__form .form { background: var(--ghiaccio); padding: 18px; border-radius: 16px; }
@media (max-width: 600px) { .iscr { grid-template-columns: 1fr; gap: 8px; } }

/* Registro tirocini: riepilogo e tabelle per tipologia */
.tabella-wrap { overflow-x: auto; margin: 12px 0 20px; }
.tabella { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; }
.tabella th, .tabella td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--linea); }
.tabella thead th { font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--testo-2); background: var(--ghiaccio); }
.tabella--riepilogo td { font-variant-numeric: tabular-nums; }
.tabella--riepilogo th[scope="row"] a { color: var(--navy); font-weight: 500; }
.tabella .nowrap { white-space: nowrap; }
.tabella .stato { font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #2e9e5b; }
.tabella .tirocinio--in_attesa .stato { color: #b8860b; }
.tabella .tirocinio--da_rivedere .stato { color: #c94a4a; }
.tabella .nota { margin-top: 6px; font-size: .85rem; color: var(--testo-2); }
.tabella .tirocinio__azioni { margin-top: 6px; gap: 12px; font-size: .82rem; }
.tirocini-gruppo { border: 1px solid var(--linea); border-radius: 16px; padding: 14px 18px; margin-bottom: 12px; background: #fff; }
.tirocini-gruppo > summary { cursor: pointer; }
.tirocini-gruppo .tabella-wrap { margin-bottom: 0; }

/* Selettore lingua GTranslate: in basso a sinistra, così non copre menu e icone dell'intestazione */
#gt_float_wrapper { top: auto !important; bottom: 16px !important; left: 16px !important; right: auto !important; z-index: 40 !important; }
#gt_float_wrapper .gt_float_switcher { display: flex; flex-direction: column-reverse; font-size: 14px !important; box-shadow: 0 4px 18px rgba(17, 31, 69, .16) !important; }
#gt_float_wrapper .gt_float_switcher .gt-selected .gt-current-lang { padding: 8px 12px !important; }
#gt_float_wrapper .gt_float_switcher img { width: 22px !important; }
.site-footer { padding-bottom: calc(var(--footer-pad, 40px) + 56px); } /* spazio per il selettore lingua fisso in basso */

/* Moduli da restituire firmati (Area allievi → Moduli e regolamenti) */
.materiale .firmato { grid-column: 1 / -1; border-top: 1px solid var(--linea); padding-top: 14px; display: grid; gap: 12px; }
.firmato__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.firmato__lista li { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.firmato__lista a { color: var(--blu-testo); word-break: break-all; }
.firmato__stato { font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #996800; }
.firmato--verificato .firmato__stato { color: #1a7f37; }
.firmato--da_rifare .firmato__stato { color: #b32d2e; }
.firmato__nota { flex-basis: 100%; font-size: .85rem; color: #b32d2e; }
.firmato__carica { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; background: var(--ghiaccio); border-radius: 14px; padding: 12px 16px; }
.firmato__carica label { flex-basis: 100%; font-size: .88rem; font-weight: 500; color: var(--navy); }
.firmato__carica input[type="file"] { flex: 1 1 220px; font: inherit; font-size: .88rem; }

/* Pagina Certificazioni */
.akua-cert-logo { background: #fff; border: 1px solid var(--linea); border-radius: var(--r); padding: clamp(28px, 4vw, 48px); text-align: center; }
.akua-cert-logo img { width: 100%; max-width: 360px; height: auto; margin: 0 auto 20px; }
.akua-azioni { display: flex; flex-wrap: wrap; gap: 12px; }
.akua-section.is-navy .akua-card h3 { color: #fff; }
.akua-section.is-navy .akua-card li { color: rgba(255, 255, 255, .8); margin-bottom: .6em; }
@media (max-width: 860px) { .split.akua-wide { grid-template-columns: 1fr; } }

/* ---------- Mobile: aree di tocco e leggibilità ---------- */
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--navy); }
@media (max-width: 600px) {
  .footer-legale { gap: 0 20px; }
  .footer-legale a { display: inline-block; padding: 11px 0; }
  .footer-bottom a { min-height: 24px; }
  .hero__keys li { font-size: .75rem; }
  .eyebrow, .persona .ruolo, .tre-vie .focus, .badge, .op .liv, .op .modi span, .alma-tipo, .meta li, .dip .tags, .tabs .tab-n { font-size: max(.75rem, 12px); }
  .site-footer .footer-h { font-size: .75rem; }
}

/* ---------- Trustpilot (solo link, nessuno script) ---------- */
.tp-badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; min-height: 44px; border-radius: 999px; border: 1px solid var(--linea); background: #fff; color: var(--navy); text-decoration: none; font-size: .95rem; }
.tp-badge strong { font-weight: 500; }
.tp-badge:hover, .tp-badge:focus-visible { border-color: #00b67a; }
.tp-badge .tp-stella { flex: none; }
.tp-badge--chiaro { margin-top: 22px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: #fff; }
.tp-invito { margin-top: 32px; padding: 24px; border-radius: var(--r); background: var(--ghiaccio); }
.tp-invito h3 { margin-top: 0; }
.tp-invito .tp-badge { margin-top: 6px; }
