/* ========================================= */
/* FILE: style.css - LAYOUT HOME PAGE        */
/* ========================================= */

/* NOTA: Le regole base (font, colori, recensioni) ora sono in global.css */

/* --- 1. HERO SECTION (La copertina) --- */
.section-hero {
    width: 100%;
    margin: 0; 
    padding: 0; 
}
.hero-img-full {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* --- 2. SEZIONI FEATURE (Testo + Foto alternati) --- */
.section-feature {
    margin: 40px 0;
    /* NESSUN BORDO QUI */
}
.feature-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.feature-text p {
    margin-bottom: 15px;
    text-align: justify;
}
.feature-image img {
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- 3. GRIGLIE (3 o 2 colonne) --- */
.section-grid-3, .section-grid-2 {
    margin: 40px 0;
}
.grid-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Card interna alla griglia */
.grid-card {
    background: #fff; /* Sfondo bianco pulito */
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee; /* Bordino sottile elegante */
    transition: transform 0.3s ease;
}
.grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: #a9343c;
}

.media-box, .media-2-box {
    margin-top: 15px;
    border-radius: 4px;
    overflow: hidden;
}
.media-box img, .media-2-box img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- 4. VIDEO --- */
.video-facade {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.play-btn { 
    position: absolute; top: 50%; left: 50%; 
    transform: translate(-50%, -50%); width: 60px; height: 40px; 
    background: rgba(169, 52, 60, 0.9); /* Rosso semi-trasparente */
    color: #fff; border-radius: 10px; 
    display: flex; align-items: center; justify-content: center; font-size: 24px; 
    transition: transform 0.2s;
}
.video-facade:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

/* --- RESPONSIVE DESKTOP (>768px) --- */
@media (min-width: 768px) {
    /* Feature: Affiancate */
    .feature-container {
        flex-direction: row;
        align-items: center;
        gap: 50px;
    }
    .feature-text { flex: 1; }
    .feature-image { flex: 1; }
    
    /* Reverse per alternare */
    .feature-container.reverse-mobile { flex-direction: row-reverse; }

    /* Griglie: Affiancate */
    .grid-container {
        flex-direction: row;
        align-items: stretch; /* Altezza uguale */
    }
    .grid-card { flex: 1; }
}