/* BenBoat — grafica comune a tutte le pagine (colori, nav, pulsanti, card prenotazione, mare vivo) */
:root {
  --sky:        #2f7fd0;
  --deep:       #06324f;   /* blu profondo per testi scuri */
  --sea:        #12b5c4;   /* turchese caletta */
  --sun:        #ffc94a;   /* giallo sole */
  --sun-hover:  #ffd772;
  --white:      #ffffff;
  --white-soft: rgba(255,255,255,0.86);
  --glass-fill:   rgba(255,255,255,0.16);
  --glass-border: rgba(255,255,255,0.34);
  --foam:       #f3fafb;   /* sfondo chiaro delle sezioni */
  --ink-soft:   #2c5d70;
  --ink-mute:   #4f7f90;
  --line:       rgba(6,50,79,0.09);
  --duration-fast: 150ms;
  --ease-entrance: cubic-bezier(0.2, 0, 0, 1);
}

html { font-size: 16px; }
@media (max-width: 1920px) { html { font-size: 0.833333vw; } }
@media (max-width: 1440px) { html { font-size: 1.111111vw; } }
@media (max-width: 1024px) { html { font-size: 1.5625vw; } }
@media (max-width: 640px)  { html { font-size: 4.444444vw; } }

* { margin: 0; box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
body {
  font-family: "Onest", sans-serif;
  background: var(--sky);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Mare vivo ---------- */
.sea {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 900ms ease;
}
.sea.ready { opacity: 1; }

/* Luce calda del sole + velo azzurro per la leggibilità del testo */
.sun-glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(55% 45% at 58% -6%, rgba(255,232,170,0.55), rgba(255,232,170,0) 70%);
  mix-blend-mode: screen;
}
.tint {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,50,79,0.50) 0%, rgba(6,50,79,0.28) 35%, rgba(6,50,79,0) 58%);
}

/* ---------- Nav ---------- */
.nav {
  position: absolute; inset-inline: 0; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem;
}
.brand { display: flex; align-items: center; }
/* logo ufficiale (blu su trasparente) reso bianco per stare sopra la foto */
.brand img {
  display: block; height: 2.6rem; width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 0.1rem 0.6rem rgba(6,50,79,0.45));
}
.nav-links {
  display: none;
  position: absolute; left: 50%; transform: translateX(-50%);
  height: 3rem; align-items: center; gap: 2.25rem;
  border-radius: 9999px; border: 1px solid var(--glass-border); background: var(--glass-fill);
  padding: 0 1.75rem;
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
}
.nav-links a {
  font-size: 0.95rem; color: var(--white-soft); white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-entrance);
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--white); }
.nav-links a[aria-current] { text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 0.45rem; text-decoration-thickness: 2px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  height: 2.5rem; border-radius: 9999px;
  background: var(--sun); color: var(--deep);
  padding: 0 1.125rem; font-size: 0.85rem; font-weight: 500; white-space: nowrap;
  box-shadow: 0 0.4rem 1.2rem rgba(255,170,40,0.35);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-entrance), transform var(--duration-fast) var(--ease-entrance);
}
.pill:hover { background: var(--sun-hover); transform: translateY(-1px); }
.pill:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.8); }
.pill.ghost {
  background: var(--glass-fill); color: var(--white); box-shadow: none;
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.pill.ghost:hover { background: rgba(255,255,255,0.26); }

/* ---------- Menu mobile (pulsante ☰ + pannello, creati da site.js) ---------- */
.nav-end { display: flex; align-items: center; gap: 0.5rem; }
.menu-btn {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; flex: none; cursor: pointer;
  display: grid; place-items: center; color: var(--white);
  border: 1px solid var(--glass-border); background: var(--glass-fill);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.menu-btn svg { width: 1.2rem; height: 1.2rem; }
.menu-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.8); }
.menu-panel {
  /* sopra anche ai pulsanti flottanti dei plugin (WhatsApp, cookie) */
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; flex-direction: column; padding: 1.25rem;
  background: #041e30; color: var(--white);
  opacity: 0; visibility: hidden; transition: opacity 250ms var(--ease-entrance), visibility 250ms;
  overflow-y: auto;
}
.menu-panel.open { opacity: 1; visibility: visible; }
.menu-panel .mp-top { display: flex; align-items: center; justify-content: space-between; }
.menu-panel .mp-top img { height: 2.6rem; width: auto; filter: brightness(0) invert(1); }
.menu-panel nav { margin-top: 2.5rem; display: grid; }
.menu-panel nav a {
  font-family: "Fraunces", serif; font-size: 2rem; line-height: 1.15; padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transform: translateY(0.75rem); opacity: 0; transition: transform 400ms var(--ease-entrance), opacity 400ms var(--ease-entrance);
}
.menu-panel.open nav a { transform: none; opacity: 1; }
.menu-panel nav a[aria-current] { color: var(--sun); }
.menu-panel .mp-end { margin-top: auto; padding-top: 2rem; display: grid; gap: 0.6rem; }
.menu-panel .mp-end .pill { height: 3.2rem; font-size: 1rem; }
.menu-panel .mp-end small { text-align: center; color: var(--white-soft); font-size: 0.85rem; }
html.menu-open, html.menu-open body { overflow: hidden; }
@media (max-width: 639px) {
  .nav .brand img { height: 2.2rem; }
  .nav > .nav-end > .pill { height: 2.4rem; padding: 0 0.85rem; font-size: 0.76rem; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 640px) {
  .menu-btn, .menu-panel { display: none; }
}

.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px; border: 1px solid var(--glass-border); background: var(--glass-fill);
  padding: 0.4rem 0.9rem 0.4rem 0.6rem; font-size: 0.72rem; color: var(--white);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.badge svg { width: 1rem; height: 1rem; color: var(--sun); }

/* ---------- Card prenotazione bianca, come un lettino al sole ---------- */
.book {
  margin-top: 1.75rem; width: 100%; max-width: 22rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  border-radius: 1.75rem; background: rgba(255,255,255,0.94); color: var(--deep);
  padding: 0.5rem;
  box-shadow: 0 1.5rem 3rem rgba(6,50,79,0.25);
}
.field {
  display: flex; flex-direction: column; justify-content: center; text-align: left;
  padding: 0.55rem 1rem; border-radius: 1.25rem;
  transition: background var(--duration-fast) var(--ease-entrance);
}
.field:hover { background: rgba(18,181,196,0.08); }
.field span { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: #3b7d92; }
.field input, .field select { font-size: 1rem; color: var(--deep); outline: none; width: 100%; cursor: pointer; }
.sep { display: none; }
.book .pill { height: 3.25rem; font-size: 0.95rem; box-shadow: none; }
.sm-only { display: none; }
.book .pill[disabled] { opacity: 0.7; cursor: wait; }

/* Pannello risultati disponibilità */
.avail {
  margin-top: 0.75rem; width: 100%; max-width: 22rem;
  max-height: 46vh; overflow: auto;
  border-radius: 1.5rem; background: rgba(255,255,255,0.97); color: var(--deep);
  padding: 1rem 1.25rem; text-align: left;
  box-shadow: 0 1.5rem 3rem rgba(6,50,79,0.25);
  animation: avail-in 350ms var(--ease-entrance);
}
.avail[hidden] { display: none; }
@keyframes avail-in { from { opacity: 0; transform: translateY(-0.5rem); } }
.avail-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.avail-head h3 { font-size: 0.95rem; font-weight: 500; }
.avail-head button { font-size: 1.3rem; line-height: 1; color: #3b7d92; cursor: pointer; padding: 0.2rem 0.4rem; }
.avail p { margin-top: 0.5rem; font-size: 0.88rem; line-height: 1.45; color: var(--ink-soft); }
.avail a { color: var(--deep); }
.slot {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.25rem 1rem;
  padding: 0.75rem 0; border-top: 1px solid var(--line);
}
.avail-head + .slot { margin-top: 0.5rem; }
.slot b { font-weight: 500; font-size: 0.95rem; }
.slot small { display: block; font-size: 0.75rem; color: var(--ink-mute); margin-top: 0.15rem; }
.slot .tag { font-size: 0.75rem; font-weight: 500; white-space: nowrap; }
.tag.ok { color: #0a8f7d; }
.tag.warn { color: #c77700; }
.tag.off { color: #8a9aa3; }
.slot .go { height: 2.2rem; font-size: 0.82rem; box-shadow: none; }
.slot .ne { grid-column: 1 / -1; font-size: 0.8rem; color: #0a6f8f; }
.dates { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.dates button {
  border: 1px solid rgba(6,50,79,0.15); border-radius: 9999px;
  padding: 0.35rem 0.8rem; font-size: 0.8rem; cursor: pointer;
  transition: background var(--duration-fast) var(--ease-entrance);
}
.dates button:hover { background: rgba(18,181,196,0.12); }
.spin {
  display: inline-block; width: 0.9rem; height: 0.9rem; margin-right: 0.5rem; vertical-align: -0.1rem;
  border: 2px solid rgba(6,50,79,0.2); border-top-color: var(--sea); border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 639px) {
  .book { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0.25rem; margin-top: 1.4rem; }
  .field { padding: 0.45rem 0.85rem; }
  .field input, .field select { font-size: 0.92rem; }
  .book .pill { grid-column: 1 / -1; height: 2.9rem; }
}

/* ---------- Onda animata tra foto e sezione chiara ---------- */
.wave-edge {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 5;
  height: 3.5rem; pointer-events: none; overflow: hidden;
}
.wave-edge svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
.wave-edge .w1 { fill: var(--foam); opacity: 0.55; animation: drift 14s linear infinite; }
.wave-edge .w2 { fill: var(--foam); animation: drift 9s linear infinite reverse; }
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------- Pagine interne: hero di pagina ---------- */
.page-hero {
  position: relative; overflow: hidden;
  min-height: 88lvh; width: 100vw;
  display: flex; flex-direction: column; justify-content: flex-start;
  background-color: var(--sky); background-size: cover; background-repeat: no-repeat;
  padding: 7.5rem 1.25rem 8rem;
}
/* testo a sinistra sul cielo: velo più scuro da quel lato */
.page-hero .tint {
  background:
    linear-gradient(90deg, rgba(6,50,79,0.42) 0%, rgba(6,50,79,0.12) 55%, rgba(6,50,79,0) 75%),
    linear-gradient(180deg, rgba(6,50,79,0.40) 0%, rgba(6,50,79,0.12) 50%, rgba(6,50,79,0) 70%);
}
.page-hero .content { position: relative; z-index: 10; width: 100%; max-width: 72rem; margin: 0 auto; }
.page-hero h1 {
  margin-top: 0.9rem;
  font-family: "Fraunces", serif; font-weight: 400;
  font-size: 2.7rem; line-height: 1.02; letter-spacing: -0.02em;
  text-shadow: 0 0.15rem 1.5rem rgba(6,50,79,0.35);
}
.page-hero h1 em, .book-band h2 em { font-style: italic; color: var(--sun); }
.lead {
  margin-top: 1rem; max-width: 30rem;
  font-size: 1rem; line-height: 1.55; color: var(--white-soft);
  text-shadow: 0 0.1rem 1rem rgba(6,50,79,0.45);
}
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; padding: 0; }
.facts li {
  list-style: none; display: inline-flex; align-items: center; gap: 0.45rem;
  border-radius: 9999px; border: 1px solid var(--glass-border); background: var(--glass-fill);
  padding: 0.45rem 0.9rem; font-size: 0.82rem;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.facts svg { width: 1rem; height: 1rem; color: var(--sun); flex: none; }
.ctas { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }

/* Testata bassa per pagine di contenuto (blog, articoli, privacy) */
.page-hero.compact { min-height: 52lvh; justify-content: flex-end; padding-bottom: 6.5rem; }
.page-hero.compact h1 { font-size: 2.4rem; }
@media (min-width: 640px) { .page-hero.compact h1 { font-size: 3.8rem; } }
@media (min-width: 1024px) { .page-hero.compact h1 { font-size: 4.4rem; } }

/* ---------- Sezioni chiare ---------- */
.section { position: relative; padding: 4.5rem 1.25rem; color: var(--deep); }
.wrap { max-width: 72rem; margin: 0 auto; }
.eyebrow { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #0a8f9d; }
.section h2, .book-band h2 {
  margin-top: 0.6rem;
  font-family: "Fraunces", serif; font-weight: 400;
  font-size: 2.1rem; line-height: 1.08; letter-spacing: -0.015em;
}
.section h2 em { font-style: italic; color: #e8a317; }
.intro { margin-top: 0.9rem; max-width: 36rem; font-size: 1rem; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Banda prenotazione con mare vivo ---------- */
.book-band {
  position: relative; overflow: hidden; color: var(--white);
  padding: 6rem 1.25rem 5.5rem; text-align: center;
  background: #0b4f6c url("../img/pexels-earano-1350197-scaled.jpg") 50% 50% / cover no-repeat;
}
.book-band .tint { background: radial-gradient(60% 70% at 50% 45%, rgba(6,50,79,0.55), rgba(6,50,79,0.2) 100%); }
.book-band .content { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; }
.book-band .eyebrow { color: var(--sun); }
.book-band h2, .book-band .intro { text-shadow: 0 0.1rem 1rem rgba(6,50,79,0.5); }
.book-band .intro { color: var(--white); margin-left: auto; margin-right: auto; }
.book-band .wave-edge.top { top: -1px; bottom: auto; transform: scaleY(-1); }
.book-band .wave-edge.top path { fill: var(--edge, var(--white)); }  /* --edge = colore della sezione sopra */

/* ---------- Modulo di richiesta (eventi, preventivi, contatti) ---------- */
.request {
  margin-top: 2rem; width: 100%; max-width: 44rem;
  display: grid; gap: 0.5rem; text-align: left;
  border-radius: 2rem; background: rgba(255,255,255,0.95); color: var(--deep);
  padding: 0.75rem; box-shadow: 0 1.5rem 3rem rgba(6,50,79,0.3);
}
.request .field { border-radius: 1.25rem; background: var(--foam); padding: 0.65rem 1rem; }
.request .field input, .request .field select, .request .field textarea { margin-top: 0.15rem; }
.request .field textarea {
  font: inherit; font-size: 1rem; color: var(--deep); background: none; border: 0; outline: none;
  width: 100%; min-height: 6.5rem; resize: vertical;
}
.request .pill { height: 3.25rem; box-shadow: none; }
.request .fine { font-size: 0.78rem; line-height: 1.5; color: var(--ink-mute); padding: 0.25rem 0.75rem 0.5rem; }
.request .thanks { padding: 1.5rem 1rem; text-align: center; }
.request .thanks b { font-family: "Fraunces", serif; font-weight: 400; font-size: 1.6rem; }
.request .thanks p { margin-top: 0.5rem; font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); }
@media (min-width: 640px) {
  .request { grid-template-columns: repeat(2, 1fr); padding: 1rem; }
  .request .span2, .request .pill, .request .fine, .request .thanks { grid-column: span 2; }
  .request .field { height: auto; border-radius: 1.25rem; padding: 0.65rem 1rem; }
}

/* Moduli veri del sito (Contact Form 7) dentro la card bianca: stessi campi dell'anteprima */
.bbm-cf7 { display: block; }
.bbm-cf7 form > p, .bbm-cf7 .wpcf7-form > div { margin: 0 0 0.5rem; }
.bbm-cf7 label { display: block; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: #3b7d92; }
.bbm-cf7 input:not([type=submit]):not([type=checkbox]):not([type=radio]), .bbm-cf7 select, .bbm-cf7 textarea {
  display: block; width: 100%; margin-top: 0.3rem;
  border: 0; border-radius: 1.25rem; background: var(--foam); padding: 0.8rem 1rem;
  font: inherit; font-size: 1rem; color: var(--deep); text-transform: none; letter-spacing: 0;
}
.bbm-cf7 textarea { min-height: 7rem; resize: vertical; }
.bbm-cf7 input:focus, .bbm-cf7 select:focus, .bbm-cf7 textarea:focus { outline: 2px solid rgba(18,181,196,0.5); }
.bbm-cf7 input[type=submit], .bbm-cf7 button[type=submit], .bbm-cf7 .wpcf7-submit {
  width: 100%; height: 3.25rem; border: 0; border-radius: 9999px; cursor: pointer;
  background: var(--sun) !important; color: var(--deep) !important; box-shadow: none !important;
  font: inherit; font-weight: 500; font-size: 0.95rem; text-transform: none; letter-spacing: 0;
}
.bbm-cf7 input[type=submit]:hover, .bbm-cf7 button[type=submit]:hover, .bbm-cf7 .wpcf7-submit:hover { background: var(--sun-hover) !important; }
.bbm-cf7 .wpcf7-response-output { margin: 0.75rem 0 0; border-radius: 1rem; font-size: 0.88rem; }
.bbm-cf7 .wpcf7-not-valid-tip { font-size: 0.78rem; margin-top: 0.25rem; }

/* ---------- "I vostri momenti in mare": striscia di foto presente su tutte le pagine (site.js) ---------- */
.momenti-grid { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.momenti-grid figure { position: relative; overflow: hidden; border-radius: 1.5rem; aspect-ratio: 4 / 3; background: #d7eef1; margin: 0; }
.momenti-grid figure.tall { grid-row: span 2; aspect-ratio: auto; }
.momenti-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-entrance); }
.momenti-grid figure:hover img { transform: scale(1.05); }
.momenti-grid figcaption {
  position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem;
  font-size: 0.78rem; color: var(--white); text-shadow: 0 0.1rem 0.6rem rgba(6,50,79,0.7);
}
.momenti-band .pill { margin-top: 1.5rem; }
@media (min-width: 640px) { .momenti-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */
.faq { margin-top: 2rem; display: grid; gap: 0.6rem; max-width: 48rem; }
.faq details { border-radius: 1.25rem; background: var(--white); padding: 0 1.25rem; box-shadow: 0 0.4rem 1.2rem rgba(6,50,79,0.05); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-weight: 500; font-size: 0.98rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: #0a8f9d; transition: transform var(--duration-fast) var(--ease-entrance); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.1rem; font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); }

@media (min-width: 640px) {
  .page-hero { padding: 9.5rem 2.5rem 9rem; }
  .page-hero h1 { font-size: 4.6rem; }
  .lead { font-size: 1.15rem; max-width: 34rem; }
  .section { padding: 6.5rem 2.5rem; }
  .section h2, .book-band h2 { font-size: 3rem; }
  .book-band { padding: 8rem 2.5rem 7rem; }
}
@media (min-width: 1024px) {
  .page-hero h1 { font-size: 5.6rem; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--deep); color: var(--white-soft);
  padding: 3rem 1.25rem 2rem; font-size: 0.85rem; line-height: 1.6;
}
.footer-in { max-width: 72rem; margin: 0 auto; display: grid; gap: 2rem; }
.footer img { height: 2.6rem; width: auto; filter: brightness(0) invert(1); }
.footer h4 { color: var(--white); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.6rem; }
.footer a:hover { color: var(--white); }
.footer ul { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.footer small a { color: rgba(255,255,255,0.75); margin-left: 0.9rem; }
.footer small a:hover { color: var(--white); }
.footer small a.credit { margin-left: 0; text-decoration: underline; text-underline-offset: 0.15rem; }
.footer small { display: block; max-width: 72rem; margin: 2.5rem auto 0; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.55); }

/* ---------- sm ≥ 640px ---------- */
@media (min-width: 640px) {
  .nav { padding: 1.75rem 2.5rem; }
  .brand img { height: 3.4rem; }
  .nav-links { display: flex; }
  .sm-only { display: inline; }
  .pill { height: 2.75rem; padding: 0 1.375rem; font-size: 0.95rem; }
  .badge { font-size: 0.8rem; }
  .book {
    flex-direction: row; align-items: center; gap: 0;
    max-width: 38rem; height: 4.5rem; border-radius: 9999px; padding: 0.5rem;
  }
  .field { flex: 1; height: 100%; border-radius: 9999px; padding: 0 1.5rem; }
  .sep { display: block; width: 1px; height: 2rem; background: rgba(6,50,79,0.12); }
  .book .pill { height: 100%; padding: 0 1.75rem; }
  .avail { max-width: 38rem; padding: 1.1rem 1.5rem; }
  .wave-edge { height: 5rem; }
  .footer { padding: 4rem 2.5rem 2rem; }
  .footer-in { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* Tablet: sei voci di menu + logo + pulsante, quindi menu più compatto */
@media (min-width: 640px) and (max-width: 1024px) {
  .brand img { height: 2.9rem; }
  .nav-links { gap: 1.15rem; padding: 0 1.15rem; }
  .nav-links a { font-size: 0.82rem; }
  .nav > .pill, .nav-end > .pill { padding: 0 1rem; font-size: 0.82rem; }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(1.25rem);
  transition: opacity 700ms var(--ease-entrance), transform 700ms var(--ease-entrance);
}
.nav.reveal { transform: translateY(-0.75rem); }
.reveal.is-in { opacity: 1; transform: none; }

.words .w {
  display: inline-block;
  opacity: 0; transform: translateY(var(--from));
  transition-property: opacity, transform;
  transition-duration: var(--dur);
  transition-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
}
.words.is-in .w { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .words .w { transition: none; opacity: 1; transform: none; }
  .wave-edge .w1, .wave-edge .w2 { animation: none; }
}
