﻿/* Poggio al Mignone — foglio di stile */
:root {
  --wine: #6b1e2e;
  --wine-dark: #3f0f1a;
  --cream: #f6f1e7;
  --paper: #fbf8f2;
  --sand: #e9dfcc;
  --olive: #5f6b48;
  --sage: #a3ad8a;
  --gold: #b08d57;
  --ink: #1f1a17;
  --muted: #6c625a;
  --line: rgba(31, 26, 23, 0.12);
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --radius: 4px;
  --wrap: 1200px;
  --shadow: 0 18px 40px -24px rgba(31, 26, 23, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.1em; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; margin-inline: auto; }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1rem;
  display: inline-block;
}
.lead { font-size: 1.2rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.9em 1.8em;
  font: 500 0.85rem/1 var(--sans);
  letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--wine); background: var(--wine); color: #fff;
  border-radius: var(--radius); text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--wine-dark); border-color: var(--wine-dark); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--wine); }
.btn-ghost:hover { background: var(--wine); color: #fff; }
.btn-light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.link-arrow { font-weight: 500; text-decoration: none; color: var(--wine); letter-spacing: 0.04em; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " →"; }

/* Barra superiore */
.topbar { background: var(--wine-dark); color: var(--cream); font-size: 0.8rem; letter-spacing: 0.06em; text-align: center; padding: 8px 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; letter-spacing: 0.02em; }
.brand-sub { font-size: 0.64rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.main-nav a {
  text-decoration: none; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--wine); border-bottom-color: var(--wine); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; text-decoration: none; color: var(--ink);
}
.cart-link:hover { background: var(--sand); }
.cart-link svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--wine); color: #fff; font-size: 0.7rem; font-weight: 600;
  display: grid; place-items: center; line-height: 1;
}
.cart-count[data-count="0"] { display: none; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 1.5px; background: currentColor; margin: auto; position: relative; transition: transform 0.25s, background 0.25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: min(86vh, 760px); display: flex; align-items: flex-end;
  background: linear-gradient(180deg, #e8c99a 0%, #d79a6f 32%, #8c4a4a 62%, #3f0f1a 100%);
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,8,10,0) 35%, rgba(20,8,10,0.55) 100%); }
.hero-content { position: relative; z-index: 2; padding: 0 0 clamp(56px, 10vh, 110px); max-width: 760px; }
.hero .eyebrow { color: #f3dcb1; }
.hero h1 { color: #fff; margin-bottom: 0.35em; text-shadow: 0 2px 30px rgba(0,0,0,0.25); }
.hero p { font-size: 1.2rem; max-width: 560px; color: rgba(255,255,255,0.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.page-hero {
  position: relative; overflow: hidden; color: #fff; padding: clamp(80px, 14vw, 150px) 0 clamp(56px, 8vw, 90px);
  background: linear-gradient(160deg, var(--wine-dark), var(--wine) 60%, #8b3b3b);
}
.page-hero.olive { background: linear-gradient(160deg, #2f3626, var(--olive) 65%, #7d8a5f); }
.page-hero.sand { background: linear-gradient(160deg, #6e5634, var(--gold) 70%, #cfb383); }
.page-hero .hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 45%; opacity: 0.35; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .eyebrow { color: #f3dcb1; }
.page-hero p { color: rgba(255,255,255,0.88); font-size: 1.15rem; max-width: 620px; }
.breadcrumb { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; color: rgba(255,255,255,0.75); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Sezioni */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: clamp(48px, 7vw, 80px) 0; }
.section.cream, .section-tight.cream { background: var(--cream); }
.section.sand, .section-tight.sand { background: var(--sand); }
.section.dark, .section-tight.dark { background: var(--ink); color: var(--cream); }
.section.dark .lead { color: rgba(246,241,231,0.75); }
.section.wine, .section-tight.wine { background: var(--wine-dark); color: var(--cream); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.art-frame {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow);
}
.art-frame svg { width: 100%; height: 100%; }
.art-frame.wide { aspect-ratio: 16 / 11; }
.art-caption { font-size: 0.8rem; color: var(--muted); margin-top: 10px; letter-spacing: 0.04em; }

.signature { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--wine); margin-top: 8px; }

/* Valori */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.value { border-top: 1px solid var(--line); padding-top: 24px; }
.section.dark .value, .section.wine .value { border-color: rgba(246,241,231,0.2); }
.value-icon { width: 44px; height: 44px; color: var(--gold); margin-bottom: 16px; }
.value h3 { font-size: 1.45rem; }
.value p { font-size: 0.95rem; color: var(--muted); margin: 0; }
.section.dark .value p, .section.wine .value p { color: rgba(246,241,231,0.72); }

/* Card vini */
.wine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.wine-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden; transition: box-shadow 0.25s, transform 0.25s;
}
.wine-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.wine-card-media {
  display: grid; place-items: center; padding: 34px 20px 20px; height: 330px; text-decoration: none;
  background: radial-gradient(circle at 50% 70%, #fff 0%, var(--cream) 70%);
}
.wine-card-media svg { height: 100%; width: auto; filter: drop-shadow(0 18px 18px rgba(31,26,23,0.18)); transition: transform 0.35s; }
.wine-card:hover .wine-card-media svg { transform: translateY(-6px) rotate(-1.5deg); }
.wine-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.wine-type { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.wine-card h3 { margin: 6px 0 4px; font-size: 1.7rem; }
.wine-card h3 a { text-decoration: none; }
.wine-card .denom { font-size: 0.88rem; color: var(--muted); margin-bottom: 12px; }
.wine-card .short { font-size: 0.95rem; color: var(--muted); flex: 1; }
.wine-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.price { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.btn-add { padding: 0.75em 1.1em; font-size: 0.75rem; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter {
  border: 1px solid var(--line); background: transparent; padding: 0.6em 1.2em; border-radius: 40px;
  font: 500 0.8rem var(--sans); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; color: var(--ink);
}
.filter:hover { border-color: var(--wine); color: var(--wine); }
.filter.is-active { background: var(--wine); border-color: var(--wine); color: #fff; }
.wine-card[hidden] { display: none; }

/* Scheda vino */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.product-media {
  position: sticky; top: 110px; display: grid; place-items: center; padding: 56px 24px; border-radius: var(--radius);
  background: radial-gradient(circle at 50% 65%, #fff 0%, var(--cream) 65%, var(--sand) 100%); min-height: 560px;
}
.product-media svg { height: 480px; width: auto; filter: drop-shadow(0 30px 26px rgba(31,26,23,0.25)); }
.product-info .price { font-size: 2.2rem; display: block; margin: 8px 0 22px; }
.product-info .price small { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); font-weight: 400; margin-left: 8px; }
.buy-row { display: flex; gap: 12px; align-items: stretch; margin: 26px 0 14px; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.qty button { width: 44px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty button:hover { color: var(--wine); }
.qty input { width: 48px; border: 0; text-align: center; font: 500 1rem var(--sans); background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row .btn { flex: 1; }
.ship-note { font-size: 0.88rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.specs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin: 32px 0; }
.specs div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.25rem; }
.notes-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.notes-list li { background: var(--cream); border: 1px solid var(--line); border-radius: 40px; padding: 0.35em 1em; font-size: 0.88rem; }

/* Territorio */
.feature-band { position: relative; overflow: hidden; color: #fff; background: var(--olive); }
.feature-band svg.band-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature-band .wrap { position: relative; z-index: 1; padding: clamp(90px, 13vw, 170px) 0; }
.feature-band .narrow p { color: rgba(255,255,255,0.88); font-size: 1.15rem; }
.feature-band .eyebrow { color: #f0dfb8; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 36px 28px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 500; color: var(--wine); line-height: 1; margin-bottom: 10px; }
.fact span { color: var(--muted); font-size: 0.95rem; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 36px 44px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 8px; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.timeline h3 { margin-bottom: 6px; }
.timeline p { color: var(--muted); margin: 0; }

/* Esperienze */
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.exp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.exp-card .art { height: 210px; }
.exp-card .art svg { width: 100%; height: 100%; }
.exp-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.exp-meta { display: flex; gap: 16px; font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 12px; flex-wrap: wrap; }
.exp-body p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.exp-price { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 16px; }
.exp-price small { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); font-weight: 400; }

/* Moduli */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85em 1em; font: 400 1rem var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .qty input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.check input { margin-top: 5px; accent-color: var(--wine); width: 16px; height: 16px; flex: none; }
.form-msg { padding: 14px 18px; border-radius: var(--radius); background: #eef1e6; border: 1px solid var(--sage); color: #34402a; font-size: 0.95rem; }
.form-msg[hidden] { display: none; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 90px); }
.contact-list { list-style: none; padding: 0; margin: 0 0 32px; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.contact-list span { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--wine); }
.map-box { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; position: relative; box-shadow: var(--shadow); }
.map-box svg { width: 100%; height: 100%; }
.map-box .map-label {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); background: var(--ink); color: #fff;
  padding: 8px 14px; border-radius: var(--radius); font-size: 0.85rem; white-space: nowrap;
}
.map-box .map-label::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-bottom: 0; border-top-color: var(--ink); }

/* Carrello */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.cart-items { border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { height: 110px; display: grid; place-items: center; background: var(--cream); border-radius: var(--radius); }
.cart-thumb svg { height: 92px; width: auto; }
.cart-item h3 { font-size: 1.4rem; margin: 0 0 2px; }
.cart-item h3 a { text-decoration: none; }
.cart-item .meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }
.cart-item .qty button { width: 34px; }
.cart-item .qty input { width: 38px; font-size: 0.95rem; }
.cart-item .line-total { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; text-align: right; }
.remove { background: none; border: 0; color: var(--muted); font-size: 0.8rem; text-decoration: underline; cursor: pointer; margin-left: 14px; }
.remove:hover { color: var(--wine); }
.summary { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: sticky; top: 110px; }
.summary h2 { font-size: 1.8rem; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 0.98rem; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.free-bar { height: 6px; background: var(--sand); border-radius: 6px; overflow: hidden; margin: 6px 0 4px; }
.free-bar i { display: block; height: 100%; background: var(--olive); width: 0; transition: width 0.3s; }
.free-text { font-size: 0.85rem; color: var(--muted); }
.summary .check { margin: 18px 0; }
.mode-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; text-align: center; }
.empty-cart { text-align: center; padding: 60px 20px; }
.empty-cart svg { width: 90px; margin: 0 auto 18px; color: var(--sand); }
.pay-icons { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.pay-icons span { font-size: 0.7rem; letter-spacing: 0.08em; border: 1px solid var(--line); background: #fff; border-radius: 3px; padding: 3px 8px; color: var(--muted); }

/* Toast / mini carrello */
.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 80; background: var(--ink); color: var(--cream);
  padding: 16px 20px; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; gap: 16px; align-items: center;
  transform: translateY(140%); opacity: 0; transition: transform 0.35s, opacity 0.35s; max-width: calc(100% - 48px); font-size: 0.95rem;
}
.toast.show { transform: none; opacity: 1; }
.toast a { color: #f3dcb1; font-weight: 500; white-space: nowrap; }

/* Newsletter */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.newsletter form { display: flex; gap: 10px; }
.newsletter input { flex: 1; padding: 0.95em 1.1em; border: 1px solid rgba(246,241,231,0.35); background: transparent; color: #fff; border-radius: var(--radius); font: 1rem var(--sans); }
.newsletter input::placeholder { color: rgba(246,241,231,0.6); }

/* Citazione */
.quote { font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.3; font-style: italic; text-align: center; max-width: 900px; margin: 0 auto; }
.quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 24px; }

/* Testi legali */
.prose h2 { font-size: 1.8rem; margin-top: 1.6em; }
.prose p, .prose li { color: #3b342f; }
.prose ul { padding-left: 1.2em; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(246,241,231,0.78); padding: 80px 0 30px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
.site-footer h4 { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: var(--cream); margin-bottom: 18px; }
.site-footer .brand-sub { color: rgba(246,241,231,0.6); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border: 1px solid rgba(246,241,231,0.25); border-radius: 50%; display: grid; place-items: center; }
.socials a:hover { border-color: var(--gold); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(246,241,231,0.14); margin-top: 60px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: rgba(246,241,231,0.55); }
.footer-bottom a { margin-left: 18px; }
.drink-note { font-size: 0.8rem; color: rgba(246,241,231,0.5); margin-top: 14px; }

/* Animazioni di comparsa */
.js-anim .reveal:not(.in) { animation: none; }
.reveal.in { animation: rise 0.9s ease both; }
@keyframes rise { from { opacity: 0.001; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal.in { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1080px) {
  .values { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav ul { gap: 20px; }
}
@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    position: fixed; inset: 84px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease; box-shadow: var(--shadow);
  }
  .nav-open .main-nav { max-height: 80vh; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 16px 0; border: 0; font-size: 0.9rem; }
  .wine-grid, .exp-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .product, .contact-grid, .cart-layout, .newsletter { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .product-media { position: relative; top: 0; min-height: 420px; }
  .product-media svg { height: 360px; }
  .summary { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .header-inner { height: 72px; }
  .main-nav { inset: 72px 0 auto 0; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 1.3rem; }
  .brand-sub { font-size: 0.56rem; letter-spacing: 0.22em; }
  .wine-grid, .exp-grid, .values, .facts, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .fact { border-left: 0; border-top: 1px solid var(--line); padding: 26px 0; }
  .fact:first-child { border-top: 0; }
  .wine-card-media { height: 290px; }
  .newsletter form { flex-direction: column; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .cart-item .line-total { grid-column: 2; text-align: left; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .footer-bottom a { margin: 0 18px 0 0; }
  .hero { min-height: 640px; }
  .toast { right: 18px; left: 18px; bottom: 18px; max-width: none; }
}

/* ---------- Foto reali ---------- */
.brand-logo { height: 66px; width: auto; mix-blend-mode: multiply; }
.brand-text-side { border-left: 1px solid var(--line); padding-left: 12px; gap: 6px; }
.brand-text-side .brand-sub { margin: 0; }
.footer-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 18px; }
.footer-logo img { height: 92px; width: auto; }

.hero { background: #3f0f1a; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after { background: linear-gradient(90deg, rgba(25,10,12,0.72) 0%, rgba(25,10,12,0.38) 55%, rgba(25,10,12,0.05) 100%), linear-gradient(180deg, rgba(25,10,12,0.25) 0%, rgba(25,10,12,0) 30%, rgba(25,10,12,0.55) 100%); }

.page-hero.has-photo { background: #2a1612; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero.has-photo .wrap { z-index: 2; }
.page-hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(25,10,12,0.78) 0%, rgba(25,10,12,0.45) 60%, rgba(25,10,12,0.2) 100%); }

.art-frame img, .exp-card .art img, .gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-frame { background: var(--sand); }

.wine-card-media { padding: 0; height: auto; aspect-ratio: 3 / 4; overflow: hidden; background: #f1dccd; }
.wine-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.wine-card:hover .wine-card-media img { transform: scale(1.04); }

.product-media { padding: 0; min-height: 0; overflow: hidden; background: #f1dccd; }
.product-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.feature-band { background: #3f4a2e; }
.feature-band .band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.feature-band .wrap { z-index: 2; }
.feature-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(30,36,22,0.82) 0%, rgba(30,36,22,0.5) 55%, rgba(30,36,22,0.1) 100%); }

.cart-thumb { overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Scheda tecnica */
.sheet { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-top: 28px; }
.sheet summary { cursor: pointer; padding: 16px 20px; font-family: var(--serif); font-size: 1.4rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.sheet summary::-webkit-details-marker { display: none; }
.sheet summary::after { content: "+"; font-family: var(--sans); font-size: 1.3rem; color: var(--gold); }
.sheet[open] summary::after { content: "−"; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.sheet th, .sheet td { text-align: left; vertical-align: top; padding: 11px 20px; border-top: 1px solid var(--line); }
.sheet th { width: 38%; font-weight: 500; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 13px; }

/* Galleria eventi */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); display: block; background: var(--sand); }
.gallery-item.big { grid-column: span 2; grid-row: span 2; }
.gallery-item img { transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after { content: "+"; position: absolute; right: 12px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(251,248,242,0.9); color: var(--ink); display: grid; place-items: center; font-size: 1.2rem; opacity: 0; transition: opacity 0.25s; }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15,8,9,0.94); display: flex; align-items: center; justify-content: center; padding: 40px 70px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 2px; }
.lightbox figcaption { color: var(--cream); font-size: 0.9rem; margin-top: 12px; text-align: center; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 2.6rem; line-height: 1; width: 56px; height: 56px; }
.lightbox button:hover { color: var(--gold); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

@media (max-width: 920px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .product-media img { max-height: 640px; }
}
@media (max-width: 640px) {
  .brand-logo { height: 56px; }
  .brand-text-side { display: none; }
  .gallery { grid-auto-rows: 140px; gap: 8px; }
  .lightbox { padding: 60px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
  .hero::after { background: linear-gradient(180deg, rgba(25,10,12,0.2) 0%, rgba(25,10,12,0.75) 100%); }
}
