@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Great+Vibes&display=swap');

:root {
  --color-dark: #231f20;
  --color-brown: #6d2d13;
  --color-green: #1c3a24;
  --color-purple: #8852ad;
  --color-cream: #faf6f0;
  --color-warm-white: #fdfbf7;
  --color-gold: #c9a84c;
  --color-red: #8b2332;
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-script: 'Great Vibes', cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  color: var(--color-dark);
  background: var(--color-warm-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Watercolor texture overlay ─── */
.watercolor-edge {
  position: absolute;
  width: 100%;
  height: 80px;
  background: var(--color-warm-white);
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,40 Q50,10 100,35 T200,30 T300,45 T400,25 T500,40 T600,20 T700,38 T800,28 T900,42 T1000,22 T1100,35 T1200,30 L1200,80 L0,80 Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,40 Q50,10 100,35 T200,30 T300,45 T400,25 T500,40 T600,20 T700,38 T800,28 T900,42 T1000,22 T1100,35 T1200,30 L1200,80 L0,80 Z' fill='black'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  z-index: 2;
}

.watercolor-edge--top {
  top: -1px;
  transform: rotate(180deg);
}

.watercolor-edge--bottom {
  bottom: -1px;
}

/* ─── Navigation ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 40px;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(35, 31, 32, 0.92);
  backdrop-filter: blur(12px);
  padding: 12px 40px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
}

.navbar-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.navbar-links a:hover {
  color: var(--color-gold);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: all 0.3s;
}

/* ─── Hero Section ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #1a1618 url('../images/Arrivo a Casa Santanna al Crepuscolo.png') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(35,31,32,0.6) 0%,
    rgba(35,31,32,0.25) 40%,
    rgba(35,31,32,0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.hero-subtitle-top {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #fff;
  opacity: 0;
  animation: fadeUp 1s 0.6s forwards;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeUp 1s 0.9s forwards;
}

.hero-cta {
  display: inline-block;
  padding: 14px 40px;
  border: 1.5px solid rgba(255,255,255,0.7);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.4s;
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
}

.hero-cta:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero-scroll svg {
  width: 28px;
  height: 28px;
  stroke: rgba(255,255,255,0.6);
  stroke-width: 2;
  fill: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ─── Section Commons ─── */
section {
  position: relative;
}

.section-padding {
  padding: 100px 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.6;
}

.section-title {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 24px;
}

.section-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.85;
  max-width: 700px;
}

.section-text.centered {
  margin: 0 auto;
  text-align: center;
}

.section-divider {
  width: 60px;
  height: 1.5px;
  background: var(--color-gold);
  margin: 40px auto;
}

/* ─── Section Split (image + text side by side) ─── */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-split--reverse {
  direction: ltr;
}

.section-split--reverse .section-split-content {
  order: -1;
}

.section-split-img img {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.section-split-content .section-text {
  text-align: left;
}

@media (max-width: 768px) {
  .section-split {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .section-split--reverse .section-split-content {
    order: 0;
  }

  .section-split-img img {
    max-width: 300px;
  }

  .section-split-content .section-text {
    text-align: center;
    margin: 0 auto;
  }
}

/* ─── Story Section ─── */
.story {
  background: var(--color-cream);
}

.story-intro {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px;
}

.story-intro .section-title {
  color: var(--color-brown);
}

.story-quote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 300;
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
  color: var(--color-brown);
  position: relative;
  padding: 40px 0;
}

.story-quote::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 6rem;
  color: var(--color-gold);
  opacity: 0.3;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}

.story-chapters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.story-chapter {
  text-align: center;
  padding: 40px 24px;
  border-radius: 4px;
  transition: transform 0.3s;
}

.story-chapter:hover {
  transform: translateY(-4px);
}

.story-chapter-img {
  width: 100%;
  max-width: 280px;
  height: 380px;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  margin-bottom: 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.story-chapter-label {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.5;
}

.story-chapter-title {
  font-family: var(--font-script);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.story-chapter:nth-child(1) .story-chapter-title { color: var(--color-brown); }
.story-chapter:nth-child(2) .story-chapter-title { color: var(--color-green); }
.story-chapter:nth-child(3) .story-chapter-title { color: var(--color-purple); }
.story-chapter:nth-child(4) .story-chapter-title { color: var(--color-gold); }

.story-chapter-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: #555;
}

/* ─── Services Section ─── */
.services {
  background: var(--color-dark);
  color: #fff;
}

.services .section-label {
  color: var(--color-gold);
  opacity: 1;
}

.services .section-title {
  color: #fff;
}

.services .section-text {
  color: rgba(255,255,255,0.75);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.service-card {
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--color-gold);
  transition: height 0.4s;
}

.service-card:hover {
  border-color: rgba(201,168,76,0.3);
  background: rgba(255,255,255,0.03);
}

.service-card:hover::before {
  height: 100%;
}

.service-card-icon {
  font-size: 1.8rem;
  margin-bottom: 20px;
  display: block;
  width: 56px;
  height: 56px;
  line-height: 56px;
  text-align: center;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50%;
  color: var(--color-gold);
}

.service-card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.service-card-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}

.services-cta {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.services-cta p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}

.btn-gold {
  display: inline-block;
  padding: 14px 40px;
  background: transparent;
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.4s;
}

.btn-gold:hover {
  background: var(--color-gold);
  color: var(--color-dark);
}

/* ─── Wine Section ─── */
.wines {
  background: var(--color-cream);
}

.wines .section-title {
  color: var(--color-green);
}

.wines-intro {
  text-align: center;
  margin-bottom: 60px;
}

.wines-categories {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.wine-category {
  border-bottom: 1px solid rgba(28,58,36,0.1);
  padding-bottom: 40px;
}

.wine-category:last-child {
  border-bottom: none;
}

.wine-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.wine-category-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.wine-category-icon.bollicine { background: rgba(201,168,76,0.15); color: var(--color-gold); }
.wine-category-icon.bianchi { background: rgba(28,58,36,0.1); color: var(--color-green); }
.wine-category-icon.rossi { background: rgba(139,35,50,0.1); color: var(--color-red); }
.wine-category-icon.dolci { background: rgba(136,82,173,0.1); color: var(--color-purple); }

.wine-category-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-dark);
}

.wine-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.wine-item {
  padding: 16px 20px;
  background: rgba(255,255,255,0.7);
  border-radius: 4px;
  border-left: 3px solid transparent;
  transition: all 0.3s;
}

.wine-item:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.wine-category:nth-child(1) .wine-item:hover { border-left-color: var(--color-gold); }
.wine-category:nth-child(2) .wine-item:hover { border-left-color: var(--color-green); }
.wine-category:nth-child(3) .wine-item:hover { border-left-color: var(--color-red); }
.wine-category:nth-child(4) .wine-item:hover { border-left-color: var(--color-purple); }

.wine-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-dark);
}

.wine-producer {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 400;
  color: #888;
}

.wine-detail {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 2px;
}

/* ─── Spirits Section ─── */
.spirits {
  background: var(--color-dark);
  color: #fff;
}

.spirits .section-label {
  color: var(--color-gold);
  opacity: 1;
}

.spirits .section-title {
  color: #fff;
}

.spirits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.spirit-category {
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
}

.spirit-category-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.spirit-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.spirit-item:last-child {
  border-bottom: none;
}

.spirit-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
}

.spirit-detail {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ─── Flipbook Section ─── */
.flipbook-section {
  background: linear-gradient(135deg, #2a2226 0%, #1a1618 100%);
  padding: 80px 20px;
  overflow: hidden;
}

.flipbook-section .section-label {
  color: var(--color-gold);
  opacity: 1;
  text-align: center;
}

.flipbook-section .section-title {
  color: #fff;
  text-align: center;
}

.flipbook-section .section-text {
  color: rgba(255,255,255,0.6);
}

.flipbook-wrapper {
  max-width: 1000px;
  margin: 40px auto 0;
  position: relative;
}

.flipbook-container {
  display: flex;
  justify-content: center;
  perspective: 2000px;
}

.flipbook-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}

.flip-btn {
  background: none;
  border: 1.5px solid rgba(201,168,76,0.4);
  color: var(--color-gold);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  font-size: 1.2rem;
}

.flip-btn:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--color-gold);
}

.flip-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.flip-page-info {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
  min-width: 100px;
  text-align: center;
}

/* ─── Spotify Section ─── */
.spotify-section {
  background: var(--color-cream);
  text-align: center;
}

.spotify-section .section-title {
  color: var(--color-brown);
}

.spotify-embed {
  max-width: 600px;
  margin: 40px auto 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}

.spotify-embed iframe {
  display: block;
  width: 100%;
  border: none;
}

.spotify-placeholder {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 60px 30px;
  max-width: 600px;
  margin: 40px auto 0;
  color: #b3b3b3;
  font-family: var(--font-serif);
}

.spotify-placeholder-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  color: #1db954;
}

.spotify-placeholder p {
  font-size: 1rem;
}

/* ─── Contacts Section ─── */
.contacts {
  background: var(--color-dark);
  color: #fff;
  text-align: center;
}

.contacts .section-label {
  color: var(--color-gold);
  opacity: 1;
}

.contacts .section-title {
  color: #fff;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-item {
  text-align: center;
}

.contact-icon {
  font-size: 1.6rem;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.contact-label {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}

.contact-value {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

.contact-value a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-value a:hover {
  color: var(--color-gold);
}

/* ─── Footer ─── */
.footer {
  background: #151213;
  padding: 40px 20px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}

.footer-copy {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.2);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.footer-social a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--color-gold);
}

/* ─── Scroll Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .story-chapters {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding-bottom: 20px;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .story-chapters::-webkit-scrollbar {
    height: 4px;
  }

  .story-chapters::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 2px;
  }

  .story-chapters::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 2px;
  }

  .story-chapter {
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: center;
    padding: 24px 16px;
  }

  .story-chapter-img {
    max-width: 220px;
    height: 300px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .wine-list {
    grid-template-columns: 1fr;
  }

  .spirits-grid {
    grid-template-columns: 1fr;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .navbar-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(35,31,32,0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 99;
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-links a {
    font-size: 1.1rem;
  }

  .navbar-toggle {
    display: block;
    z-index: 101;
  }

  .navbar-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .navbar-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .navbar-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

@media (max-width: 600px) {
  .section-padding {
    padding: 70px 16px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .story-quote {
    font-size: 1.2rem;
    padding: 30px 0;
  }

  .service-card {
    padding: 28px;
  }

  .flipbook-controls {
    gap: 16px;
  }

  .section-divider {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
