:root {
  --bg: #100d0d;
  --paper: #fffaf3;
  --paper-soft: #f7efe3;
  --text: #241916;
  --muted: #6d5c55;
  --wine: #741528;
  --wine-dark: #3a0b16;
  --gold: #c99435;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  --radius: 22px;
  --header-h: 86px;
  --footer-h: 46px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  padding-bottom: var(--footer-h);
  background: var(--paper);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: linear-gradient(180deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .18));
  transition: background .25s ease, box-shadow .25s ease, height .25s ease;
}
.site-header.scrolled {
  height: 74px;
  background: rgba(16, 13, 13, .94);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
  backdrop-filter: blur(12px);
}
.brand img { width: clamp(116px, 13vw, 190px); height: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.main-nav a {
  position: relative;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 13px;
  font-weight: 700;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 42px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 7px 0; background: var(--white); transition: transform .25s ease, opacity .25s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.panel {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center start;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.guerrieri-hero { background-image: url("assets/hero-vigneto-guerrieri.png"); }
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.76), rgba(0,0,0,.35), rgba(0,0,0,.12));
}
.panel-content {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 120px);
  padding-top: var(--header-h);
  color: var(--white);
}
.eyebrow {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; line-height: 1.08; }
h1 { margin-bottom: 22px; font-size: clamp(46px, 7vw, 104px); font-weight: 500; }
h2 { margin-bottom: 22px; font-size: clamp(32px, 4.5vw, 68px); font-weight: 500; }
h3 { font-size: clamp(24px, 2.4vw, 38px); font-weight: 500; }
.hero-content > p:not(.eyebrow) { max-width: 650px; margin-bottom: 30px; font-size: clamp(17px, 1.4vw, 22px); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 6px 10px 0 0;
  padding: 13px 24px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: #21140c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); background: #e0b15b; }
.btn-secondary { background: transparent; color: var(--white); }
.btn-secondary:hover { background: var(--gold); color: #21140c; }

.guerrieri-section { padding: clamp(72px, 9vw, 140px) clamp(18px, 6vw, 96px); background: var(--paper); }
.guerrieri-section.dark {
  background: radial-gradient(circle at top right, rgba(201,148,53,.16), transparent 34%), linear-gradient(135deg, var(--wine-dark), #110b0d);
  color: var(--white);
}
.guerrieri-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
}
.guerrieri-grid.reverse { grid-template-columns: .85fr 1.15fr; }
.guerrieri-section p { color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); }
.dark p { color: rgba(255,255,255,.78); }
.info-panel{
  position:relative;
  overflow:hidden;
  padding:clamp(26px,3vw,44px);
  border:1px solid rgba(212,165,92,.28);
  border-radius:28px;
  background:linear-gradient(
    135deg,
    rgba(255,255,255,.12),
    rgba(255,255,255,.035)
  );
  box-shadow:0 26px 64px rgba(0,0,0,.36);
  backdrop-filter:blur(12px);
}

.info-panel::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:url("assets/catalogo-guerrieri/logo.png");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  opacity:0.35; /* 50% trasparenza */
  z-index:0;
}

.info-panel > *{
  position:relative;
  z-index:1;
}

.info-panel.glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: none;
  backdrop-filter: blur(10px);
}
.info-panel h3 { margin-bottom: 20px; color: var(--wine); }
.dark .info-panel h3 { color: var(--gold); }
.stats-list { list-style: none; display: grid; gap: 14px; }
.stats-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(116,21,40,.16);
}
.stats-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.stats-list strong { color: var(--wine); font-size: 24px; }
.stats-list span { color: var(--muted); text-align: right; }
.small-copy { font-size: 18px; }

.catalogo { background: linear-gradient(180deg, var(--paper), var(--paper-soft)); }
.section-heading {
  width: min(980px, 100%);
  margin: 0 auto clamp(42px, 6vw, 78px);
  text-align: center;
}
.section-heading p:not(.eyebrow) { margin: 0 auto; max-width: 720px; }
.catalog-category { width: min(1280px, 100%); margin: 0 auto clamp(54px, 7vw, 96px); }
.catalog-category:last-child { margin-bottom: 0; }
.catalog-category > h3 {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(116,21,40,.18);
  color: var(--wine);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(260px, 1fr) );
  gap: 22px;
}
.product-grid.compact { grid-template-columns: repeat( auto-fit, minmax(290px, 1fr) ); }
.product-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 18px;
  min-height: 210px;
  padding: 18px;
  border: 1px solid rgba(116,21,40,.12);
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 14px 36px rgba(80, 44, 28, .08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201,148,53,.65);
  box-shadow: 0 20px 48px rgba(80, 44, 28, .15);
}
.product-image {
  min-height: 174px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f5eadc);
  overflow: hidden;
}
.product-image img { max-height: 168px; object-fit: contain; }
.product-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--wine);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  line-height: 1.12;
}
.product-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.product-card p { font-size: 15px; line-height: 1.5; }

.guerrieri-cta {
  padding: clamp(70px, 8vw, 124px) 18px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(rgba(42,9,18,.88), rgba(42,9,18,.92)), url("assets/hero-vigneto-guerrieri.png") center/cover fixed;
}
.guerrieri-cta h2 { max-width: 760px; margin: 0 auto 24px; }

.site-footer {
  position: fixed;
  z-index: 60;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: var(--footer-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: rgba(16, 13, 13, .96);
  color: rgba(255,255,255,.86);
  text-align: center;
  font-size: clamp(11px, 1vw, 14px);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 920px) {
  :root { --header-h: 76px; --footer-h: 58px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 14px;
    right: 14px;
    display: grid;
    gap: 0;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: rgba(16, 13, 13, .97);
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 14px 10px; }
  .panel-content { margin: 0 auto; }
  .guerrieri-grid,
  .guerrieri-grid.reverse { grid-template-columns: 1fr; }
  .guerrieri-grid.reverse .info-panel { order: 2; }
  .product-card { grid-template-columns: 100px 1fr; }
  .guerrieri-cta { background-attachment: scroll; }
}

@media (max-width: 560px) {
  :root { --footer-h: 72px; }
  .site-header { padding-inline: 14px; }
  .panel { min-height: 92svh; }
  .product-card { grid-template-columns: 1fr; }
  .product-image { min-height: 210px; }
  .product-image img { max-height: 200px; }
  .btn { width: 100%; margin-right: 0; }
}
