/* =========================================================
   IMPORTAZIONE FONT UNIFORMATO (Montserrat)
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* =========================================================
   VARIABILI E COLORI PRINCIPALI
========================================================= */
:root {
    --blu-main: #0B2545;       
    --oro-main: #D4AF37;       
    --oro-hover: #F1C40F;      
    --sfondo-bianco: #FFFFFF;  
    --testo-nero: #000000;     
    --testo-bianco: #FFFFFF;   
    --testo-corpo: #333333;    
}

/* =========================================================
   RESET E IMPOSTAZIONI GLOBALI
========================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--sfondo-bianco); 
    color: var(--testo-corpo);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth; 
}

/* =========================================================
   HEADER A DOPPIA BARRA
========================================================= */
.header-doppio {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Ombra header aumentata */
    display: flex;
    flex-direction: column;
}

.top-bar-blu {
    background-color: var(--blu-main);
    color: var(--testo-bianco);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 15px; 
}

.brand-area { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 30px; width: auto; }
.brand-name { font-size: 1.1rem; font-weight: 600; color: var(--testo-bianco); letter-spacing: 0.2px; text-transform: none; }
.testo-oro { color: var(--oro-main); font-weight: 700; }

.btn-contattaci-header {
    background-color: var(--oro-main);
    color: var(--testo-nero); 
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.bottom-bar-gialla {
    background-color: var(--oro-main);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1px 5px; 
    overflow-x: auto; 
    white-space: nowrap;
}

.bottom-bar-gialla a {
    color: var(--testo-nero); 
    text-decoration: none;
    font-weight: 600;
    font-size: 0.7rem; 
    padding: 2px 8px;
    letter-spacing: 0.5px;
    position: relative;
    text-transform: uppercase; 
}

.bottom-bar-gialla a::after {
    content: ''; position: absolute; width: 0; height: 1px; bottom: 1px; left: 50%;
    background-color: var(--testo-nero); transition: all 0.3s ease; transform: translateX(-50%);
}
.bottom-bar-gialla a:hover::after { width: 60%; }

/* =========================================================
   CAROSELLO HERO
========================================================= */
.hero-carousel { position: relative; width: 100%; height: 60vh; min-height: 400px; background-color: var(--blu-main); overflow: hidden; }
.carousel-container { position: relative; width: 100%; height: 100%; }
.carousel-slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease; display: flex; align-items: center; justify-content: center; }
.carousel-slide.active { opacity: 1; z-index: 1; }
.carousel-image { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.carousel-overlay { position: absolute; width: 100%; height: 100%; background: rgba(11, 37, 69, 0.5); }
.carousel-content { position: relative; z-index: 2; text-align: center; color: white; padding: 20px; max-width: 800px; }
.carousel-content h2 { color: var(--oro-main); font-size: 2.2rem; font-weight: 700; margin-bottom: 10px; } 
.cta-button-oro { display: inline-block; background: var(--oro-main); color: black; padding: 12px 24px; text-decoration: none; font-weight: 700; border-radius: 6px; text-transform: uppercase; border: none; cursor: pointer; margin-top: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.3);} /* Ombra bottone oro */

.carousel-prev, .carousel-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(0,0,0,0.2); color: white; border: none; padding: 15px; cursor: pointer; border-radius: 5px; }
.carousel-prev { left: 10px; } .carousel-next { right: 10px; }
.carousel-dots { position: absolute; bottom: 15px; width: 100%; text-align: center; z-index: 10; } 
.dot { cursor: pointer; height: 10px; width: 10px; margin: 0 5px; background: rgba(255,255,255,0.5); border-radius: 50%; display: inline-block; }
.dot.active { background: var(--oro-main); box-shadow: 0 0 5px rgba(0,0,0,0.5); }

/* =========================================================
   SEZIONI CONTENUTO GENERALI
========================================================= */
.sezione-titolo { 
    text-align: center; 
    color: var(--blu-main); 
    margin-bottom: 20px; 
    font-size: 1.8rem; 
    font-weight: 700; 
    padding-top: 30px; 
}

/* La righina gialla divisoria */
.sezione-titolo::before {
    content: '';
    display: block;
    width: 60px; 
    height: 3px; 
    background-color: var(--oro-main); 
    margin: 0 auto 10px auto; 
    border-radius: 2px; 
}

/* SPAZIO GENERALE DELLE SEZIONI */
.servizi-numismatica-faenza, .aste-online-monete, .prodotti-fisso, .sezione-contatti { 
    padding: 25px 15px; 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* CARDS SERVIZI */
.griglia-servizi { display: flex; flex-direction: column; gap: 15px; } 
.card-servizio-moneta { 
    background: white; border-left: 4px solid var(--oro-main); border-radius: 6px; padding: 20px; 
    box-shadow: 0 6px 20px rgba(0,0,0,0.12); /* Ombra aumentata */
}

p[style*="text-align: center"] {
    margin-bottom: 20px !important; 
}

/* PRODOTTI A PREZZO FISSO */
.prodotti-fisso { max-width: 1000px; }
.prodotti-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.prodotto-card-piccola {
    background: white; text-decoration: none; border-radius: 6px; overflow: hidden; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.12); /* Ombra base aumentata */
    border: 2px solid transparent; transition: all 0.3s ease; display: flex; flex-direction: column;
}
.prodotto-card-piccola:hover { 
    transform: translateY(-3px); border-color: var(--oro-main); 
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35); /* Ombra dorata hover più forte */
}
.prodotto-img-box { width: 100%; aspect-ratio: 1 / 1; background: transparent; padding: 0; }
.prodotto-img-box img { width: 100%; height: 100%; object-fit: contain; transition: 0.3s; }
.prodotto-testo-box { padding: 12px 10px; text-align: center; } 
.prodotto-testo-box h3 { color: var(--blu-main); font-size: 0.85rem; line-height: 1.3; margin-bottom: 5px; height: 2.2rem; overflow: hidden; }
.prodotto-testo-box span { color: var(--oro-main); font-weight: 700; text-transform: uppercase; font-size: 0.7rem; }

/* TAB ASTE GRAFICHE */
.aste-tabs-container { display: flex; flex-direction: column; gap: 20px; align-items: center; } 
.aste-tab-card {
    background: white; text-decoration: none; width: 100%; max-width: 400px; padding: 20px; border-radius: 12px; 
    border: 2px solid transparent; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); /* Ombra base aumentata */
    display: flex; flex-direction: column; align-items: center; transition: all 0.3s ease;
}
.aste-tab-card:hover { 
    border-color: var(--oro-main); transform: translateY(-5px); 
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.35); /* Ombra dorata hover più forte */
}
.aste-logo-wrapper { height: 50px; margin-bottom: 15px; display: flex; align-items: center; } 
.aste-platform-logo { max-height: 100%; max-width: 180px; object-fit: contain; }
.aste-tab-text h3 { color: var(--blu-main); font-size: 1.2rem; margin-bottom: 5px; }
.aste-tab-text span { color: var(--oro-main); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; }

/* CONTATTI E TAB BIANCHE IN RILIEVO */
.contatti-container { display: grid; grid-template-columns: 1fr; gap: 25px; } 
.form-contatti { 
    background: white; padding: 25px; border-radius: 8px; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.12); /* Ombra form aumentata */
    border: 1px solid #EAEAEA; 
} 
.form-group { margin-bottom: 15px; } 
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: var(--blu-main); font-size: 0.9rem;}
.form-group input, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; font-family: inherit; }
.form-submit { width: 100%; }

.contatti-info-wrapper { display: flex; flex-direction: column; gap: 15px; } 

.info-card-white {
    display: flex; align-items: center; padding: 15px; background: white; border: 2px solid transparent; 
    border-radius: 8px; text-decoration: none; 
    box-shadow: 0 6px 20px rgba(0,0,0,0.12); /* Ombra base contatti aumentata */
    transition: all 0.3s ease;
}

.info-card-white.no-click { cursor: default; }
.info-card-white:hover { 
    border-color: var(--oro-main); transform: translateY(-4px); 
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35); /* Ombra dorata hover più forte */
}
.info-icon-minimal { font-size: 1.6rem; margin-right: 15px; color: var(--blu-main); }
.info-testo-minimal h3 { color: var(--blu-main); font-size: 1rem; margin-bottom: 2px; font-weight: 700; }
.info-testo-minimal p { font-size: 0.9rem; color: var(--testo-corpo); margin: 0; }

/* =========================================================
   FOOTER (Blu scuro con righina oro)
========================================================= */
.footer-smile-numismatica {
    background-color: #051525;
    color: var(--testo-bianco);
    padding: 40px 20px 20px; 
    border-top: 3px solid var(--oro-main);
    margin-top: 20px; 
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 25px; max-width: 1200px; margin: 0 auto; }
.footer-title { color: var(--oro-main); font-size: 1.1rem; margin-bottom: 15px; text-transform: uppercase; font-weight: 700; }
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 8px; font-size: 0.9rem; color: #ddd; }
.footer-list a { color: var(--testo-bianco); text-decoration: none; transition: color 0.3s; }
.footer-list a:hover { color: var(--oro-main); }
.footer-bottom { text-align: center; padding-top: 20px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; color: #888; } 

/* =========================================================
   TENDINA MOBILE E GRIGLIA CONTATTI 2x2
========================================================= */
.mobile-form-toggle {
    display: none; 
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
}

@media (max-width: 767px) {
    
    /* Riduce l'altezza del carosello su smartphone */
    .hero-carousel {
        height: 45vh;
        min-height: 250px;
    }
    
    .mobile-form-toggle {
        display: block; 
    }
    
    .contatti-form-wrapper {
        display: none; 
    }
    
    .contatti-form-wrapper.aperto {
        display: block; 
        animation: fadeInDown 0.3s ease-out;
    }

    @keyframes fadeInDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Griglia 2x2 per le tab su mobile */
    .contatti-info-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px; 
    }

    /* Tab compattate per schermi piccoli */
    .info-card-white {
        flex-direction: column;
        text-align: center;
        padding: 12px 8px; 
        border-color: var(--oro-main); /* Contorno giallo visibile da telefono */
    }

    .info-icon-minimal {
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 1.4rem;
    }
    
    .info-testo-minimal h3 {
        font-size: 0.85rem;
    }
    
    .info-testo-minimal p {
        font-size: 0.7rem;
        line-height: 1.2; 
    }
}

/* =========================================================
   RESPONSIVE (PC)
========================================================= */
@media (min-width: 768px) {
    .top-bar-blu { padding: 8px 40px; }
    .bottom-bar-gialla { justify-content: center; gap: 50px; padding: 4px 0; }
    .hero-carousel { height: 75vh; }
    .carousel-content h2 { font-size: 3rem; }
    
    .griglia-servizi { flex-direction: row; }
    .card-servizio-moneta { flex: 1; }

    .prodotti-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .aste-tabs-container { flex-direction: row; justify-content: center; }
    .aste-tab-card { flex: 1; }
    
    .contatti-container { grid-template-columns: 1fr 1fr; align-items: start; }
    .form-submit { width: auto; }
    
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}