/* ===========================================================
   Vanello Eugenio & Figli
   Foglio di stile

   Direzione: heritage friulano — chiaro, sobrio, autorevole.
   Palette derivata dal marchio: rosso #FF0000 su bianco.
   Tipografia: Bodoni Moda (Didone) a richiamare il logotipo,
   Inter per il testo corrente.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,600;0,6..96,700;1,6..96,400&family=Inter:wght@400;500;600&display=swap');

:root {
  /* --- colori di marchio --- */
  --brand:      #FF0000;   /* rosso Vanello: SOLO superfici piene e titoli grandi */
  --red-text:   #D10000;   /* rosso leggibile (5.66:1 su bianco) per testo e link */
  --red-deep:   #A80000;   /* hover e dettagli */

  /* --- neutri --- */
  --ink:        #1A1A1A;   /* testo principale */
  --ink-soft:   #55524F;   /* testo secondario */
  --paper:      #FFFFFF;   /* fondo */
  --cream:      #F7F5F2;   /* sezioni alternate */
  --line:       #E5E1DC;   /* filetti */
  --graphite:   #22262A;   /* footer e strisce scure */

  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: 'Bodoni Moda', 'Didot', Georgia, serif;
  font-weight: 600;
  line-height: 1.14;
}

a { color: var(--red-text); text-decoration: none; }
a:hover { color: var(--red-deep); }

/* ---------- eyebrow ---------- */
.eyebrow {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--red-text);
}
.eyebrow.on-dark { color: #F2B2B2; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
/* il logo reale: immagine trasparente monocromatica */
.topbar .brand { display: inline-flex; align-items: center; line-height: 0; }
.topbar .brand img {
  height: 34px;
  width: auto;
  max-width: 170px;
  display: block;
}
@media (max-width: 520px) {
  .topbar .brand img { height: 28px; max-width: 140px; }
}
.topbar .tel { color: var(--ink); font-weight: 600; white-space: nowrap; font-size: .95rem; }
.topbar .tel:hover { color: var(--red-text); }

/* navigazione principale */
.mainnav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.mainnav a { color: var(--ink-soft); font-size: .88rem; font-weight: 500; }
.mainnav a:hover { color: var(--red-text); }
.mainnav a.active { color: var(--red-text); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--ink); border-radius: 3px; padding: 6px 12px;
  font-size: .9rem; font-family: inherit; cursor: pointer;
}
@media (max-width: 980px) {
  .mainnav { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 8px; }
  .mainnav.open { display: flex; }
  .nav-toggle { display: inline-block; order: 3; }
  .topbar .tel { order: 2; }
}

/* ---------- hero: chiaro, editoriale ---------- */
.hero {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  position: relative;
}
/* filetto rosso di marchio: un accento, non un blocco */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--brand);
}
.hero .wrap { padding-top: 76px; padding-bottom: 78px; }
.hero .eyebrow { display: block; margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 3.9rem);
  max-width: 17ch;
  letter-spacing: -.015em;
  font-weight: 700;
}
.hero h1 em { font-style: italic; color: var(--brand); font-weight: 400; }
.hero .lede {
  margin-top: 24px;
  max-width: 54ch;
  font-size: 1.14rem;
  color: var(--ink-soft);
}
.hero-cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 2px;
  font-weight: 600;
  font-size: .98rem;
  border: 1.5px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
/* rosso pieno: testo bianco grande e in grassetto, uso conforme */
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--red-deep); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--red-text); }
.btn-dark { background: var(--graphite); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }

/* ---------- sezioni ---------- */
section { padding: 76px 0; }
.section-head { max-width: 62ch; margin-bottom: 46px; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 600; }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 1.08rem; }

.alt { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- griglia card ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 30px 28px;
  transition: border-color .2s ease;
}
.card:hover { border-color: #CFC8C0; }
.alt .card { background: var(--paper); }
.card .num {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: 1.1rem;
  color: var(--brand);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--brand);
  padding-bottom: 2px;
  line-height: 1;
}
.card h3 { font-size: 1.28rem; margin-bottom: 10px; font-weight: 600; }
.card p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- prosa ---------- */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 20px; color: var(--ink-soft); }
.prose h2 { font-size: clamp(1.7rem, 3.4vw, 2.25rem); margin-bottom: 20px; color: var(--ink); }
.prose h3 { font-size: 1.32rem; margin: 34px 0 12px; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- striscia territorio ---------- */
.geo { background: var(--graphite); color: #EDEAE6; }
.geo .wrap { padding: 60px 24px; text-align: center; }
.geo .eyebrow { color: #F2B2B2; display: block; margin-bottom: 14px; }
.geo h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.2rem); max-width: 26ch; margin: 0 auto; font-weight: 600; }
.geo p { max-width: 62ch; margin: 16px auto 0; color: #C3BFB9; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: 1.18rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--brand);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 14px; color: var(--ink-soft); max-width: 70ch; }

/* ---------- CTA finale ---------- */
.cta-final { background: var(--cream); text-align: center; border-top: 1px solid var(--line); }
.cta-final h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); max-width: 22ch; margin: 0 auto 18px; font-weight: 700; }
.cta-final h2 em { font-style: italic; color: var(--brand); font-weight: 400; }
.cta-final p { max-width: 54ch; margin: 0 auto 30px; color: var(--ink-soft); }
.cta-final .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
footer { background: var(--graphite); color: #A9A5A0; font-size: .92rem; padding: 54px 0 34px; }
footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 34px; }
footer .brand-f { margin-bottom: 12px; line-height: 0; }
footer .brand-f img {
  height: 30px;
  width: auto;
  max-width: 150px;
  display: block;
  margin-bottom: 10px;
}
footer .brand-f span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  color: #C3BFB9;
  font-weight: 500;
  line-height: 1.4;
}
footer h4 {
  color: #EDEAE6;
  font-family: 'Inter', sans-serif;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}
footer a { color: #A9A5A0; }
footer a:hover { color: #fff; }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer .legal {
  border-top: 1px solid #33383D;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: #77736E;
}

/* ---------- banner consenso cookie ---------- */
.vn-consent {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 999;
  background: var(--graphite);
  color: #EDEAE6;
  border-radius: 4px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  font-size: .92rem;
}
.vn-consent[hidden] { display: none; }
.vn-consent p { margin: 0; max-width: 62ch; line-height: 1.5; }
.vn-consent a { color: #F2B2B2; text-decoration: underline; }
.vn-consent a:hover { color: #fff; }
.vn-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.vn-consent button {
  padding: 10px 20px;
  border-radius: 2px;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.vn-btn-yes { background: var(--brand); color: #fff; }
.vn-btn-yes:hover { background: var(--red-deep); }
.vn-btn-ghost { background: none; border-color: rgba(237,234,230,.4); color: #EDEAE6; }
.vn-btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---------- accessibilità ---------- */
a:focus-visible, summary:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr; gap: 26px; }
  section { padding: 56px 0; }
  .hero .wrap { padding-top: 54px; padding-bottom: 60px; }
}
@media (max-width: 640px) {
  .vn-consent { flex-direction: column; align-items: stretch; gap: 14px; }
  .vn-consent-actions { justify-content: stretch; }
  .vn-consent button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
