/* ============================================================
   ERIDANO — anteprima home
   Stile derivato dal riferimento "Integrated Biosciences" (Refero):
   peso unico, ritmo scuro/chiaro, accento razionato, hairline, mono per etichette.
   Cromia misurate dal brand: rosso logo #E83840, turchese tema #00abb8,
   petrol #073E45 (deriva scurita del turchese). Vedi ANALISI.md §Stile.
   ============================================================ */

/* font ospitati in locale (nessuna richiesta a server di terzi) */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-tight-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-tight-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/caveat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --ink: #073E45;          /* canvas scuro + testo su chiaro */
  --ink-2: #0A4B54;        /* superficie scura secondaria / hover */
  --paper: #F6F5F1;        /* canvas chiaro */
  --white: #FFFFFF;
  --muted: #5C6E6F;        /* testo secondario su chiaro */
  --muted-dark: rgba(255,255,255,.85); /* testo secondario su scuro */
  --line: #DDDAD2;         /* hairline su chiaro */
  --line-dark: rgba(255,255,255,.18);  /* hairline su scuro */
  --accent: #E83840;       /* rosso logo — solo micro-scala */
  --accent-light: #F2585F; /* rosso su fondi scuri */
  --turq: #00abb8;         /* turchese tema: elementi di continuità, hover su scuro */
  --radius-card: 20px;
  --radius-img: 16px;
  --radius-btn: 10px;
  --container: 1200px;
  --gap-section: clamp(72px, 10vw, 120px);
  --mono: "IBM Plex Mono", "JetBrains Mono", monospace;
  --sans: "Inter Tight", "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.001em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

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

/* ---------- tipografia ---------- */
h1, h2, h3 { font-weight: 400; }
h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 1.04; letter-spacing: -0.022em; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -0.012em; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.005em; }
p  { max-width: 640px; }

.mono {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
}

.hl-light { background: var(--white); color: var(--ink); padding: 0 0.18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- skip link + focus ---------- */
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--white); color: var(--ink);
  padding: 10px 16px; border-radius: 8px; transition: top .15s;
}
.skip-link:focus { top: 12px; }
/* testo solo per i lettori di schermo (es. titolo della griglia del catalogo) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 16px 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 max(24px, calc((100vw - var(--container)) / 2 + 24px));
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.brand-pill, .nav-pill {
  display: flex; align-items: center; gap: 4px;
  background: var(--white); border-radius: 999px; padding: 6px;
  box-shadow: none; border: 1px solid var(--line);
}
.brand-pill { padding: 12px 18px; }
.brand-pill img { height: 22px; width: auto; }

.nav-pill .nav-link {
  font-family: var(--mono); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.02em; color: var(--ink); text-decoration: none;
  padding: 10px 14px; border-radius: 999px; white-space: nowrap;
}
.nav-pill .nav-link:hover { background: #EFEDE7; }
.nav-pill .nav-link[aria-current="page"] { background: var(--paper); }
.nav-pill .btn-nav {
  font-family: var(--mono); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.02em; background: var(--ink); color: var(--white);
  text-decoration: none; padding: 10px 18px; border-radius: 999px; margin-left: 4px;
}
.nav-pill .btn-nav:hover { background: var(--ink-2); }

.menu-toggle {
  display: none; background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; width: 52px; height: 46px; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); }

/* menu mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink);
  display: none; flex-direction: column; padding: 24px;
  overflow-y: auto; overscroll-behavior: contain; /* schermi bassi e landscape: si scorre dentro il menu */
}
.mobile-menu.open { display: flex; }
.mobile-menu .mm-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu .mm-close {
  background: none; border: 1px solid var(--line-dark); border-radius: 999px;
  width: 52px; height: 46px; color: var(--white); cursor: pointer;
  font-family: var(--mono); font-size: 15px;
}
.mobile-menu nav { margin: auto 0; display: flex; flex-direction: column; gap: 8px; }
.mobile-menu nav a {
  color: var(--white); text-decoration: none; font-family: var(--mono);
  font-size: 21px; text-transform: uppercase; letter-spacing: 0.02em;
  padding: 10px 0; border-bottom: 1px solid var(--line-dark);
}
.mobile-menu nav a:hover { color: var(--turq); }
.mobile-menu .mm-contacts { color: var(--muted-dark); font-family: var(--mono); font-size: 13px; text-transform: uppercase; }

/* ---------- sezioni ---------- */
.section { padding: var(--gap-section) 0; }
.dark { background: var(--ink); color: var(--white); }
.dark p { color: var(--muted-dark); }
.light { background: var(--paper); color: var(--ink); }
.light + .light { border-top: 1px solid var(--line); }

/* tag chip con pallino accento */
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 999px; padding: 9px 16px;
}
.dark .tag { background: transparent; border-color: var(--line-dark); color: var(--white); }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* CTA accoppiata: pillola + quadrato freccia */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13.5px; text-transform: uppercase;
  letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  border-radius: var(--radius-btn); padding: 15px 22px; border: none;
}

.link-plain {
  font-family: var(--mono); font-size: 13.5px; text-transform: uppercase;
  letter-spacing: 0.02em; text-decoration: none; border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.light .link-plain:hover { color: var(--ink-2); }
.dark .link-plain:hover { color: var(--turq); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background: var(--ink) url("../img/hero-foto-tessuto.jpg") center / cover no-repeat;
  overflow: hidden; padding: 140px 0 72px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,62,69,.48) 0%, rgba(7,62,69,.58) 55%, rgba(7,62,69,.82) 100%);
}
.hero h1, .hero .sub { text-shadow: 0 2px 28px rgba(7,62,69,.55); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; width: 100%; }

.hero h1 { color: var(--white); font-size: clamp(30px, 4vw, 54px); }
.hero .motto { font-family: "Caveat", cursive; font-size: clamp(40px, 6vw, 84px); white-space: nowrap; line-height: 1; font-weight: 600; color: var(--accent); margin-bottom: 14px; transform: rotate(-3deg); -webkit-text-stroke: 5px var(--white); paint-order: stroke fill; text-shadow: 0 4px 24px rgba(7,62,69,.45); }
.hero .sub { margin-top: 28px; font-size: 19px; }

/* ---------- chi siamo (collage reale) ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.about-grid .text p + p { margin-top: 16px; }
.about-grid .text .tag { margin-bottom: 28px; }
.collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.collage .c-img { border-radius: var(--radius-img); width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--white); }

.collage .c-offset { margin-top: 44px; }

/* ---------- statement scuro ---------- */
.statement {
  text-align: left;
  position: relative;
  background: var(--ink) url("../img/hero-foto-onde.jpg") center / cover no-repeat;
  overflow: hidden;
}
.statement::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,62,69,.78) 0%, rgba(7,62,69,.7) 50%, rgba(7,62,69,.86) 100%);
}
.statement .container { position: relative; }

.statement h2 {
  font-size: clamp(38px, 5vw, 62px); line-height: 1.08; letter-spacing: -0.018em;
  max-width: 900px; margin-left: auto; color: var(--white);
}
.statement h2 .dim { color: var(--muted-dark); }
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 64px; border-top: 1px solid var(--line-dark); padding-top: 32px;
  max-width: 900px; margin-left: auto;
}
.stats-row .num { font-size: clamp(36px, 4vw, 52px); line-height: 1; letter-spacing: -0.02em; color: var(--white); }
.stats-row .lbl { margin-top: 8px; color: var(--muted-dark); }

/* ---------- prodotti ---------- */
.catalog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 40px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em;
  background: var(--white); border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 10px 16px; cursor: pointer;
}
.chip:hover { background: #EFEDE7; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  transition: border-color .15s;
}
.card:hover { border-color: var(--ink); }
.card .ph { aspect-ratio: 1; background: var(--white); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card .cat { color: var(--muted); }

.card p { color: var(--muted); font-size: 15px; }
.card.hidden { display: none; }

.catalog-foot { margin-top: 44px; display: flex; justify-content: flex-end; }

/* ---------- b2b ---------- */
.b2b-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }

.b2b-card {
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius-card);
  padding: 40px; display: flex; flex-direction: column; gap: 0;
}
.b2b-card .row {
  display: flex; align-items: baseline; gap: 14px; padding: 18px 0;
  border-bottom: 1px solid var(--line-dark); font-size: 19px; color: var(--white);
}
.b2b-card .row:last-child { border-bottom: none; }
.b2b-card .idx { font-family: var(--mono); font-size: 13px; color: var(--muted-dark); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding-top: var(--gap-section); overflow: hidden; }
.footer-cta { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; padding-bottom: 64px; }
.footer-cta h2 { font-size: clamp(32px, 4.2vw, 54px); letter-spacing: -0.016em; color: var(--white); }

.footer-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  border-top: 1px solid var(--line-dark); padding: 48px 0 24px;
}
.footer-cols .col h3 { font-family: var(--mono); font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; color: var(--muted-dark); margin-bottom: 18px; }
.footer-cols ul { list-style: none; }
.footer-cols li { margin-bottom: 10px; }
.footer-cols a { color: var(--white); text-decoration: none; font-size: 16px; }
.footer-cols a:hover { color: var(--turq); }
.footer-cols .small { color: var(--muted-dark); font-size: 14.5px; line-height: 1.6; }

/* ---------- pagine interne ---------- */.page-hero {
  background: var(--ink) url("../img/fondo-onde-eridano.jpg") center / cover no-repeat;
  position: relative; padding: 170px 0 80px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,62,69,.48) 0%, rgba(7,62,69,.58) 55%, rgba(7,62,69,.82) 100%);
}
.page-hero h1, .page-hero .sub { text-shadow: 0 2px 28px rgba(7,62,69,.55); }
.page-hero .container { position: relative; }
.page-hero .tag { margin-bottom: 28px; }
.page-hero h1 { color: var(--white); max-width: 820px; }
.page-hero .sub { color: var(--muted-dark); margin-top: 20px; font-size: 18px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.rounded-img { border-radius: var(--radius-img); width: 100%; height: auto; object-fit: cover; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 28px; display: flex; flex-direction: column; gap: 8px;
}
.contact-card .lbl { color: var(--muted); }
.contact-card a { text-decoration: none; color: var(--ink); font-size: 18px; }
.contact-card a:hover { color: var(--ink-2); text-decoration: underline; }

.brand-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.brand-card .brand-stage {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 10; padding: 40px; min-height: 0; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7,62,69,.78) 0%, rgba(7,62,69,.7) 50%, rgba(7,62,69,.86) 100%),
    var(--ink) url("../img/hero-foto-onde.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.brand-stage img { max-width: 78%; max-height: 100%; width: auto; height: auto; }
.brand-body { padding: 24px 32px 32px; }
.brand-body p { color: var(--muted); margin-top: 8px; }

/* ---------- reveal (rispetta prefers-reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; }
  .about-grid, .b2b-grid, .footer-cta { grid-template-columns: 1fr; gap: 40px; }
  .statement h2, .stats-row { margin-left: 0; }
}

@media (max-width: 900px) {
  .nav-pill { display: none; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { min-height: auto; padding: 130px 0 56px; }
  .hero .sub { font-size: 17px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .collage { grid-template-columns: 1fr 1fr; gap: 12px; }
  .collage .c-offset { margin-top: 20px; }
  .stats-row { grid-template-columns: 1fr; gap: 20px; }
  .two-col, .brand-duo{ grid-template-columns: 1fr; }
  .brand-card .brand-stage { padding: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .b2b-card { padding: 24px; }
  .site-header { inset: 12px 12px auto 12px; padding: 0; }
  .page-hero { padding: 130px 0 64px; }
}

/* ============================================================
   DINAMICA v2 — movimento e interazioni (ispirazione concorrenti:
   Chanteclair, Dixan, P&G; vedi ANALISI.md §Concorrenza)
   Tutte le animazioni sono disattivate con prefers-reduced-motion.
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  /* hero: onde in lenta deriva + packshot flottante + entrata testi */
  .hero { animation: heroDrift 36s ease-in-out infinite alternate; }
  @keyframes heroDrift {
    from { background-position: 28% 42%; }
    to   { background-position: 72% 58%; }
  }
     .hero h1, .hero .sub{
    animation: rise .7s ease-out both;
  }
  .hero h1 { animation-delay: .12s; }
  .hero .sub { animation-delay: .26s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
  }
  }

/* marquee del motto */

@media (prefers-reduced-motion: no-preference) {
  }

/* micro-interazioni bottoni e card */

.btn { transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.card { transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); }
.card .ph { overflow: hidden; }
.card .ph img { transition: transform .35s ease; }
.card:hover .ph img { transform: scale(1.05); }
.chip { transition: background .15s ease, color .15s ease, transform .15s ease; }
.chip:hover { transform: translateY(-1px); }
.link-plain { transition: color .15s ease; }

/* tile delle tre gamme (ispirazione mosaic Chanteclair) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
.tile {
  position: relative; border-radius: var(--radius-card); overflow: hidden;
  border: 1px solid var(--line); background: var(--ink); cursor: pointer;
  padding: 0; text-align: left;
}
.tile img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
  transition: transform .45s ease, opacity .3s ease;
}
.tile:hover img { transform: scale(1.06); }
.tile .t-label {
  position: relative; z-index: 1; background: var(--ink);
  padding: 16px 68px 18px 20px;
  display: flex; flex-direction: column; gap: 4px; color: var(--white);
}
.tile .t-label .mono { color: var(--muted-dark); }
.tile .t-label strong { font-size: 24px; font-weight: 400; letter-spacing: -0.01em; }
.tile .t-go {
  position: absolute; right: 16px; bottom: 20px; z-index: 1;
  width: 40px; height: 40px; border-radius: var(--radius-btn);
  background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease;
}
.tile:hover .t-go, .tile:focus-visible .t-go { opacity: 1; transform: none; }
.tile .t-go svg { width: 16px; height: 16px; }

/* telefono: tile delle gamme in colonna */

@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr; gap: 14px; margin-bottom: 40px; }
}

/* ============================================================
   v3 — modello P&G esteso alla home (decisione utente 2026-09-27)
   ============================================================ */

/* hero centrata: statement gigante, punto accentato, pillole */
.hero .container { display: block; text-align: center; }
.hero .container > * { margin-left: auto; margin-right: auto; }

.hero-brand {
  height: 110px; width: auto; margin-right: 22px; vertical-align: middle;
  filter: drop-shadow(0 4px 18px rgba(7,62,69,.45));
}
.hero h1 { max-width: 1000px; }
.hero .sub { max-width: 720px; margin-left: auto; margin-right: auto; }
.dot-end { color: var(--accent-light); }
.hero .sub { color: var(--muted-dark); }

/* intestazioni di sezione centrata (kicker mono + titolo display) */
.center-head { text-align: center; margin-bottom: 48px; }
.center-head .tag { margin-bottom: 22px; }
.center-head h2 { max-width: 820px; margin: 0 auto; }
.center-head p { margin: 18px auto 0; }

/* CTA pillola con contorno (stile P&G) */
.btn-outline {
  background: transparent; color: var(--ink); border: 1.5px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.center-cta { text-align: center; margin-top: 44px; }

/* blocco notizie/territorio a card */

@media (max-width: 640px) {
  .hero .container { text-align: left; }
  .hero .sub { margin-left: 0; }
  .hero h1 { margin-left: 0; }
}

/* sfondi hero per pagina (v4): il file viene caricato solo se presente;
   la classe .page-hero resta il fallback (fondo onde brand) */
.page-hero.ph-prodotti   { background-image: url("../img/page-hero-prodotti.jpg"); }
.page-hero.ph-azienda    { background-image: url("../img/page-hero-azienda.jpg"); }
.page-hero.ph-imprese    { background-image: url("../img/page-hero-imprese.jpg"); }
.page-hero.ph-territorio { background-image: url("../img/page-hero-territorio.jpg"); }
.page-hero.ph-contatti   { background-image: url("../img/page-hero-contatti.jpg"); }

/* ---------- scheda prodotto (prodotto.html) ---------- */
.pdp-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.pdp-photo {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 28px;
}
.pdp-photo img { border-radius: var(--radius-img); width: 100%; height: auto; }
.pdp-info h1 { letter-spacing: -0.015em; }
.pdp-facts {
  margin-top: 36px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr;
}
.pdp-facts .fact {
  padding: 16px 4px 14px; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 5px;
}
.pdp-facts dt { color: var(--muted); }
.pdp-facts dd { font-size: 17px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.step {
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius-card);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.step .idx {
  width: 40px; height: 40px; border-radius: var(--radius-btn); background: #D42A32;
  color: var(--white); display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.step p { color: var(--muted-dark); font-size: 16px; }
.steps.two { grid-template-columns: repeat(2, 1fr); }
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.tech-block {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.tech-block h3 { font-size: 20px; }
.tech-block p, .tech-block li { color: var(--muted); font-size: 16px; }
.tech-block ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; list-style: disc; }
.tech-table { border-top: 1px solid var(--line); }
.tech-row { display: flex; justify-content: space-between; gap: 24px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.tech-row dt { color: var(--muted); font-size: 15px; }
.tech-row dd { font-size: 16px; text-align: right; }
.tech-trade { margin-top: 44px; }
.tech-trade h3 { color: var(--muted); margin-bottom: 14px; }
@media (max-width: 1024px) {
  .tech-grid { grid-template-columns: 1fr; }
  .steps.two { grid-template-columns: 1fr; }
  .pdp-grid { grid-template-columns: 1fr; gap: 36px; }
  .pdp-photo { max-width: 480px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
}

/* ============================================================
   BOZZA v4 — revisione da "Valutazione grafica" (2026-09-28)
   Gerarchia a due pesi, mono solo per micro-etichette,
   CTA singola rossa, home semplificata, fix accessibilità.
   ============================================================ */
h1, h2, h3 { font-weight: 600; }
h1 { letter-spacing: -0.028em; }
h2 { letter-spacing: -0.018em; }
.card h3 { font-size: 20px; }
.tag { white-space: nowrap; }

.nav-pill .nav-link, .nav-pill .btn-nav { font-family: var(--sans); font-size: 15px; text-transform: none; letter-spacing: 0; }
.nav-pill .btn-nav { background: #D42A32; font-weight: 600; } /* testo bianco: --accent arriva a 4,1:1, sotto AA */
.nav-pill .btn-nav:hover { background: #B8232A; }
.mobile-menu nav a { font-family: var(--sans); font-size: 26px; font-weight: 600; text-transform: none; letter-spacing: -0.01em; }
.chip { font-family: var(--sans); font-size: 15px; text-transform: none; letter-spacing: 0; }
.link-plain { font-family: var(--sans); font-size: 16px; font-weight: 600; text-transform: none; letter-spacing: 0; }

.btn { font-family: var(--sans); font-size: 16px; font-weight: 600; text-transform: none; letter-spacing: 0; gap: 12px; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: #D42A32; color: var(--white); } /* testo bianco: --accent arriva a 4,1:1, sotto AA */
.btn-primary:hover { background: #B8232A; }
.dark .btn-outline { color: var(--white); border-color: var(--white); }
.dark .btn-outline:hover { background: var(--white); color: var(--ink); }

/* skip link: nascosto davvero finché non riceve il focus */
.skip-link { top: 12px; white-space: nowrap; transform: translateY(-200%); transition: transform .15s; }
.skip-link:focus { transform: none; }

/* reveal solo con JS attivo */
html:not(.js) .reveal { opacity: 1 !important; transform: none !important; }

/* immagini hero in WebP con fallback JPEG */
.hero { background-image: image-set(url("../img/hero-foto-tessuto.webp") type("image/webp"), url("../img/hero-foto-tessuto.jpg") type("image/jpeg")); }
.statement { background-image: image-set(url("../img/hero-foto-onde.webp") type("image/webp"), url("../img/hero-foto-onde.jpg") type("image/jpeg")); }
.brand-card .brand-stage { background-image: linear-gradient(180deg, rgba(7,62,69,.78) 0%, rgba(7,62,69,.7) 50%, rgba(7,62,69,.86) 100%), image-set(url("../img/hero-foto-onde.webp") type("image/webp"), url("../img/hero-foto-onde.jpg") type("image/jpeg")); }
.page-hero.ph-prodotti   { background-image: image-set(url("../img/page-hero-prodotti.webp") type("image/webp"), url("../img/page-hero-prodotti.jpg") type("image/jpeg")); }
.page-hero.ph-azienda    { background-image: image-set(url("../img/page-hero-azienda.webp") type("image/webp"), url("../img/page-hero-azienda.jpg") type("image/jpeg")); }
.page-hero.ph-imprese    { background-image: image-set(url("../img/page-hero-imprese.webp") type("image/webp"), url("../img/page-hero-imprese.jpg") type("image/jpeg")); }
.page-hero.ph-territorio { background-image: image-set(url("../img/page-hero-territorio.webp") type("image/webp"), url("../img/page-hero-territorio.jpg") type("image/jpeg")); }
.page-hero.ph-contatti   { background-image: image-set(url("../img/page-hero-contatti.webp") type("image/webp"), url("../img/page-hero-contatti.jpg") type("image/jpeg")); }
.page-hero.ph-novita     { background-image: image-set(url("../img/page-hero-novita.webp") type("image/webp"), url("../img/page-hero-novita.jpg") type("image/jpeg")); }
/* hero su telefono: immagini verticali 4:5 dedicate */
@media (max-width: 640px) {
  .page-hero.ph-prodotti { background-image: image-set(url("../img/page-hero-prodotti-m.webp") type("image/webp"), url("../img/page-hero-prodotti-m.jpg") type("image/jpeg")); }
  .page-hero.ph-azienda { background-image: image-set(url("../img/page-hero-azienda-m.webp") type("image/webp"), url("../img/page-hero-azienda-m.jpg") type("image/jpeg")); }
  .page-hero.ph-imprese { background-image: image-set(url("../img/page-hero-imprese-m.webp") type("image/webp"), url("../img/page-hero-imprese-m.jpg") type("image/jpeg")); }
  .page-hero.ph-territorio { background-image: image-set(url("../img/page-hero-territorio-m.webp") type("image/webp"), url("../img/page-hero-territorio-m.jpg") type("image/jpeg")); }
  .page-hero.ph-contatti { background-image: image-set(url("../img/page-hero-contatti-m.webp") type("image/webp"), url("../img/page-hero-contatti-m.jpg") type("image/jpeg")); }
  .page-hero.ph-novita { background-image: image-set(url("../img/page-hero-novita-m.webp") type("image/webp"), url("../img/page-hero-novita-m.jpg") type("image/jpeg")); }
}

/* home: un solo logo — quello dell'header compare dopo la hero */
body.home .site-header .brand-pill { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
body.home.scrolled .site-header .brand-pill { opacity: 1; visibility: visible; }

/* hero essenziale */
.hero-brand { display: block; height: 108px; width: auto; margin: 0 auto 32px; }
.hero .sub { max-width: 800px; }
.hero .btn { margin-top: 40px; }

/* tile gamme come link */
.tile { display: block; color: inherit; text-decoration: none; margin: 0; }
.tiles { margin-bottom: 0; }
.tile .t-label strong { font-size: clamp(19px, 2vw, 24px); font-weight: 600; line-height: 1.2; }
.tile .t-go { opacity: 1; transform: none; }

/* prodotti principali */
.light + .light { border-top: none; }
#prodotti { padding-top: 0; }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.featured { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card .body { gap: 8px; }

/* azienda + motto in un'unica sezione scura */
.statement .about-grid h2 { margin-left: 0; max-width: none; font-size: clamp(34px, 4.4vw, 54px); }
.statement .about-grid .tag { margin-bottom: 28px; }
.statement .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 40px 0 0; max-width: none; }
.statement .collage .c-img { background: var(--white); }

/* segnaposto contenuti da ricevere */

.b2b-grid .tag { margin-bottom: 0; }

/* evidenziazione nei titoli: colore, niente blocco inverso */
 .hl-light { background: none; padding: 0; }

.hl-light { color: #5FD4DC; text-shadow: none; }

/* footer: logo al posto del wordmark */
.footer-cta .btn { justify-self: end; }
.footer-logo { display: block; margin: 40px auto 56px; height: clamp(72px, 10vw, 130px); width: auto; }

@media (max-width: 1024px) {
  .featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cta .btn { justify-self: start; }
}
@media (max-width: 640px) {
  /* card su due colonne: testi più piccoli, descrizione al massimo su tre righe */
  .featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card .body { padding: 12px 12px 16px; gap: 6px; }
  .card h3 { font-size: 16px; line-height: 1.25; }
  .card .cat { font-size: 11px; }
  .card p { font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-brand { margin-left: 0; height: 53px; }
  .statement .stats-row { grid-template-columns: 1fr 1fr; }
  .hero .btn, .btn-primary { width: 100%; justify-content: space-between; }
}

/* ============================================================
   MOVIMENTO v5 — hover sulle immagini e ingressi a cascata
   Tutto disattivato con prefers-reduced-motion.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* hero: logo che entra (lo sfondo si muove in parallasse via JS) */
  .hero { animation: none; }
  .hero-brand { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }

  /* reveal a cascata: i figli di griglie entrano uno dopo l'altro */
  .reveal.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
  .reveal.stagger.in > * { opacity: 1; transform: none; }
  .reveal.stagger.in > *:nth-child(2) { transition-delay: .08s; }
  .reveal.stagger.in > *:nth-child(3) { transition-delay: .16s; }
  .reveal.stagger.in > *:nth-child(4) { transition-delay: .24s; }
  .reveal.stagger.in > *:nth-child(n+5) { transition-delay: .32s; }
  .reveal.stagger { opacity: 1; transform: none; }

  /* card prodotto: sollevamento con ombra, packshot che si ingrandisce e ruota appena */
  .card { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .2s ease; }
  .card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -18px rgba(7,62,69,.35); border-color: var(--line); }
  .card .ph img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
  .card:hover .ph img { transform: scale(1.07) rotate(-1.5deg); }
  .card h3 { transition: color .2s ease; }
  .card:hover h3 { color: var(--accent); }

  /* tile gamme: zoom lento, velatura che si alza, etichetta e freccia che salgono */
  .tile img { transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .3s ease; }
  .tile:hover img { transform: scale(1.1); }
  .tile .t-label { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .tile:hover .t-label { transform: translateY(-6px); }
  .tile .t-go { transition: transform .35s cubic-bezier(.2,.7,.2,1), background .2s ease; }
  .tile:hover .t-go { transform: translate(2px,-6px); background: #D42A32; }

  /* collage azienda: immagini che si inclinano leggermente */
  .collage .c-img { transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease; }
  .collage .c-img:hover { transform: rotate(-2deg) scale(1.03); box-shadow: 0 24px 50px -20px rgba(0,0,0,.45); }
  .collage .c-img.c-offset:hover { transform: rotate(2deg) scale(1.03); }

  /* scheda prodotto: packshot che segue il mouse (via JS) */
  .pdp-photo img { transition: transform .25s ease-out; will-change: transform; }

  /* foto arrotondate */
  .rounded-img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }

  /* link testuali: sottolineatura che scorre */
  .link-plain { border-bottom: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; transition: background-size .35s ease, color .15s ease; }
  .link-plain:hover { background-size: 0 1.5px; background-position: 100% 100%; }

  /* statistiche: leggera pulsazione del numero quando entra */
  .stats-row .num { transition: color .3s ease; }
  .stats-row > div:hover .num { color: #5FD4DC; }

  /* immagini di sfondo delle hero interne: parallasse (via JS) */
  .page-hero, .statement { background-attachment: scroll; }
}

/* selettore lingua */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; margin: 0 4px; padding: 3px; border-radius: 999px; background: var(--paper); }
.lang-switch a { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-decoration: none; color: var(--muted); padding: 7px 10px; border-radius: 999px; transition: background .15s ease, color .15s ease; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.mobile-menu .lang-switch { background: transparent; border: 1px solid var(--line-dark); margin-left: auto; margin-right: 10px; }
.mobile-menu .lang-switch a { color: var(--muted-dark); font-size: 14px; padding: 10px 14px; }
.mobile-menu .lang-switch a[aria-current="true"] { background: var(--white); color: var(--ink); box-shadow: none; }

/* header: niente a capo, menu mobile sotto 1080px (nav più larga con IT/EN) */
.nav-pill .btn-nav, .lang-switch a { white-space: nowrap; }
@media (max-width: 1080px) {
  .nav-pill { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- pagine legali ---------- */
.legal { max-width: 780px; }
.legal h2 { margin: 44px 0 14px; font-size: 22px; line-height: 1.25; letter-spacing: -0.005em; }
.legal p, .legal li { color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.legal p + p { margin-top: 14px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal ul { margin: 10px 0 0 22px; list-style: disc; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--ink-2); }
.legal table { border-collapse: collapse; width: 100%; max-width: 640px; margin-top: 18px; }
/* schermi stretti: la tabella scorre nel suo riquadro, non sposta la pagina */
.legal .table-wrap { overflow-x: auto; max-width: 640px; }
.legal .table-wrap:focus-visible { outline: 3px solid var(--turq); outline-offset: 2px; }.legal th { font-family: var(--mono); font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; color: var(--muted); text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
.legal td { color: var(--muted); font-size: 15.5px; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.legal .upd { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 48px; }

.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line-dark); padding: 20px 0 30px; }
.footer-bottom p { font-family: var(--mono); font-size: 13px; color: var(--muted-dark); max-width: none; margin: 0; }
.footer-bottom a { color: var(--muted-dark); text-decoration: none; }
.footer-bottom a:hover { color: var(--turq); }

/* ============================================================
   v6 — ricerca punti vendita, guida alla scelta, transizioni di pagina
   ============================================================ */

.quiz-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.quiz-intro h2 { margin-top: 28px; }
.quiz-intro p { margin-top: 20px; color: var(--muted-dark); }
.quiz { min-height: 320px; }
.quiz-step { color: var(--muted-dark); margin-bottom: 14px; }
.quiz-q { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; font-weight: 600; margin-bottom: 28px; outline: none; }
.quiz-opts { display: grid; gap: 12px; }
.quiz-opt { font: inherit; font-weight: 600; text-align: left; color: var(--white); background: transparent; border: 1.5px solid var(--line-dark); border-radius: var(--radius-img); padding: 18px 22px; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.quiz-opt:hover { background: var(--ink-2); border-color: var(--white); }
.quiz-result { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.quiz-nav { display: flex; gap: 28px; margin-top: 28px; }
.quiz-nav:empty { display: none; }
.quiz-link { color: var(--white); background-color: transparent; border: 0; padding: 0 0 3px; cursor: pointer; }
.quiz-link:hover { color: var(--turq); }

@media (max-width: 1024px) {
  .quiz-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* home, "Per le imprese": stesso sfondo della pagina dedicata; il footer si stacca con una linea chiara */
.b2b-bg {
  position: relative; overflow: hidden;
  background-color: var(--ink);
  background-image: image-set(url("../img/page-hero-imprese.webp") type("image/webp"), url("../img/page-hero-imprese.jpg") type("image/jpeg"));
  background-position: right center; background-size: cover; background-repeat: no-repeat;
}
.b2b-bg::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,62,69,.48) 0%, rgba(7,62,69,.58) 55%, rgba(7,62,69,.82) 100%);
}
.b2b-bg .container { position: relative; }
.b2b-bg .b2b-card { background: rgba(10,75,84,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
body.home .site-footer { border-top: 1px solid var(--line-dark); }

/* hero con video in loop (inserito da main.js solo su desktop, senza risparmio dati né riduzione movimento):
   la foto di sfondo resta visibile finché il video non parte */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0; transition: opacity .8s ease; }
.hero-video.on { opacity: 1; }
.hero-pausa {
  position: absolute; right: 20px; bottom: 20px; z-index: 2; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(7,62,69,.55); border: 1px solid rgba(255,255,255,.5); border-radius: 999px; color: var(--white);
}
.hero-pausa svg { fill: currentColor; }
.hero-pausa:hover { background: rgba(7,62,69,.8); }
.hero-pausa:focus-visible { outline: 3px solid var(--turq); outline-offset: 3px; }
.hero-pausa .i-play, .hero-pausa[aria-pressed="true"] .i-pausa { display: none; }
.hero-pausa[aria-pressed="true"] .i-play { display: inline; }
.hero::before { z-index: 1; }
.hero .container { z-index: 2; }

/* transizioni tra pagine: dissolvenza, con l'header che resta fermo */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
}

/* ============================================================
   v7 — piede compatto: colonne su una riga (l'invito a scrivere è la quarta colonna)
   e logo nella barra del copyright. Sostituisce i valori precedenti del footer.
   ============================================================ */
.site-footer { padding-top: 44px; }
.site-footer > .container:first-child {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.15fr; gap: 24px 40px; align-items: start; padding-bottom: 28px;
}
.footer-cols { display: contents; }
.footer-cta { grid-column: 4; grid-row: 1; display: block; padding: 0; }
.footer-cta h2 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; margin-bottom: 14px; }
.footer-cta .btn { padding: 12px 18px; font-size: 15px; }
.footer-cols .col h3 { margin-bottom: 10px; }
.footer-cols li { margin-bottom: 4px; }
.footer-cols a { font-size: 15px; }
.footer-cols .small { font-size: 14px; line-height: 1.45; }
.footer-bottom { flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 8px 20px; padding: 14px 0 16px; }
.footer-bottom .footer-logo { height: 25px; width: auto; margin: 0; }
.footer-bottom p:last-child { margin-left: auto; }

@media (max-width: 1024px) {
  .site-footer > .container:first-child { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-cta { grid-column: 1 / -1; padding-bottom: 8px; }
}
@media (max-width: 640px) {
  .site-footer { padding-top: 32px; }
  .site-footer > .container:first-child { grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: 20px 24px; padding-bottom: 20px; }
  .footer-cols .col:nth-child(2) { grid-column: 1 / -1; }
  .footer-bottom p:last-child { margin-left: 0; flex-basis: 100%; }
}

/* Video fragranze in home: card arrotondata con l'animazione in iframe (video-fragranze/) */
.video-band { padding: 0 0 var(--gap-section); } /* #prodotti sotto ha padding-top: 0 */
.video-card {
  position: relative; aspect-ratio: 16 / 9; min-height: 420px;
  border-radius: var(--radius-card); overflow: hidden; background: var(--paper);
}
.video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 899px) {
  .video-card { aspect-ratio: auto; height: min(150vw, 82svh); }
}

/* Novità, fiere e avviso (dati dal pannello admin/, resi da js/novita.js) */
#novita-home { padding-top: 0; } /* segue "I più richiesti", stesso fondo */
.novita-grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: start; }
.novita-label { color: var(--muted); font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.novita-block + .novita-block { margin-top: 64px; }
.novita-block h2 { margin-bottom: 24px; }
.fiere-list { list-style: none; border-top: 1px solid var(--line); }
.fiera { display: grid; grid-template-columns: 170px 1fr; gap: 8px 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.fiera > .link-plain { grid-column: 2; justify-self: start; font-size: 15px; }
.fiera .f-date { color: #D42A32; font-size: 14px; } /* rosso scurito: --accent su carta è 3,8:1, sotto AA */
.fiera .f-body { display: flex; flex-direction: column; gap: 4px; }
.fiera .f-where { color: var(--muted); font-size: 15px; }
.fiera.con-foto { grid-template-columns: 170px 1fr 140px; grid-template-rows: auto 1fr; } /* l'altezza in più della foto va alla seconda riga, non stacca il link */
.fiera .f-foto { grid-column: 3; grid-row: 1 / span 2; align-self: start; width: 140px; }
.fiera .f-foto img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.fiera .f-foto figcaption { color: var(--muted); font-size: 12px; line-height: 1.3; margin-top: 6px; }
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item { display: grid; grid-template-columns: 340px 1fr; gap: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.news-item:not(:has(.ph)) { grid-template-columns: 1fr; }
.news-item .ph { aspect-ratio: 1 / 1; } /* quadrata; se il testo è più alto si allunga, sempre piena */
.news-item .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-item .body { padding: 18px 22px 20px 0; display: flex; flex-direction: column; gap: 8px; }
.news-item:not(:has(.ph)) .body { padding-left: 22px; }
.news-item .cat { color: var(--muted); }
.news-item h3 a { color: inherit; text-decoration: none; }
.news-item h3 a:hover { text-decoration: underline; }
.news-item p { color: var(--muted); font-size: 15px; }
.news-full .news-item { grid-template-columns: 420px 1fr; scroll-margin-top: 110px; }
.news-full .news-item .body { padding: 24px 28px 28px 0; gap: 12px; }
.news-full .news-item p { color: var(--ink); font-size: 16px; }
.empty-note { color: var(--muted); }
/* Home: due notizie affiancate, schermo diviso a metà; altezza = metà della larghezza, testo in proporzione */
@media (min-width: 900px) {
  #novita-home .news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  #novita-home .news-item { grid-template-columns: 1fr 1fr; gap: 0; aspect-ratio: 2 / 1; container-type: inline-size; }
  #novita-home .news-item .ph { aspect-ratio: auto; height: 100%; }
  #novita-home .news-item .body { padding: 4cqw; gap: 1.5cqw; min-width: 0; overflow: hidden; }
  #novita-home .news-item .cat { font-size: clamp(9px, 2cqw, 12px); }
  #novita-home .news-item h3 { font-size: clamp(14px, 3.6cqw, 20px); line-height: 1.2; }
  #novita-home .news-item p { font-size: clamp(11px, 2.5cqw, 14px); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 899px) {
  .novita-grid { gap: 40px; }
  .fiera, .fiera.con-foto { grid-template-columns: 1fr; }
  .fiera > .link-plain { grid-column: 1; }
  .fiera .f-foto { grid-column: 1; grid-row: auto; width: 160px; margin-top: 6px; }
  .news-item, .news-full .news-item { grid-template-columns: 1fr; }
  .news-item .ph { max-width: 420px; }
  .news-item .body, .news-full .news-item .body { padding: 0 20px 20px; }
  .news-item:not(:has(.ph)) .body { padding-top: 20px; }
}

.avviso-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(7,62,69,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.avviso { background: var(--white); color: var(--ink); border-radius: var(--radius-card); padding: 36px 32px 28px; max-width: 480px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: 0 24px 60px rgba(7,62,69,.35); border-top: 4px solid var(--accent); }
.avviso h2 { font-size: 26px; margin-bottom: 14px; }
.avviso p { color: var(--muted); margin-bottom: 12px; }
.avviso .btn { margin-top: 12px; }
.avviso-con-img { max-width: 680px; display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.avviso-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; display: block; }
@media (max-width: 599px) { .avviso-con-img { grid-template-columns: 1fr; gap: 20px; } .avviso-img { max-width: 240px; } }
