/* Variabili di colore globali */
:root {
    --wine-red: #5c1a1b;
    --cream: #f6f1eb;
    --dark-forest: #472b04;
    --accent-gold: #d48837;
    --accent-orange: #c28124;
    --vinegreen: rgba(152, 186, 72, 0.79);
}

/* Impostazioni generali del corpo */
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--cream);
    color: var(--dark-forest);
}

.container {
    max-width: 1300px;
}

/* Navbar e brand */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    backdrop-filter: blur(10px);
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
    background-color: var(--dark-forest);
}

.nav-link {
    color: white !important;
    margin-left: 1rem;
    transition: all 0.3s ease-in-out;
}

.nav-link:hover {
    color: var(--accent-gold) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    text-shadow: #121212 2px 2px 4px;
}

/* Sezione Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5%;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.hero-home {
    background: linear-gradient(rgba(22, 44, 33, 0.638), rgba(222, 170, 72, 0.255)), url('img/terr6.webp') center/cover no-repeat;
    height: 100vh;
}

.hero-vino {
    background: linear-gradient(rgba(22, 44, 33, 0.638), rgba(222, 170, 72, 0.255)), url('img/terr4.webp') center/cover no-repeat;
    height: 40vh;
}

.hero-perlino {
    background: linear-gradient(rgba(22, 44, 33, 0.638), rgba(222, 170, 72, 0.255)), url('img/perlino-3.webp') center/cover no-repeat;
    height: 40vh;
}


.hero-about {
    background: linear-gradient(rgba(22, 44, 33, 0.638), rgba(222, 170, 72, 0.255)), url('img/torre-montecchio-2.webp') center/cover no-repeat;
    height: 40vh;
}

.hero-visite {
    background: linear-gradient(rgba(22, 44, 33, 0.638), rgba(222, 170, 72, 0.255)), url('img/tour.webp') center/cover no-repeat;
    height: 40vh;
}

.hero-eventi {
    background: linear-gradient(rgba(22, 44, 33, 0.638), rgba(222, 170, 72, 0.255)), url('img/terr3.webp') center/cover no-repeat;
    height: 40vh;
}

.hero-contact {
    background: linear-gradient(rgba(22, 44, 33, 0.638), rgba(222, 170, 72, 0.255)), url('img/terr2.webp') center/cover no-repeat;
    height: 40vh;
}

.hero-content {
    position: relative;
    max-width: 600px;
    z-index: 2;
}

.hero h1 {
    margin-top: 80px;
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.5rem;
    max-width: 600px;
}

/* Footer */
.footer {
    background: #181b18;
    padding: 20px;
    text-align: center;
}

/* Bottoni */
.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

.btn-tenuta-outline,
.btn-tenuta {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.65rem 1.5rem;
    border-radius: 2rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    border: 2px solid var(--accent-gold);
}

.btn-tenuta-outline {
    background-color: transparent;
    color: var(--dark-forest);
}

.btn-tenuta-outline:hover {
    background-color: var(--wine-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-tenuta {
    background-color: white;
    color: var(--dark-forest);
}

.btn-tenuta:hover {
    background-color: var(--wine-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Carte Vini e Immagini */
.wine-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.wine-image-container img.card-img-top {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

.igt-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.wine-image-container:hover .igt-badge {
    opacity: 1;
}

.equal-height .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.equal-height .card-img-top {
    max-height: 400px;
    object-fit: cover;
}

.equal-height .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Sezione Instagram */
#instagram-feed {
    background-color: #dad2b2;
    color: #f8f9fa;
}

#instagram-feed h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

#instagram-feed p {
    font-size: 1.3rem;
    color: #dcdcdc;
}

.instagram-post {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.instagram-post img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    transition: transform 0.3s ease;
}

.instagram-post:hover img {
    transform: scale(1.05);
}

.instagram-btn {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 20px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    border: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Media Query (Mobile) */
@media (max-width: 576px) {
    .card-title {
        font-size: 1.25rem;
    }
    .card-body {
        font-size: 0.95rem;
    }
}

/* Animazioni e Transizioni */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.tenuta-gradient {
    background: linear-gradient(to right, var(--dark-forest), var(--wine-red));
}


/* Dark Mode */

@media (prefers-color-scheme: dark) {
    :root {
      --wine-red: #e0a6a6;
      --cream: #1a1a1a;
      --dark-forest: #e8e8e8;
      --accent-gold: #f5c973;
      --accent-orange: #f3a83a;
      --vinegreen: rgba(210, 240, 160, 0.8);
    }
  
    body {
      background-color: var(--cream);
      color: var(--dark-forest);
    }

    .text-black {
      color: var(--dark-forest) !important;
    }

    .dropdown-menu {
      background-color: #121212;
    }

    .dropdown-item {
      color: var(--accent-gold) !important;
    }
  
    .navbar {
      background-color: #121212;
    }
  
    .nav-link {
      color: var(--accent-gold) !important;
    }
  
    .nav-link:hover {
      color: white !important;
    }
  
    .hero-content,
    .hero h1,
    .hero p {
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }
  
    .footer {
      background-color: #000;
      color: var(--dark-forest);
    }
  
    .card {
      background-color: #202020;
      color: var(--dark-forest);
    }

    .bg-dark {
      background: linear-gradient(to right, rgba(9, 9, 9, 0.8), rgba(68, 14, 15, 0.8)) !important;
    }
  
    .card-title {
      text-shadow: none;
    }
  
    .btn-tenuta {
      background-color: var(--accent-gold);
      color: #000;
    }
  
    .btn-tenuta:hover {
      background-color: var(--wine-red);
      color: white;
    }
  
    .btn-tenuta-outline {
      background-color: transparent;
      color: var(--accent-gold);
      border-color: var(--accent-gold);
    }
  
    .btn-tenuta-outline:hover {
      background-color: var(--wine-red);
      color: white;
    }
  
    #instagram-feed {
      background-color: #292929;
      color: var(--dark-forest);
    }
  
    #instagram-feed p {
      color: #ccc;
    }
  
    .instagram-btn {
      background: linear-gradient(45deg, #e6683c, #dc2743, #cc2366);
      color: white;
    }
    .tenuta-gradient {
        background: linear-gradient(to right, #472b04, #5c1a1b);
    }
    .bg-light {
        background-color: #121212 !important;
    }
  }
  

  .wine-header {
    background-color: #f6f1eb;
    padding: 4rem 0;
    text-align: center;
  }
  .wine-header h1 {
    font-size: 3rem;
    color: #5c1a1b;
  }
  .wine-images img {
    max-width: 100%;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .spec-table td {
    padding: 0.5rem 1rem;
  }

  h1, h2, h3 {
    font-family: 'Playfair Display', serif;
  }