@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700;800&display=swap');

/* ===============================
   🎨 PALETTE E BASE
   =============================== */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: #f5f1eb; /* cream più elegante */
    color: #3b372f;
    font-family: "Poppins", sans-serif;
}

main {
    flex: 1;
}

/* ===============================
   🧭 NAVBAR ELEGANTE
   =============================== */
#navbar {
    transition: all 0.4s ease;
    background: linear-gradient(to bottom, #3b372f, #4a453b);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

#navbar.scrolled {
    background: linear-gradient(180deg, #bfb8a7 0%, #cdc6b6 100%);
    backdrop-filter: blur(14px);
}

.navbar-custom {
    background: linear-gradient(to bottom, #3b372f, #4a453b);
    border-bottom: 3px solid #d0ac76; /* opzionale per richiamo al footer */
}

#scrollTopBtn {
    bottom: 20px;  /* distanza dal fondo */
    left: 20px;    /* distanza dal bordo sinistro */
    z-index: 1200; /* sopra tutto */
}

.navbar-brand {
    color: white !important;
    font-weight: 700;
    font-size: 2.5rem !important;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 2px !important;
    line-height: 1;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: #d0ac76;
}

.nav-link {
    color: #3b372f;
    font-weight: 500;
    /* margin: 0 0.1rem; */
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #d0ac76;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover,
.nav-link:focus {
    color: #d0ac76;
    transform: translateY(-2px);
}

/* ===============================
   🛒 SIDEBAR CARRELLO
   =============================== */
#cartSidebar {
    background-color: #ded8ca;
    color: #3b372f;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    border-radius: 10px 0 0 10px;
}

#cartSidebar .offcanvas-header {
    background-color: #cdc6b6;
    color: #3b372f;
    font-weight: 600;
}

/* ===============================
   🔘 BOTTONI E INTERAZIONE
   =============================== */
.btn-primary {
    background-color: #d0ac76;
    border: none;
    color: #3b372f;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(208,172,118,0.25);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #c19b63;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(208,172,118,0.35);
}

.btn-outline-light {
    color: #3b372f;
    border-color: #3b372f;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: rgba(59,55,47,0.08);
    color: #3b372f;
    transform: translateY(-1px);
}

/* ===============================
   📦 CARD / IMMAGINI
   =============================== */
.card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.card-img-top {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* ===============================
   🎠 CAROUSEL
   =============================== */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    top: 50%;
    transform: translateY(-50%);
    color: #3b372f;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    color: #d0ac76;
    opacity: 1;
}

.carousel-indicators button {
    background-color: #d0ac76;
}

/* ===============================
   📱 RESPONSIVE
   =============================== */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }

    .card-img-top {
        max-height: 220px;
        object-fit: cover;
    }
}

/* ===============================
   🍪 COOKIE BANNER
   =============================== */
#cookie-banner {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.4s ease;
    background-color: rgba(191, 184, 167, 0.95);
    color: #3b372f;
    border-top: 3px solid #d0ac76;
    border-radius: 10px 10px 0 0;
    padding: 1rem 1.5rem;
}

#cookie-banner.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(120%);
}

/* ===============================
   ⚫ FOOTER ELEGANTE
   =============================== */
footer {
    background: linear-gradient(to bottom, #3b372f, #4a453b);
    color: white !important;
    padding: 3rem 0 2rem;
    border-top: 3px solid #d0ac76;
}

footer a {
    color: white !important;
    transition: color 0.3s ease, transform 0.3s ease;
}

footer a:hover {
    color: #d0ac76;
    transform: translateY(-2px);
}

footer .text-secondary {
    color: white !important;
    font-size: 0.9rem;
}

/* ===============================
   ⬆️ BACK TO TOP BUTTON
   =============================== */
a[href="#top"] {
    background-color: #d0ac76;
    color: #3b372f;
    border: none;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(208,172,118,0.4);
    transition: all 0.3s ease;
    border-radius: 50%;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
}

a[href="#top"]:hover {
    background-color: #c19b63;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(208,172,118,0.5);
}

/* Service Guarantees - icone */
.section-services .fa {
    color: #d0ac76;      /* oro elegante */
    transition: color 0.3s ease, transform 0.3s ease;
}

.section-services .fa:hover {
    color: #bfa46b;      /* oro più scuro al passaggio */
    transform: translateY(-2px);
}

/* ===============================
   🛠️ SERVIZI / ICONE
   =============================== */
.section-services {
    text-align: left; /* il testo resta a sinistra su desktop */
}

.section-services .row {
    justify-content: center; /* centra le colonne se vogliamo */
}

.section-services .col-12.col-md-4 {
    display: flex;
    align-items: center; /* verticalmente */
    gap: 1rem; /* spazio tra icona e testo */
}

.section-services .col-12.col-md-4 .rounded-circle {
    width: 50px;
    height: 50px;
    background-color: rgba(208,172,118,0.1); /* oro chiaro trasparente */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* evita che l’icona si riduca */
}

.section-services .col-12.col-md-4 i {
    color: #d0ac76; /* oro */
    font-size: 1.4rem;
}

.section-services h5 {
    margin-bottom: 0.25rem;
    color: #3b372f;
}

.section-services p {
    margin-bottom: 0;
    color: #3b372f;
}

/* Badge “Prova” elegante */
.try-badge {
  width: 36px;
  height: 36px;
  background-color: rgba(208, 172, 118, 0.1);
  color: #d0ac76;
  border: 1px solid #d0ac76;
  border-radius: 50%;
  font-size: 1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.try-badge:hover {
  background-color: #d0ac76;
  color: white;
  transform: scale(1.2);
}

.try-badge i {
  color: inherit; /* prende il colore dalla .try-badge */
}

.option-box {
  cursor: pointer;
  border: 2px solid #ddd;
  transition: all 0.2s ease;
}
.option-box:hover {
  border-color: #007bff;
  background: #f0f8ff;
}
input[type="radio"]:checked + span,
input[type="radio"]:checked + div {
  border-color: #007bff;
  background: #eaf3ff;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

