/* =========================================
   CONFIGURAZIONE GENERALE E COLORI
   ========================================= */
:root { 
    --brand-fdm: #FF4500;    
    --brand-riva: #7000ff;   
    --riva-gold: #d8ba78;    
    --white: #ffffff;
    --text-dark: #2d3436;
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--white);
    margin: 0;
    color: var(--text-dark);
}

/* --- NAVIGAZIONE TAB --- */
.nav-app {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

.nav-btn {
    padding: 8px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.3s;
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    text-transform: uppercase;
}

.nav-btn.active {
    background-color: var(--white);
    color: var(--text-dark);
    border-color: var(--white);
}

/* --- HEADERS --- */
.header-mugello { background-color: var(--brand-fdm); padding: 20px 0 80px 0; border-radius: 0 0 50px 50px; position: relative; }
.header-riva { background-color: var(--brand-riva); padding: 20px 0 80px 0; border-radius: 0 0 50px 50px; position: relative; }

.logo-main { max-width: 280px; height: auto; margin-bottom: 15px; }

.slogan-fdm { font-family: 'Dancing Script', cursive; color: var(--white); font-size: 2.2rem; margin: 0; }
.slogan-riva { font-family: 'Dancing Script', cursive; color: var(--riva-gold); font-size: 2.2rem; margin: 0; }

.social-top {
    position: absolute;
    top: 30px;
    right: 40px;
    display: flex;
    gap: 25px; 
}

.social-top a { font-size: 1.6rem; text-decoration: none; transition: 0.3s; }
.social-fdm a { color: var(--white); } 
.social-riva a { color: var(--riva-gold); } 

/* --- CORPO PAGINA --- */
.main-body { margin-top: -40px; padding-bottom: 60px; }
.section-card { background: var(--white); border-radius: 30px; padding: 45px; box-shadow: 0 15px 40px rgba(0,0,0,0.05); }

h1.main-title { font-weight: 800; font-size: 2.8rem; text-transform: uppercase; text-align: center; margin-bottom: 10px; }
.color-fdm { color: var(--brand-fdm); }
.color-riva { color: var(--riva-gold); }

.intro-text { font-size: 1.1rem; line-height: 1.8; color: #444; text-align: justify; margin-bottom: 30px; }

/* --- CAROSELLO --- */
.carousel { margin: 30px 0; border-radius: 25px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.carousel-item img { height: 480px; object-fit: cover; }

/* --- CONTATTI --- */
.contact-icon-box { display: flex; justify-content: center; gap: 25px; margin-top: 40px; flex-wrap: wrap; }
.contact-link { text-decoration: none; color: #636e72; display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 600; }
.icon-circle { width: 60px; height: 60px; background: #f8f9fa; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.icon-fdm { color: var(--brand-fdm); }
.icon-riva-bot { color: var(--brand-riva); }

@media (max-width: 992px) {
    .social-top { position: static; justify-content: center; margin-bottom: 20px; }
    h1.main-title { font-size: 2.2rem; }
    .carousel-item img { height: 300px; }
}