/* ===========================================
   v4o-home.css – Home page di Van4Opportunity
   =========================================== */

/* --------------------------
   1. HEADER (override minimi)
   -------------------------- */
.v4o-site-header {
    background: #000;
}
.v4o-header-inner {
    padding: 12px 18px;
}
.v4o-logo {
    max-width: 160px;
    height: auto;
}
@media (max-width: 768px) {
    .v4o-logo {
        max-width: 120px;
    }
}

/* --------------------------
   2. HERO HOME
   -------------------------- */
.v4o-home-hero {
    min-height: auto;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 2rem;
}
.v4o-home-hero h1 {
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    font-weight: 400;
}
.v4o-home-hero p {
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 0;
}

/* --------------------------
   3. SEZIONE A DUE COLONNE (IMMAGINE + CITAZIONE)
   -------------------------- */
.two-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 1.5rem 1rem;
    margin-top: 0;
    padding-top: 0;
}
.two-columns .col-img {
    flex: 1;
    min-width: 200px;
    text-align: center;
    margin-top: 0;
    padding-top: 0;
}
.two-columns .col-img img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    display: block;
    margin-top: 0;
}
.two-columns .col-text {
    flex: 1;
    color: #eef6fb;
    font-size: 1rem;
    line-height: 1.5;
    font-style: italic;
    font-weight: 300;
    text-align: right;
    padding: 0.5rem;
}

/* Evidenziazione parole chiave nella citazione */
.highlight {
    color: #f5b042;
    font-weight: 500;
}
.last-line {
    font-size: 1.4rem;
    font-weight: 400;
    margin-top: 0.5rem;
    display: inline-block;
    color: #f5b042;
}
.quote-divider {
    width: 90%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f5b042, transparent);
    margin: 0.5rem auto 0;
    border: none;
}

/* --------------------------
   4. VIDEO
   -------------------------- */
.video-section {
    background: #000;
    padding: 1rem 1rem 2rem;
}
.video-container {
    max-width: 640px;
    margin: 0 auto;
}
video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.video-invite {
    text-align: center;
    font-style: italic;
    color: #f5b042;
    margin-bottom: 1rem;
}

/* --------------------------
   5. SEZIONE DESCRITTIVA GENERICA
   -------------------------- */
.content-section {
    background: #000;
    padding: 2rem 1rem;
    color: #eef6fb;
}
.content-section h2 {
    font-size: 28px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 400;
}
.content-section p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-weight: 300;
}
@media (max-width: 768px) {
    .content-section p {
        font-size: 16px;
        line-height: 1.4;      /* aggiungi */
        margin-top: 0;         /* aggiungi */
    }
}

/* --------------------------
   6. LINK LANDING (entrata extra, secondo lavoro)
   -------------------------- */
.landing-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}
.landing-links a {
    background: rgba(255,255,255,0.08);
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    border: 1px solid rgba(245,176,66,0.3);
    color: #f5b042;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}
.landing-links a:hover {
    background: rgba(245,176,66,0.2);
    border-color: #f5b042;
}

/* --------------------------
   7. SEZIONE "CHI È FLAVIO"
   -------------------------- */
.team-section {
    background: #000;
    padding: 2rem 1rem;
    margin-bottom: 3rem;
}
.team-section h2 {
    color: #f5b042;
    text-align: center;
    font-size: 28px;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}
.team-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.team-image {
    flex: 1;
    min-width: 200px;
    text-align: center;
}
.team-image img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.team-text {
    flex: 2;
    width: 100%;
}
.team-paragraph {
    font-size: 18px;
    margin: 0 0 0.25rem 0;
    font-weight: 300;
    line-height: 1.4;
    color: #eef6fb;
    text-align: left;
}
.paragraph-spacer {
    height: 0.6em;
}
.team-text p {
    font-weight: 300;
}
@media (max-width: 768px) {
    .team-container {
        flex-direction: column;
        align-items: center;
    }
    .team-text {
        text-align: left;
    }
    .team-paragraph {
        font-size: 16px;
    }
}

/* --------------------------
   8. READMORE (leggi tutto) – sezione Flavio
   -------------------------- */
.readmore-container {
    position: relative;
}
.readmore-content {
    transition: all 0.2s ease;
}
@media (min-width: 769px) {
    .readmore-content:not(.expanded) {
        display: -webkit-box;
        -webkit-line-clamp: 8;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .readmore-content.expanded {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }
}
.readmore-btn {
    display: none;
    background: none;
    border: none;
    color: #f5b042;
    font-size: 14px;
    font-weight: 500;
    margin-top: 16px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    text-decoration: underline;
    padding: 8px 16px;
    background-color: rgba(245,176,66,0.1);
    border-radius: 40px;
    transition: background 0.2s;
}
.readmore-btn:hover {
    background-color: rgba(245,176,66,0.2);
}
@media (max-width: 768px) {
    .readmore-btn {
        display: inline-block;
    }
}

/* --------------------------
   9. CAROSELLO NOTIZIE
   -------------------------- */
.news-carousel {
    background: #000;
    padding: 2rem 1rem;
    overflow: hidden;
}
.carousel-container {
    max-width: 1100px;
    margin: 0 auto;
}
.carousel-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 1.5rem;
    color: #f5b042;
}
.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    scrollbar-width: thin;
}
.carousel-card {
    flex: 0 0 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 1.2rem;
    scroll-snap-align: start;
    border-left: 4px solid #f5b042;
}
.carousel-card h3 {
    font-size: 18px;
    margin-bottom: 0.5rem;
    color: #fff;
}
.carousel-card p {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.4;
}
@media (max-width: 768px) {
    .carousel-card {
        flex: 0 0 260px;
    }
}

/* --------------------------
   10. FOOTER (override)
   -------------------------- */
footer {
    background: #000;
    text-align: center;
    padding: 2rem;
    font-size: 14px;
    color: #9fb3c4;
}
footer a {
    color: #f5b042;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* --------------------------
   11. MEDIA QUERY GENERALI (raccolte qui)
   -------------------------- */
@media (max-width: 768px) {
    .v4o-home-hero h1 {
        font-size: clamp(22px, 5vw, 32px);
    }
    
    .two-columns {
        flex-direction: column;
        text-align: center;
    }
    .two-columns .col-img {
        margin-bottom: 0;
    }
    .two-columns .col-text {
        text-align: left !important;
        font-size: 0.85rem;
        line-height: 1.4;
        font-style: italic;
        font-weight: 300;
        margin-top: -40px;
        padding: 1rem;
        border-radius: 16px;
        position: relative;
        z-index: 2;
        width: 100%;
        text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    }
    .last-line {
        font-size: 1rem;
        color: #f5b042;      /* evidenzia in giallo/arancio */
        font-weight: 500;    /* rende leggermente più grassetto (opzionale) */
    }
    
    .team-section h2 {
        font-size: 24px;
    }
    
    /* Riduci dimensione titoli delle sezioni descrittive solo su smartphone verticale */
    .content-section h2 {
        font-size: 18px;
        color: #f5b042;      /* evidenzia in giallo/arancio */
        font-weight: 500;    /* rende leggermente più grassetto (opzionale) */
        margin-bottom: 1rem;   /* aggiungi */
    }
}

/* Smartphone in orizzontale: riduci il font dell'ultima riga e forza singola riga */
@media (max-width: 900px) and (orientation: landscape) {
    .last-line {
        font-size: 1.1rem !important;
        white-space: nowrap !important;
        color: #f5b042 !important;      /* stesso colore degli highlight */
        font-weight: 500 !important;    /* leggermente più grassetto per risaltare */
    }
}

#opportunita h2 {
    margin-top: 4rem !important;
}

/* Carosello: titolo card ridotto e massimo 2 righe */
.carousel-card h3 {
    font-size: 1rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-height: calc(1.3em * 2);
}

.carousel-card {
    padding-top: 0.5rem !important;
}
.carousel-card h3 {
    background: rgba(0,0,0,0.5);
    display: inline-block;
    width: auto;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-top: 0 !important;
    margin-bottom: 0.5rem;
}
.card-footer {
    margin-top: 0.5rem;
    padding-top: 0.3rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.carousel-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.carousel-card .card-footer {
    margin-top: auto;
}

.carousel-card {
    height: 240px;
    overflow-y: auto;
}