/* CSS dedicato alle landing focus (entrata-extra e secondo-lavoro) */

/* Immagini hero */
.landing-extra .v4o-hero-bg.extra-hero {
    background-image: url('/assets/img/hero-extra-brescia.jpg');
}
@media (max-width: 768px) and (orientation: portrait) {
    .landing-extra .v4o-hero-bg.extra-hero {
        background-image: url('/assets/img/hero-extra-brescia-vert.jpg') !important;
        background-position: center top !important;
    }
}

/* Header e logo */
.focus-landing .site-header {
    background-color: #000000 !important;
    padding: 12px 16px !important;
}
.focus-landing .logo img {
    width: 160px !important;
    height: auto !important;
}
@media (max-width: 768px) {
    .focus-landing .logo img {
        width: 120px !important;
    }
}

/* Griglia card (invariata) */
.focus-landing .v4o-cards-grid {
    overflow-x: hidden;
}
.focus-landing .v4o-card {
    width: 100%;
    box-sizing: border-box;
}
.v4o-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 40px 16px;
}
@media (max-width: 768px) {
    .v4o-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

.landing-extra .v4o-cards {
    margin-top: 50px !important;
}

/* Testi hero */
.landing-extra .v4o-subtitle {
    font-weight: 400;
    font-style: italic;
    font-size: 16px;
    max-width: 85%;
    margin: 0 auto 20px;
    line-height: 1.4;
}
.landing-extra .v4o-hero-inner {
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
}
.landing-extra .v4o-title {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}
.landing-extra .v4o-subtitle {
    max-width: 85%;
}

/* Griglia vantaggi (FAQ) */
.vantaggi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}
.vantaggi-grid div {
    background: rgba(255,255,255,0.03);
    padding: 16px 20px;
    border-radius: 12px;
}
@media (max-width: 768px) {
    .vantaggi-grid {
        grid-template-columns: 1fr;
    }
}
.v4o-content-section h2 {
    font-size: 1.5rem !important;
}
@media (max-width: 768px) {
    .v4o-content-section h2 {
        font-size: 1.3rem;
    }
}
.vantaggi-grid div {
    font-size: 0.9rem;
}
@media (max-width: 768px) {
    .vantaggi-grid div {
        font-size: 0.85rem;
    }
}

/* Testo descrittivo SEO */
body.focus-landing .seo-text {
    background: #000 !important;
    border-radius: 20px;
    padding: 32px 28px !important;
    margin: 48px auto !important;
    color: #f0f0f0;
    font-size: 18px;
    line-height: 1.8;
    text-align: left;
    max-width: 850px;
    border-left: 6px solid #f5b042;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}
body.focus-landing .seo-text::before {
    content: "“";
    font-size: 70px;
    font-family: serif;
    color: #f5b042;
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: 15px;
    pointer-events: none;
}
body.focus-landing .seo-text p {
    margin: 0;
    font-weight: 300;
}
body.focus-landing .seo-text p:first-of-type::first-line {
    font-weight: 500;
    letter-spacing: -0.2px;
}
@media (max-width: 768px) {
    body.focus-landing .seo-text {
        padding: 24px 20px !important;
        font-size: 16px;
        margin: 32px 16px !important;
        border-left-width: 4px;
    }
    body.focus-landing .seo-text::before {
        font-size: 50px;
        top: -5px;
        left: 10px;
    }
}

/* Readmore */
.readmore-container {
    position: relative;
}
.readmore-content {
    transition: all 0.2s ease;
}
@media (max-width: 768px) {
    .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;
    }
}

/* Sfondo nero uniforme */
html, body {
    background: #000 !important;
}
.focus-landing .v4o-cards,
.focus-landing .v4o-content-section,
.focus-landing .seo-text,
.focus-landing .pre-footer,
.focus-landing .team-section,
.focus-landing .news-carousel,
.focus-landing .v4o-cards-grid {
    background: #000 !important;
}
.focus-landing .v4o-content-section h2,
.focus-landing .vantaggi-grid div,
.focus-landing .v4o-content-section p {
    color: #ffffff !important;
}
.focus-landing .v4o-content-section {
    background: transparent;
}
.focus-landing main p,
.focus-landing main div:not(.v4o-card):not(.v4o-hero-inner) {
    color: #ffffff;
}
.vantaggi-grid div {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(245,176,66,0.3) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    transition: all 0.2s ease;
}
.vantaggi-grid div:hover {
    background: rgba(255,255,255,0.12) !important;
    border-color: rgba(245,176,66,0.6) !important;
}

/* Mobile margini laterali */
@media (max-width: 768px) {
    .landing-extra .v4o-hero-inner {
        max-width: 96%;
        padding-left: 4px;
        padding-right: 4px;
    }
    .landing-extra .v4o-title {
        font-size: clamp(28px, 6vw, 34px);
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .landing-extra .v4o-subtitle {
        font-size: 14px;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* DEBUG */
.landing-extra .v4o-track-container {
    min-height: 660px;
    position: relative;
}
#v4o-start-btn-track {
    display: inline-flex !important;
    z-index: 10 !important;
    background: rgba(0,0,0,0.8) !important;
    border: 2px solid #f5b042 !important;
}

/* Pre-footer */
.pre-footer {
    background: #000 !important;
    padding: 2rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.pre-footer p {
    color: #eef6fb;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.pre-footer a {
    color: #f5b042;
    text-decoration: none;
    transition: color 0.2s;
}
.pre-footer a:hover {
    color: #ffcc44;
    text-decoration: underline;
}

/* Card e badge */
.v4o-card h3 {
    font-size: 1rem !important;
}
@media (max-width: 768px) {
    .v4o-card h3 {
        font-size: 0.9rem;
    }
}
.v4o-cards-title {
    font-size: 1rem !important;
    margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
    .v4o-cards-title {
        font-size: 0.8rem !important;
    }
}
.focus-landing .v4o-card {
    border: 2px solid rgba(255,255,255,0.4) !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,0.03) !important;
    box-shadow: 0 20px 45px rgba(0,0,0,0.4) !important;
    padding-top: 60px !important;
}
.focus-landing .v4o-card:hover {
    transform: translateY(-5px);
    transition: transform 0.2s ease;
}
.focus-landing .v4o-card .v4o-badge {
    top: 15px !important;
    transform: translateY(0) !important;
}
.v4o-cards-title {
    margin-top: 0 !important;
}
.focus-landing .v4o-card h3 {
    text-align: center !important;
}

/* ========== POSIZIONAMENTO TESTO E BOTTONE ========== */
/* Testi in alto (senza transform) */
.landing-extra .v4o-hero {
    align-items: flex-start !important;
    padding-top: 10px !important;
    min-height: clamp(600px, 85vh, 960px) !important;
}
/* Contenitore flessibile per separare testo e bottone */
.landing-extra .v4o-hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 500px;
}
.landing-extra .v4o-hero-texts {
    flex-shrink: 0;
}
/* Desktop: bottone giù (6 interlinee) */
.landing-extra .v4o-hero-buttons {
    margin-top: 100px !important;
    margin-bottom: 30px !important;
    align-self: center;
}
/* Mobile: testo più alto e bottone su (3 interlinee) */
@media (max-width: 768px) {
    .landing-extra .v4o-hero {
        padding-top: 60px !important;
    }
    .landing-extra .v4o-hero-buttons {
        margin-top: -40px !important;
        margin-bottom: 40px !important;
    }
}