/* VARIABILI GLOBALI e STILI DI BASE */
:root {
    --primary-blue: #111827;     
    --secondary-gold: #cea154;   
    --bg-light: #f9fafb;         
    --white: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --font-heading: 'Georgia', 'Times New Roman', serif; 
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif; 
}
/* ANIMAZIONI */

@keyframes fadeInSlide {
    0% { 
        opacity: 0; 
        transform: translateY(15px);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    animation: fadeInSlide 0.5s ease-out forwards;
}

body.page-exit {
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* COMPONENTI GLOBALI (BOTTONI, ...) */

/* BOTTONE GOLD "Contattaci" */
.btn-gold {
    background-color: var(--secondary-gold);
    color: var(--white);
    border: 2px solid var(--secondary-gold);
    border-radius: 4px;
    padding: 6px 15px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

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

/* HEADER e NAVBAR */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    padding: 15px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* --- brand e logo --- */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon img {
    height: 45px;
    width: auto;
}

.brand-text .titolo {
        font-family: 'Playfair Display', 'Georgia', serif; /* Font elegante */
        font-size: 1.4rem;
        color: var(--primary-blue);
        letter-spacing: 1px;
        margin-bottom: 2px;
    }

.brand-text .subtitle {
	font-family: 'Inter', sans-serif;
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 3px; /* Molto spaziato fa subito "lusso" */
	color: var(--secondary-gold); /* Usiamo il tuo oro! */
	font-weight: 600;
}

/* --- azioni header --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- hamburger (mobile) --- */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1010;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 3px;
    transition: all 0.3s ease-in-out; 
    transform-origin: left center;
}

/* --- animazione in X quando si clicca --- */

.hamburger.attivo .bar:nth-child(1) {
    transform: rotate(45deg);
}
.hamburger.attivo .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.attivo .bar:nth-child(3) {
    transform: rotate(-45deg);
}

/* --- menù su mobile --- */
.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 3;
    text-align: center;
    gap: 15px;
    
    /* slide down */
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    overflow: hidden;
    
    /* transizione */
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, padding-top 0.4s ease-in-out;
}

.nav-links.aperto {
    max-height: 350px;
    opacity: 1; 
    padding-top: 15px; 
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    padding: 5px;
    display: block;
}

.nav-links a.active, 
.nav-links a:hover {
    color: var(--secondary-gold);
}

/* bottone dentro al menù */

.nav-links a.btn-gold {
    background-color: var(--secondary-gold);
    color: var(--white); 
    border: 2px solid var(--secondary-gold); 
    border-radius: 4px; 
    padding: 8px 8px; 
    display: inline-block; 
    margin-top: 15px;
    font-weight: 600;
}

.nav-links a.btn-gold:hover {
    background-color: var(--white); 
    color: var(--secondary-gold); 
}

/* MAIN */
main {
    min-height: 60vh; 
    padding: 40px 20px;
}

main h1 {
    font-family: var(--font-heading);
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

/* FOOTER */
.site-footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding-top: 30px;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    padding-bottom: 30px;
}

.contatti-col {
    width: 100%;
}

.contact-list-horizontal {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.contact-list-horizontal li {
    display: flex;
    align-items: center;
    color: #cbd5e1;
    text-align: center;
}

.contact-list-horizontal a:hover {
    color: var(--secondary-gold);
}

.icona-footer {
    height: 16px;
    width: auto;
    margin-right: 10px;
}

.footer-bottom {
    background-color: #0b111c; 
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #1f2937;
}

.bottom-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #9ca3af;
    font-size: 0.8rem;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

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

/* ==========================================================================
   							CAROSELLO HOMEPAGE
   ========================================================================== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 60vh; 
    min-height: 400px; 
    overflow: hidden;
    background-color: var(--primary-blue);
    margin-top: -40px;
    margin-left: -20px; 
    margin-right: -20px;
    width: calc(100% + 40px); 
}


.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

/* La slide attiva diventa visibile */
.carousel-slide.attivo {
    opacity: 1;
    z-index: 2;
}

/* Stile dell'immagine */
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Testo sopra l'immagine */
.carousel-caption {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(17, 24, 39, 0.8);
    color: var(--white);
    padding: 20px 40px;
    text-align: center;
    border-left: 4px solid var(--secondary-gold);
    width: 80%;
    max-width: 600px;
}

.carousel-caption h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--secondary-gold);
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 1.1rem;
}

/* Frecce di navigazione */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(17, 24, 39, 0.5);
    color: var(--white);
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

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

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* Pallini in basso */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.attivo, .dot:hover {
    background-color: var(--secondary-gold);
}

/* Media Query per Mobile */
@media (max-width: 768px) {
    .carousel-caption {
        width: 90%;
        padding: 15px 20px;
        bottom: 10%;
    }
    .carousel-caption h2 { font-size: 1.5rem; }
    .carousel-caption p { font-size: 0.9rem; }
    .carousel-btn { font-size: 1.5rem; padding: 8px 12px; }
}

/* MEDIA QUERIES (DESKTOP) */
@media (min-width: 992px) {
    .hamburger {
        display: none; 
    }

    .nav-content {
        flex-wrap: nowrap;
    }

    .nav-links {
        display: flex; 
        flex-direction: row;
        width: auto;
        gap: 25px;
        
        max-height: none; 
        opacity: 1;
        overflow: visible;
        padding-top: 0;
        
        /* allineamento su PC */
        order: 0; 
        margin-left: auto; 
        margin-right: 30px;
    }

    .btn-gold {
        padding: 8px 20px;
        font-size: 1rem;
    }
}