﻿
body { font-family: 'Montserrat', sans-serif; margin: 0; background: #FFF; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; margin-top: 20px !important; }




.main-header { padding:0; border-bottom: 2px solid #E22D2D;position : sticky; top: 0; background: white; z-index: 1000; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo img { margin-top: 5px; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.nav-links a { text-decoration: none; color: #333; margin: 0; font-weight: 500; font-size: 0.9rem; }
.nav-links a:hover { color: #ee0000; }

.contacts{
    background-color: #004c97; 
    color: white;        
    padding: 10px;   
    justify-content: center  ;
    text-align: center; 

    margin-top: 0%;
}

.cont {
    position: fixed;      
    top: 0;               
    left: 0;              
    width: 100%;          
    z-index: 1000;        
  
}



@media (max-width: 768px) {
    .header-flex { flex-direction: column; gap: 15px; }
    .nav-links { display: flex; flex-direction: column; gap: 15px; width: 100%; }
    .nav-links a { margin: 0; text-align: center; }
}

.hero-section { 
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('../assets/video/avis-schermata_1.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 90vh;
    height: auto;
    display: flex; 
    align-items: center;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 21 / 9;
    z-index: 0;
    filter: brightness(1);
}
.hero-section .container,
.hero-section .hero-grid,
.hero-section .hero-text {
    position: relative;
    z-index: 1;
}
.hero-text { color: white; max-width: 100%; padding: clamp(1rem, 3vw, 2rem); }
.hero-text h1 { font-size: clamp(1.8rem, 6vw, 3rem); line-height: 1.2; margin-bottom: 20px; }
.cta-button { background: #E22D2D; color: white; padding: 15px 30px; border-radius: 30px; text-decoration: none; display: inline-block; font-weight: bold; }

@media (max-width: 768px) {
    .cta-button { padding: 10px px; font-size: 0.9rem; margin-bottom: 30px;}
}

@media (max-width: 768px) {
    .hero-section { min-height: clamp(16rem, 50vw, 28rem); }
    .hero-video { display: none; }
}

@media (max-width: 480px) {
    .hero-text { padding: clamp(0.8rem, 3vw, 1.5rem); }
}

/* Pulsante laterale: Servizio Civile (apre avis/servizio-civile.html) */
.cinquex-mille-side-btn {
    position: fixed;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    z-index: 2000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 18px;
    background: linear-gradient(to bottom, #e2001a 0%, #b80014 100%);
    color: #fff;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    border: 3px solid rgba(255,255,255,0.85);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.servizio-civile-side-btn:hover {
    transform: translateY(-50%) scale(1.05);
    filter: brightness(1.05);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.servizio-civile-side-btn:active {
    transform: translateY(-50%) scale(0.98);
}

@media (max-width: 768px) {
    .servizio-civile-side-btn {
        right: 10px;
        padding: 12px 12px;
        border-radius: 12px;
        font-size: 0.9rem;
    }
}


.section-title { font-size: 1.2rem; color: #666; border-bottom: 1px solid #E0E0E0; padding-bottom: 10px; margin: 40px 0 20px; }

.cta-button:hover {box-shadow:0 0 10px #e3001b;}

.avis-banner-motivazionale {

    background: linear-gradient(135deg, #e3001b 0%, #004c97 100%);
    padding: 60px 20px;
    text-align: center;
   
}

.avis-testo-motivazionale {
    color: #ffffff;
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    font-weight: 700;
    margin: 0 auto;
    max-width: 900px;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); 
}


@media (max-width: 768px) {
    .avis-banner-motivazionale {
        padding: 40px 20px;
    }
    .avis-testo-motivazionale {
        font-size: 1.6rem;
    }
}


.avis-immagini-quadrate {
    display: flex;
    gap: 20px; 
    flex-wrap: wrap;
    justify-content: center !important;
    align-items: center;

}



.due-colonne {
  display: flex;
  gap: 20px; 
  flex-wrap: wrap; 
  justify-content: center;
  width: 100%;
  align-items: stretch;
}

.avis-right-column {
    width: min(100%, 1800px);
    flex: 1 1 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .due-colonne {
        flex-direction: column;
    }
}



.colonna {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.colonna-img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: contain;
}

.due-colonne img {
    width: 100%;
    height: auto;      
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .due-colonne {
        margin-left: 0;
        padding: 0 15px;
    }
    .colonna {
        flex: 100%;
        margin-bottom: 20px;
    }
    .colonna-img {
        max-width: 300px;
        margin: 0 auto;
    }
    .due-colonne img {
        max-width: 100%;
        height: auto;
        display: block;
        
    }
} 



.avis-section {
    width: 70%;
    margin: 0 auto 20px auto; 
    
}



.avis-stat-card {
    flex: 1;
    min-width: 130px;
    text-align: center;
}


.avis-stat-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    background-color: #f0f0f0; 
}

.avis-counter-wrapper {
    font-size: 2.5rem; 
    font-weight: 800;
    color: #0070c0; 
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.avis-suffix-percent::after {
    content: "%"; 
    font-size: 2.5rem;
}

.avis-description {
    font-size: 0.8rem; 
    font-weight: 600;
    color: #0070c0;
    text-transform: uppercase;
    line-height: 1.3;
    margin: 0;
}

@media (max-width: 900px) {
    .avis-right-column {
        flex: 100%; 
    }
    .avis-stats-grid {
        flex-direction: column; 
        align-items: center;
    }
    .avis-stat-card {
        max-width: 250px;
        margin-bottom: 20px;
    }
}

.avis-stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.blood-meteo {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 30px 15px;
    background: white;
}

.meteo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;

  
}

.meteo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 3px solid;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    font-weight: bold;
    font-size: 0.8rem;
}

.meteo-item small {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.status-ok { border-color: #4CAF50; color: #4CAF50; }
.status-warning { border-color: #FFC107; color: #FFC107; }
.status-critical { border-color: #F44336; color: #F44336; }

@media screen and (max-width: 768px) {
    .meteo-grid {
        gap: 15px;
    }
    .meteo-item {
        width: 85px;
        height: 85px;
        font-size: 1rem;
    }
    .meteo-item small {
        font-size: 0.6rem;
    }
}









@media (max-width: 768px) {
    .steps-container { grid-template-columns: 1fr; }
    .step-card { padding: 30px; }
}


.main-footer { background: #931F1F; color: white; padding: 50px 20px; margin-top: 50px; width: 100% !important ; margin-left: 0%; }
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 0.5fr; gap: 40px; align-items: flex-start; max-width: 1200px; margin: 0 auto; }
.map-placeholder { background: #fff; border-radius: 8px; overflow: hidden; }
.footer-info { color: white; }
.footer-info h4 { margin: 0 0 15px 0; font-size: 1.2rem; }
.footer-info p { margin: 8px 0; font-size: 0.95rem; line-height: 1.6; }
.footer-info a { color: white; text-decoration: underline; }
.footer-info a:hover { opacity: 0.8; }
.footer-social { display: flex; gap: 20px; align-items: center; font-size: 2rem; }
.footer-social a { color: white; text-decoration: none; transition: transform 0.3s ease; }
.footer-social a:hover { transform: scale(1.2); }

@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; gap: 30px; align-items: center; text-align: center; }
    .footer-social { justify-content: center; }
}

.info-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-top: 30px; width: 100%; }
.news-side, .insta-side { min-width: 0; }

@media (max-width: 1100px) {
    .info-grid { grid-template-columns: 1fr; }
}
.blog-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.blog-img { background: #ddd; height: 150px; border-radius: 5px; }
.insta-grid { display: grid; gap: 15px; }
.news-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    padding: 18px;
}
.news-thumb {
    width: 110px;
    min-width: 110px;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.news-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-body h3 {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 10px;
}
.news-body h3 .news-link {
    color: #2c3e50;
    text-decoration: none;
}
.news-body h3 .news-link:hover {
    text-decoration: underline;
}
.news-body time {
    color: #8a8a8a;
    font-size: 0.85rem;
}

.hero {
    margin-top: 40px;
    padding: 100px 0 80px;
    background: linear-gradient(180deg, rgba(227,6,19,0.95) 0%, rgba(0,76,151,0.95) 100%);
    color: white;
}

.hero-content {
    max-width: 720px;
    padding-top: 40px;
}

.hero-tag {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0 60px;
        margin-top: 20px;
    }
}

