/* =========================================================
   Gruppo Talea — foglio di stile
   Font self-hosted (nessuna chiamata a Google: conformità GDPR)
   ========================================================= */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Colori del marchio (dal logo) */
  --teal: #557a82;
  --teal-deep: #1f3a40;
  --teal-ink: #142a2f;
  --sage: #a3d1ae;
  --sage-soft: #d9ecdd;
  --cream: #f4efe4;
  --paper: #fbf8f2;
  --ink: #1b2b2e;
  --ink-soft: #4a5b5e;
  --line: rgba(27, 43, 46, 0.14);
  --white: #ffffff;

  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
em, .italic { font-family: var(--serif); font-style: italic; font-weight: 400; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--teal-deep); color: var(--white);
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 700 14px/1 var(--sans); letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--sage); color: var(--teal-ink); }
.btn--primary:hover { background: #b6dcbf; }
.btn--dark { background: var(--teal-deep); color: var(--white); }
.btn--dark:hover { background: var(--teal-ink); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,0.08); }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, 0.88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--teal-deep); }
.brand img { width: 40px; height: 40px; }
.brand span { font: 800 13px/1.05 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.brand span b { display: block; font-size: 19px; letter-spacing: 0.08em; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap;
  padding: 10px 14px; border-radius: 999px; color: var(--ink);
  transition: background-color .2s var(--ease);
}
.nav a:hover { background: rgba(85,122,130,0.1); }
.nav a[aria-current="page"] { color: var(--teal); }
.nav .btn { margin-left: 8px; padding: 0 20px; min-height: 42px; color: var(--white); }
.nav .btn:hover { background: var(--teal-ink); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; color: var(--teal-deep);
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a:hover { background: none; }
  .nav .btn { margin: 18px 0 0; border-bottom: 0; justify-content: center; min-height: 50px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--teal-deep); color: var(--cream);
  padding: clamp(64px, 10vw, 120px) 0 clamp(72px, 10vw, 128px);
}
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
}
.hero .eyebrow { color: var(--sage); }
.hero h1 {
  font-size: clamp(46px, 7.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero h1 em { color: var(--sage); }
.hero-lead {
  max-width: 520px; margin: 28px 0 36px;
  font-size: clamp(17px, 1.6vw, 19px); color: rgba(244,239,228,0.82);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; aspect-ratio: 480 / 530; max-height: 580px; justify-self: center; width: 100%; }
.hero-art svg { width: 100%; height: 100%; overflow: visible; }

.hero-art text { font-family: var(--serif); fill: var(--cream); }
.hero-art .lbl-name { font-size: 20px; font-style: italic; }
.hero-art .lbl-sub { font-size: 16px; font-style: italic; }
.hero-art .lbl-meta { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; fill: var(--sage); }
.branch { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--ease) forwards; }
.node { opacity: 0; animation: fade .7s var(--ease) forwards; }
.core-ring { transform-box: fill-box; transform-origin: center; animation: pulse 3.6s ease-in-out 2.6s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .4; } }
@media (prefers-reduced-motion: reduce) {
  .branch, .node, .core-ring { animation: none; stroke-dashoffset: 0; opacity: 1; }
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin-top: 8px; }
}

/* ---------- Numeri ---------- */
.facts { background: var(--cream); border-bottom: 1px solid var(--line); }
.facts ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.facts li { padding: 34px 20px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong {
  display: block; font: 400 clamp(36px, 4.4vw, 54px)/1 var(--serif); color: var(--teal-deep);
  font-variant-numeric: lining-nums;
}
.facts span { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink-soft); letter-spacing: .02em; }
@media (max-width: 760px) {
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li { padding: 26px 16px; }
  .facts li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sezioni ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--teal-deep); color: var(--cream); }
.section--dark .eyebrow { color: var(--sage); }

.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head h2 { font-size: clamp(38px, 5.2vw, 68px); }
.section-head h2 em { color: var(--teal); }
.section--dark .section-head h2 em { color: var(--sage); }
.section-head p { color: var(--ink-soft); max-width: 460px; margin: 0; }
.section--dark .section-head p { color: rgba(244,239,228,.75); }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- I locali ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  min-height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink);
  font: 600 14px/1 var(--sans); cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }

.venues {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
@media (max-width: 720px) { .venues { grid-template-columns: 1fr; } }
.venue {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.venue[hidden] { display: none; }
@media (hover: hover) {
  .venue:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(20,42,47,.35); }
}
.venue-logo {
  aspect-ratio: 16 / 9; background: var(--white);
  display: grid; place-items: center; border-bottom: 1px solid var(--line);
}
.venue-logo img { width: auto; height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.venue-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.venue-kind { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.venue h3 { font-size: 30px; margin-bottom: 12px; }
.venue p { color: var(--ink-soft); font-size: 15.5px; }
.venue-meta { list-style: none; margin: 4px 0 22px; padding: 0; font-size: 14.5px; }
.venue-meta li { display: flex; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--line); }
.venue-meta svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--teal); }
.venue-meta strong { color: var(--ink); font-weight: 700; }
.venue-meta a { text-decoration: none; }
.venue-meta a:hover { text-decoration: underline; }
.venue-links { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.venue-links .btn { min-height: 44px; padding: 0 18px; font-size: 13px; }
.venue-links .btn--ghost { color: var(--teal-deep); border-color: var(--line); }
.venue-links .btn--ghost:hover { border-color: var(--teal-deep); background: transparent; }

/* ---------- Chi siamo / storia ---------- */
.story { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.story h2 { font-size: clamp(38px, 5.2vw, 68px); }
.story h2 em { color: var(--teal); }
.story-text { font-size: 18.5px; }
.story-text p:first-child::first-letter {
  float: left; font: 400 84px/0.82 var(--serif); color: var(--teal); margin: 8px 12px 0 0;
}
.timeline { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline b { font: 400 24px/1.2 var(--serif); color: var(--teal-deep); }
.timeline span { color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

/* ---------- Valori ---------- */
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(244,239,228,.18); }
.values li { padding: 32px 28px 8px 0; }
.values li + li { padding-left: 28px; border-left: 1px solid rgba(244,239,228,.18); }
.values .num { font: italic 400 15px/1 var(--serif); color: var(--sage); }
.values h3 { font-size: 26px; margin: 16px 0 12px; }
.values p { color: rgba(244,239,228,.72); font-size: 15.5px; }
@media (max-width: 960px) {
  .values { grid-template-columns: 1fr 1fr; }
  .values li:nth-child(3) { padding-left: 0; border-left: 0; }
  .values li:nth-child(n+3) { border-top: 1px solid rgba(244,239,228,.18); }
}
@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  .values li, .values li + li { padding: 26px 0 6px; border-left: 0; }
  .values li + li { border-top: 1px solid rgba(244,239,228,.18); }
}

/* ---------- CTA lavora con noi ---------- */
.careers-cta {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center;
  background: var(--sage); color: var(--teal-ink);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(36px, 6vw, 72px);
  position: relative; overflow: hidden;
}
.careers-cta h2 { font-size: clamp(36px, 4.8vw, 60px); }
.careers-cta p { margin: 18px 0 0; max-width: 520px; font-size: 17.5px; }
.careers-cta .eyebrow { color: var(--teal-deep); }
.careers-cta .roles { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.careers-cta .roles li { background: rgba(255,255,255,.55); padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.careers-cta .actions { margin-top: 24px; }
@media (max-width: 860px) { .careers-cta { grid-template-columns: 1fr; } }

/* ---------- Newsletter / Contatti ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin: 32px 0 0; padding: 0; }
.contact-list li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt, .contact-list .label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); padding-top: 3px; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
@media (max-width: 480px) { .contact-list li { grid-template-columns: 1fr; gap: 4px; } }

.card-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}
.card-form h3 { font-size: 30px; margin-bottom: 8px; }
.card-form > p { color: var(--ink-soft); font-size: 15.5px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink); }
.field .opt { font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  font: 500 16px/1.4 var(--sans); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23557a82' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--white); }
.field input[type="file"] { padding: 12px; min-height: 0; font-size: 14px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 6px 0 16px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teal-deep); }
.check a { color: var(--teal-deep); font-weight: 600; }
.form-note { font-size: 13px; color: var(--ink-soft); margin: 14px 0 0; line-height: 1.5; }
.form-note a { color: var(--teal-deep); }
.form-status { margin: 14px 0 0; font-weight: 600; font-size: 15px; }
.form-status.ok { color: #2f6d47; }
.form-status.err { color: #a2412b; }
.hp { position: absolute !important; left: -9999px !important; }

.newsletter-inline { display: flex; gap: 10px; }
.newsletter-inline .field { flex: 1; margin: 0; }
@media (max-width: 520px) { .newsletter-inline { flex-direction: column; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-ink); color: rgba(244,239,228,.78); padding: 72px 0 32px; font-size: 15px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 56px; height: 56px; margin-bottom: 18px; }
.footer-brand p { max-width: 300px; }
.footer-grid h4 { font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sage); margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: 4px 0; }
.legal-strip {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(244,239,228,.14);
  font-size: 13px; line-height: 1.7; color: rgba(244,239,228,.6);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
}
.legal-strip p { margin: 0; max-width: 780px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Pagine interne / legali ---------- */
.page-hero { background: var(--teal-deep); color: var(--cream); padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); }
.page-hero h1 { font-size: clamp(42px, 6vw, 80px); }
.page-hero h1 em { color: var(--sage); }
.page-hero .eyebrow { color: var(--sage); }
.page-hero p { max-width: 640px; margin: 22px 0 0; color: rgba(244,239,228,.8); font-size: 18px; }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(28px, 3vw, 36px); margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 700 17px/1.4 var(--sans); margin: 32px 0 10px; letter-spacing: 0; }
.prose p, .prose li { color: #2d3d40; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--teal-deep); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); background: var(--cream); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.updated { font-size: 14px; color: var(--ink-soft); margin-bottom: 40px; }
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: start; }
.legal-toc { position: sticky; top: 110px; font-size: 14px; }
.legal-toc h4 { font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.legal-toc ol { margin: 0; padding-left: 18px; color: var(--ink-soft); }
.legal-toc li { padding: 4px 0; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { color: var(--teal); }
@media (max-width: 960px) { .legal-layout { grid-template-columns: 1fr; } .legal-toc { position: static; } }

/* Segnaposto da completare a cura del cliente */
.todo {
  background: #fff1c7; color: #6b4e00; padding: 1px 6px; border-radius: 4px;
  font-family: var(--sans); font-size: .9em; font-weight: 600; font-style: normal;
}

/* Comparsa allo scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media (max-width: 860px) {
  .hero-art .lbl-name { font-size: 24px; }
  .hero-art .lbl-sub { font-size: 19px; }
  .hero-art .lbl-meta { font-size: 12px; letter-spacing: .1em; }
}

/* ---------- Area Team (tendina nel menu) ---------- */
.nav-menu { position: relative; }
.nav-menu__toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent; color: var(--teal-deep);
  font: 600 14px/1 var(--sans); cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.nav-menu__toggle:hover, .nav-menu__toggle[aria-expanded="true"] { border-color: var(--teal); background: rgba(85,122,130,0.08); }
.nav-menu__toggle svg { width: 16px; height: 16px; flex: none; }
.nav-menu__toggle .chev { width: 10px; height: 10px; transition: transform .25s var(--ease); }
.nav-menu__toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.nav-menu__panel {
  position: absolute; top: calc(100% + 10px); right: 0; width: 300px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 48px -20px rgba(20,42,47,.35);
  padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
}
.nav-menu.is-open .nav-menu__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-menu__title {
  margin: 4px 10px 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal);
}
.nav .nav-menu__item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 10px; border-radius: 12px; text-decoration: none; color: var(--ink);
  white-space: normal;
}
.nav .nav-menu__item:hover { background: var(--cream); }
.nav-menu__icon {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  display: grid; place-items: center; background: var(--sage-soft); color: var(--teal-deep);
}
.nav-menu__icon svg { width: 20px; height: 20px; }
.nav-menu__item strong { display: block; font-size: 15px; font-weight: 700; }
.nav-menu__item small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-soft); line-height: 1.35; margin-top: 2px; }

@media (max-width: 1100px) {
  .nav-menu { border-bottom: 1px solid var(--line); }
  .nav-menu__toggle {
    width: 100%; justify-content: flex-start; border: 0; border-radius: 0;
    min-height: 0; padding: 14px 4px; font-size: 17px; background: none !important;
  }
  .nav-menu__toggle .chev { margin-left: auto; }
  .nav-menu__panel {
    position: static; width: auto; box-shadow: none; border: 0; border-radius: 12px;
    background: var(--cream); padding: 6px; margin-bottom: 14px;
    display: none; opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav-menu.is-open .nav-menu__panel { display: block; }
  .nav .nav-menu__item { border-bottom: 0; padding: 12px 10px; font-size: 15px; }
  .nav .nav-menu__item:hover { background: rgba(255,255,255,.6); }
}
