:root {
  --burgundy: #5c1a1a;
  --deep-wine: #3a0d0d;
  --gold: #c9a84c;
  --gold-light: #e8d49a;
  --cream: #f5f0e8;
  --warm-white: #faf7f2;
  --text-dark: #1e1208;
  --text-mid: #4a3728;
  --text-light: #8a7060;
  --border: rgba(201,168,76,0.25);
}

*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html { 
  scroll-behavior: smooth; 
  height: 100%;
}

body {
  font-family: 'Raleway', sans-serif;
  background: var(--warm-white);
  color: var(--text-dark);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

main {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ── NAV ── */
nav {
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 100;
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    padding: 0.6rem 5vw;
    transition: background 0.5s, backdrop-filter 0.5s, box-shadow 0.5s;
    background: linear-gradient(to bottom, rgba(92, 26, 26, 0.6) 0%, transparent 100%);
}

nav.scrolled {
    background: #faf7f2 !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(201,168,76,0.25);
}

.nav-logo-wrap {
    display: flex !important;
    align-items: center !important;
    background: none !important;
    padding: 0 !important;
    text-decoration: none !important;
}

.nav-logo-img {
    height: 100px !important;
    width: auto !important;
    max-width: 220px !important;
    object-fit: contain;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.nav-links { display: flex; gap: 2.5rem; list-style: none; }

.nav-links a {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

nav.scrolled .nav-links a { color: #1e1208 !important; }

.nav-links a::after {
    content: '';
    position: absolute; bottom: -3px; left: 0; right: 0;
    height: 1px; background: #c9a84c;
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.35s ease;
}

.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a:hover { color: #c9a84c; }
nav.scrolled .nav-links a:hover { color: #5c1a1a !important; }

/* ── HERO ── */
#hero {
  position: relative;
  height: 100vh; min-height: 600px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(58,13,13,0.72) 0%, rgba(30,18,8,0.85) 100%), url('sfondo-hero.jpg') center/cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.hero-grain {
  position: absolute; inset: 0; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://w3.org id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}
.hero-divider-top {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 90px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: fadeDown 1.8s ease forwards;
  opacity: 0;
}
@keyframes fadeDown { to { opacity: 1; } }
.hero-content {
  position: relative; z-index: 2;
  animation: heroReveal 1.4s cubic-bezier(0.22,1,0.36,1) 0.3s both;
}
@keyframes heroReveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.hero-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.6rem;
  font-weight: 400;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 0.92;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-tagline {
  margin-top: 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: rgba(245,240,232,0.65);
  font-weight: 300;
}
.hero-cta {
  margin-top: 3rem;
  display: inline-block;
  padding: 0.85rem 2.8rem;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}
.hero-cta:hover { background: var(--gold); color: var(--deep-wine); }
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  z-index: 2; opacity: 0.6; animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }
.hero-scroll span { font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-light); }
.hero-scroll svg { stroke: var(--gold-light); }

/* ── SECTIONS SHARED ── */
section { padding: 8rem 5vw; }
.section-label {
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--burgundy);
  line-height: 1.1;
}
.section-title em { font-style: italic; color: var(--text-mid); }
.gold-rule { width: 60px; height: 1px; background: var(--gold); margin: 1.8rem 0; }

/* ── SEZIONE PODERE & INTRO ── */
#home-intro { padding: 8rem 5vw; background: var(--warm-white); }
.intro-grid-layout { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; }
.intro-title-row { width: 100%; display: flex; justify-content: flex-end; margin-bottom: 2.5rem; }
.intro-title-row .section-title { width: calc(50% - 3rem); text-align: left; }
.intro-container { display: flex; align-items: flex-start; justify-content: space-between; gap: 6rem; width: 100%; }
.intro-img-wrap { flex: 1; }
.intro-img-wrap img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.intro-text { flex: 1; text-align: left; }
.intro-text p { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.35rem; line-height: 1.6; color: var(--burgundy); margin-bottom: 1.2rem; }

#chi-siamo { 
    background: var(--cream); 
    padding: 8rem 5vw;
}

#chi-siamo .intro-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#chi-siamo .intro-text { 
    flex: 1; 
    text-align: justify; 
}

#chi-siamo .intro-text p {
    font-family: 'Raleway', sans-serif !important;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-mid);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

#chi-siamo .intro-text p:last-child {
    margin-bottom: 0;
}

#chi-siamo .intro-img-wrap { 
    flex: 1;
    display: flex;
    justify-content: center;
}

#chi-siamo .intro-img-wrap img { 
    width: 100%;
    max-width: 500px; 
    height: auto; 
    display: block; 
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}

.section-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.8rem;
}

#il-territorio .intro-img-wrap img { width: 100%; height: auto !important; aspect-ratio: auto !important; object-fit: contain !important; }
#il-territorio .intro-text p { font-family: 'Raleway', sans-serif !important; font-style: normal !important; font-size: 1rem !important; line-height: 1.85 !important; color: var(--text-mid) !important; }

/* ── VINI ── */
#vini { background: var(--warm-white); }
.vini-header { text-align: center; margin-bottom: 5rem; }
.vini-header .gold-rule { margin: 1.8rem auto; }
.vini-tabs { display: flex; justify-content: center; gap: 0; margin-bottom: 4rem; border-bottom: 1px solid var(--border); }
.vini-tab { padding: 0.85rem 2.5rem; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; color: var(--text-light); cursor: pointer; border: none; background: none; position: relative; transition: color 0.3s; }
.vini-tab::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--burgundy); transform: scaleX(0); transition: transform 0.3s ease; }
.vini-tab.active { color: var(--burgundy); }
.vini-tab.active::after { transform: scaleX(1); }
.vini-panel { display: none; }
.vini-panel.active { display: block; animation: fadeUp 0.5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.vini-category-title { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-style: italic; color: var(--text-light); text-align: center; margin-bottom: 3rem; letter-spacing: 0.12em; }
.wine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px; max-width: 1100px; margin: 0 auto; }
.wine-card { background: var(--cream); padding: 3rem 2.2rem; position: relative; overflow: hidden; cursor: pointer; transition: transform 0.3s ease; display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: center !important; text-align: center !important; }
.wine-card::before { content: ''; position: absolute; inset: 0; background: var(--burgundy); transform: translateY(101%); transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94); z-index: 0; }
.wine-card:hover::before { transform: translateY(0); }
.wine-card:hover .wc-name, .wine-card:hover .wc-variety, .wine-card:hover .wc-desc { color: var(--cream); }
.wine-card:hover .wc-number { color: rgba(201,168,76,0.25); }
.wine-card:hover .wc-icon { border-color: rgba(201,168,76,0.3); }
.wine-card:hover .wc-icon svg { stroke: var(--gold); }
.wc-number { position: absolute !important; top: 1rem !important; left: 1rem !important; right: auto !important; font-family: 'Cormorant Garamond', serif; font-size: 4rem; font-weight: 300; color: rgba(92,26,26,0.07); line-height: 1; transition: color 0.4s; z-index: 1; }
.wine-card > * { position: relative; z-index: 1; }
.wc-icon { width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; transition: border-color 0.4s; }
.wc-icon svg { transition: stroke 0.4s; }
.wc-name { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 400; color: var(--burgundy); line-height: 1.15; margin-bottom: 0.5rem; transition: color 0.4s; }
.wc-variety { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 1.2rem; transition: color 0.4s; }
.wc-desc { font-size: 0.85rem; color: var(--text-light); line-height: 1.7; font-weight: 300; transition: color 0.4s; }

/* ── QUOTE BAND ── */
#quote { background: var(--deep-wine); padding: 6rem 5vw; text-align: center; position: relative; }

/* ── CONTATTI & LAYOUT A DUE COLONNE CORRETTO ── */
#contatti {
    background: var(--cream);
    display: grid !important;
    grid-template-columns: 1fr 1fr; 
    gap: 6rem;
    align-items: start !important;
   padding: 8rem 5vw;
    flex: 1 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.contatti-info p { font-size: 0.9rem; line-height: 1.9; color: var(--text-mid); font-weight: 300; margin-bottom: 0.5rem; }
.contatti-info p strong { font-weight: 600; color: var(--burgundy); display: block; margin-bottom: 0.15rem; }
.contatti-detail { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.cd-item { display: flex; align-items: flex-start; gap: 1rem; }
.cd-icon { width: 36px; height: 36px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cd-text { font-size: 0.85rem; color: var(--text-mid); font-weight: 300; line-height: 1.6; }
.cd-text strong { color: var(--text-dark); display: block; }

/* FORM CONTATTI */
.contatti-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field-wrap { display: flex; flex-direction: column; gap: 0.4rem; }
.field-wrap label { font-size: 0.62rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-light); font-weight: 500; }
.contatti-form input, .contatti-form select, .contatti-form textarea { background: var(--warm-white); border: 1px solid var(--border); padding: 0.85rem 1rem; font-family: 'Raleway', sans-serif; font-size: 0.9rem; color: var(--text-dark); outline: none; transition: border-color 0.3s; resize: vertical; width: 100%; }
.field-wrap input:focus, .field-wrap select:focus, .field-wrap textarea:focus { border-color: var(--gold); }
.field-wrap textarea { min-height: 130px; }
.btn-submit { align-self: flex-start; padding: 1rem 3rem; background: var(--burgundy); color: var(--cream); border: 1px solid var(--burgundy); font-family: 'Raleway', sans-serif; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; cursor: pointer; transition: background 0.3s, color 0.3s; margin-top: 0.5rem; border-radius: 4px; }
.btn-submit:hover { background: transparent; color: var(--burgundy); }
.form-success { display: none; padding: 1rem 1.5rem; border: 1px solid var(--gold); color: var(--burgundy); font-size: 0.85rem; text-align: center; }

/* ── FOOTER RIPRISTINATO E SPAZIATO ALLINEATO A SINISTRA/DESTRA ── */
footer {
    background: var(--deep-wine) !important;
    padding: 2.2rem 5vw !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important; /* Mantiene distanziati logo e social */
  border-top: 1px solid rgba(201,168,76,0.15) !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  margin-top: auto !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; color: var(--cream); letter-spacing: 0.06em; }
.footer-logo span { color: var(--gold); }
.footer-logo img {
    height: 70px !important;
	width: auto;
    display: block;
}
.footer-copy { font-size: 0.68rem; letter-spacing: 0.15em; color: rgba(245,240,232,0.35); text-align: center; }
.footer-social { display: flex; align-items: center; gap: 1rem; }
.footer-social a { width: 34px; height: 34px; border: 1px solid rgba(201,168,76,0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(245,240,232,0.5); text-decoration: none; font-size: 0.72rem; transition: border-color 0.3s, color 0.3s; }
.footer-social a:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.05); }
.footer-social img {
    max-height: 80px; 
	    width: auto;
    display: block;
}

/* MODALI E VISUALIZZAZIONE SCHEDE VINO */
.wine-modal { position: fixed; inset: 0; background-color: rgba(30, 18, 8, 0.6); backdrop-filter: blur(5px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.wine-modal.open { opacity: 1; pointer-events: auto; }
.wine-modal-content { background-color: var(--warm-white); padding: 3rem; border-radius: 4px; max-width: 500px; width: 90%; position: relative; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); border: 1px solid var(--gold); transform: translateY(-20px); transition: transform 0.4s ease; text-align: center; }
.wine-modal.open .wine-modal-content { transform: translateY(0); }
.wine-modal-close { position: absolute; top: 15px; right: 20px; font-size: 2rem; color: var(--text-light); cursor: pointer; transition: color 0.2s; }
.wine-modal-close:hover { color: var(--burgundy); }
.wine-page-view { position: fixed; inset: 0; background-color: var(--warm-white); z-index: 9999; display: block; overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.wine-page-view.open { opacity: 1; pointer-events: auto; }
.wpv-header { padding: 2rem 5vw; display: flex; align-items: center; }
.wpv-back-btn { background: none; border: 1px solid var(--gold); color: var(--burgundy); padding: 0.75rem 2rem; font-family: 'Raleway', sans-serif; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 500; cursor: pointer; transition: all 0.3s ease; }
.wpv-back-btn:hover { background-color: var(--burgundy); color: var(--warm-white); border-color: var(--burgundy); }
.wpv-container { max-width: 800px; margin: 0 auto; padding: 4rem 20px 8rem 20px; display: flex; justify-content: center; }
.wpv-content { text-align: center; position: relative; width: 100%; }
.wpv-number { font-family: 'Cormorant Garamond', serif; font-size: 8rem; font-weight: 300; color: rgba(92, 26, 26, 0.05); line-height: 1; display: block; margin-bottom: -2rem; }

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE COMPATTO UNIFICATO ── */
@media (max-width: 860px) {
  #chi-siamo, #contatti { grid-template-columns: 1fr !important; gap: 3rem; }
  .chi-img-wrap { display: none !important; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  footer { flex-direction: column !important; gap: 1.5rem; text-align: center; padding: 30px 20px !important; }
  .intro-container { flex-direction: column; gap: 2.5rem; }
  .intro-title-row { justify-content: center; }
  .intro-title-row .section-title { width: 100%; text-align: center; }
}
#chi-siamo .intro-text p {
    font-family: 'Raleway', sans-serif !important;
    font-style: normal !important;
}
#chi-siamo .intro-text p strong {
    font-weight: 600 !important;
    color: var(--burgundy) !important;
}
#chi-siamo .intro-img-wrap img { 
    max-width: 300px !important;
}
nav.scrolled {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--deep-wine) 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

nav.scrolled .nav-links a {
    color: var(--cream) !important;
}

nav.scrolled .nav-links a:hover {
    color: var(--gold-light) !important;
}
.contatti-info {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.contatti-info .section-title {
    margin-top: 0 !important; 
	line-height: 1.1 !important;
}

.contatti-info .gold-rule {
    margin-top: 1rem !important; 
	 margin-bottom: 1.8rem !important;
}
#wpv-wine-variety {
    font-family: 'Raleway', sans-serif !important;
    font-size: 0.62rem !important;
    letter-spacing: 0.28em !important;
    text-transform: uppercase !important;
    color: var(--gold) !important;
    font-weight: 500 !important;
    margin-top: 0.8rem !important;
    margin-bottom: 0 !important;
}
.wpv-container {
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 2rem 20px 6rem 20px !important;
}

.wpv-content-layout {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 5rem !important;
    width: 100% !important;
}

.wpv-image-side {
    flex: 1 !important;
    display: flex !important;
    justify-content: flex-end !important;
}

.wpv-image-side img {
    max-height: 480px !important;
    width: auto !important;
    display: block !important;
    object-fit: contain !important;
}

.wpv-text-side {
    flex: 1 !important;
    text-align: left !important;
}

.wpv-text-side .gold-rule {
    margin: 1.5rem 0 !important;
}

#wpv-wine-desc-list {
    list-style-type: disc !important;
    padding-left: 1.2rem !important;
    margin: 0 !important;
}

#wpv-wine-desc-list li {
    margin-bottom: 1.8rem !important;
    color: var(--burgundy) !important;
}

.char-title {
    font-family: 'Raleway', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--burgundy) !important;
    display: inline-block !important;
}

.char-gold-rule {
    width: 35px !important;
    height: 1px !important;
    background: var(--gold) !important;
    margin: 0.3rem 0 0.5rem 0 !important;
}

.char-value {
    font-family: 'Raleway', sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: var(--text-mid) !important;
    display: block !important;
    font-weight: 400 !important;
}
.wpv-content-layout {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 5rem !important;
    width: 100% !important;
}

.wpv-image-side {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 65px !important;
}

.wpv-image-side img {
    max-height: 620px !important;
    width: auto !important;
    display: block !important;
    object-fit: contain !important;
}