/* ------------------------    BASE & TYPO    ------------------------ */
body, h1, h2, h3, h4, h5, h6 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #f5f5f5;
    font-weight: 400;
    background-color: #050509;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.text-gold {
    color: #e0b15c !important;
}

.text-secondary {
    color: #cfcfcf !important;
}

/* Gestione pulita dei link globali (esclude esplicitamente Header, Menu e Footer) */
a:not(.nav-link):not(.dropdown-item):not(.cta-btn):not(.info-card):not(footer a) {
    color: #e0b15c;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:not(.nav-link):not(.dropdown-item):not(.cta-btn):not(.info-card):not(footer a):hover {
    color: #f3c66e;
}

/* ------------------------    NAVBAR    ------------------------ */
.custom-nav {
    background: rgba(5, 5, 9, 0.95);
    backdrop-filter: blur(6px);
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-small {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.75rem 1rem !important;
    color: #dcdcdc !important;
}

.nav-small:hover {
    color: #e0b15c !important;
}

.highlight-link {
    color: #e0b15c !important;
    font-weight: 600;
}

.dropdown-menu-dark {
    background: #0b0b10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.5rem 0;
}

.dropdown-item {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.55rem 1.2rem;
    color: #dcdcdc;
}

.dropdown-item:hover {
    background: rgba(224, 177, 92, 0.12);
    color: #e0b15c;
}

/* ------------------------    HERO & HEADERS    ------------------------ */
#heroSlider,
#heroSlider .carousel-item {
    position: relative;
    min-height: 100vh;
}

.hero-slide-img,
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-slide-img {
    filter: brightness(0.90);
}

.hero-video {
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.50) 55%, #050509 100%);
    z-index: 2;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 3;
}

/* Header per pagine interne (es. Produzione) */
.hero-vcenter {
    margin-top: 56px;
    position: relative;
    display: flex;
    align-items: center;
    height: 75vh;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-vcenter::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-vcenter-content {
    position: relative;
    z-index: 3;
    padding-left: 0.5rem;
}

.hero-vcenter h1,
.hero-vcenter p {
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

/* ------------------------    SEZIONI    ------------------------ */
.section-dark {
    padding: 4rem 0;
    background: #050509;
}

.section-alt {
    padding: 4rem 0;
    background: #1c1c1f;
}

.divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, #e0b15c, transparent);
    margin: 1.5rem 0 2rem;
}

/* ------------------------    CARD & BOXES    ------------------------ */
.card-dark,
.producer-card,
.top-producer-card,
.card-history,
.info-card {
    border-radius: 14px;
    background: #0b0b10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    
    /* FIX FLUIDITÀ: Ottimizziamo la transizione per evitare scatti con i fade-in */
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
    will-change: transform, box-shadow;
}

/* Effetto Hover unificato per tutte le card standard */
.card-dark:hover,
.producer-card:hover,
.card-history:hover,
.info-card:hover {
    transform: translateY(-5px) !important; /* Spinta fluida verso l'alto */
    border-color: rgba(224, 177, 92, 0.7) !important;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.6) !important;
}

/* Specifico per box informativi su sfondi antracite (.section-alt) */
.info-card, 
.card-history {
    background-color: #0b0b10 !important;
    display: block;
}

.border-gold {
    border: 1px solid rgba(224, 177, 92, 0.3) !important;
}

	
/* ------------------------    BANNER PRODUTTORI   ------------------------ */
	.card-historyBANNER {
        position: relative;
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(18px) saturate(180%);
        -webkit-backdrop-filter: blur(18px) saturate(180%);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        padding: 2rem;

        /* Ombra più leggera */
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);

        overflow: hidden;
        transition: transform .25s ease, box-shadow .25s ease;
		transition: 0.35s ease;
    }

    .card-historyBANNER:hover { 
        transform: translateY(-4px);

    }
	
    /* radial light in hover */
    .card-historyBANNER::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(
            circle at top right,
            rgba(224, 177, 92, 0.12),
            transparent 60%
        );
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
    }

    .card-historyBANNER:hover::before {
        opacity: 1;
    }

    /* Immagine pulita */
    .card-historyBANNER img {
        /* max-width: 180px; */
        border-radius: 0;
        box-shadow: none;
    }
	/* EFFETTO TESTO BIANCO AL MOUSE HOVER */
	.card-historyBANNER:hover h2,
	.card-historyBANNER:hover h3,
	.card-historyBANNER:hover p {
		color: #ffffff !important;
		transition: color 0.35s ease;
	}

/* ------------------------    PRODUTTORI    ------------------------ */
.producer-card {
    padding: 1.5rem;
}

.producer-logo {
    max-width: 120px;
    object-fit: contain;
    background-color: #111;
    padding: 8px;
    border-radius: 10px;
}

.corner-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    display: block;
}

.corner-icon-img {
    width: 32px;
    height: 32px;
    display: block;
    opacity: 0.7;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.producer-card:hover .corner-icon-img {
    transform: rotate(5deg);
    opacity: 1;
}

/* ------------------------    SCHEDA PRODUTTORE    ------------------------ */
.producer-page {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.producer-hero {
    display: flex;
    gap: 40px;
    width: 100%;
    align-items: flex-start;
}

.producer-gallery {
    width: 35%;
}

.producer-main-photo img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 25px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.producer-thumbs {
    display: flex;
    gap: 12px;
}

.producer-thumbs img {
    width: auto;
    height: 70px;
    object-fit: contain;
    border-radius: 4px;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.producer-thumbs img:hover {
    transform: scale(1.05);
    opacity: .9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.producer-info {
    width: 65%;
    padding-top: 20px;
}

.producer-title {
    margin: 0 0 20px;
    font-size: 34px;
    font-weight: 600;
}

.producer-description {
    margin-bottom: 40px;
    line-height: 1.6;
}

.producer-contacts {
    margin-bottom: 20px;
}

.producer-contacts p {
    margin: 0;
}

.producer-buttons a {
    margin: 0 5px;
}

@media (max-width: 768px) {
    .producer-hero {
        flex-direction: column;
        gap: 30px;
    }
    .producer-gallery {
        width: 100%;
    }
    .producer-main-photo img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    .producer-thumbs {
        justify-content: flex-start;
        gap: 10px;
        flex-wrap: wrap;
    }
    .producer-thumbs img {
        height: 70px;
        width: auto;
        object-fit: contain;
    }
    .producer-info {
        width: 100%;
        padding-top: 10px;
    }
}

/* ------------------------    TOP PRODUCERS PREMIUM    ------------------------ */
.top-producer-card {
    background: linear-gradient(135deg, #0b0b10, #050509);
    border: 1px solid rgba(224, 177, 92, 0.25);
    border-radius: 18px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.top-producer-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(224, 177, 92, 0.12), transparent 60%);
    opacity: 0;
    transition: 0.4s ease;
}

.top-producer-card:hover {
    transform: translateY(-6px);
    border-color: rgba(224, 177, 92, 0.55);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.75);
}

.top-producer-card:hover::before {
    opacity: 1;
}

.tpc-logo img {
    width: 250px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.35s ease;
}

.top-producer-card:hover .tpc-logo img {
    transform: scale(1.05);
}

.tpc-content {
    flex-grow: 1;
}

.tpc-title {
    font-size: 30px;
    margin-bottom: 12px;
    color: #e0b15c;
    letter-spacing: 0.5px;
}

.tpc-desc {
    margin-bottom: 18px;
    line-height: 1.65;
    color: #dcdcdc;
}

.tpc-info {
    margin-bottom: 22px;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.tpc-buttons a {
    margin-right: 12px;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ------------------------    CTA PRODUTTORI    ------------------------ */
.cta-producers {
    background: linear-gradient(135deg, #0b0b10, #050509);
    padding: 5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #e0b15c, #f3c66e);
    color: #1b1305 !important; /* Forza colore scuro leggibile su fondo oro */
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: 0.2s ease;
}

.cta-btn:hover {
    filter: brightness(1.05);
    color: #000000 !important;
}

/* ------------------------    ACCORDION DARK    ------------------------ */
.accordion-item {
    background-color: #0b0b10 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin-bottom: 0.6rem;
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button {
    background-color: #0b0b10 !important;
    color: #f5f5f5 !important;
    font-family: 'Poppins', sans-serif;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: #e0b15c !important;
    background-color: rgba(224, 177, 92, 0.05) !important;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-body {
    background-color: #050509;
    color: #dcdcdc;
}

.btn-outline-gold {
    color: #e0b15c !important;
    border: 1px solid #e0b15c !important;
    background-color: transparent !important;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn-outline-gold:hover {
    background-color: #e0b15c !important;
    color: #1b1305 !important;
    border-color: #e0b15c !important;
}

/* ------------------------    ANIMAZIONI    ------------------------ */
.fade-in,
.fade-in-slow {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-slow {
    transform: translateY(35px);
    transition-duration: 1.2s;
}

.fade-in.visible,
.fade-in-slow.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .fade-in-slow {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ------------------------    FOOTER    ------------------------ */
footer {
    padding: 2rem 0;
    background: #000;
    color: #777;
    font-size: 0.8rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer a {
    color: #777;
    margin: 0 0.75rem;
}

footer a:hover {
    color: #e0b15c;
}








