/**

 * ATS Service - Home Page Styles

 */



/* ===== HERO SECTION / SLIDESHOW ===== */

.hero {

    position: relative;

    height: 100vh;

    min-height: 600px;

    overflow: hidden;

}



.hero__slide {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    opacity: 0;

    transition: opacity 1s ease-in-out;

}



.hero__slide.active {

    opacity: 1;

}



.hero__image {

    width: 100%;

    height: 100%;

    object-fit: cover;

    animation: kenBurns 20s ease-in-out infinite alternate;

}



@keyframes kenBurns {

    0% { transform: scale(1); }

    100% { transform: scale(1.1); }

}



.hero__overlay {

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: var(--gradient-overlay);

    z-index: 1;

}



.hero__content {

    position: absolute;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    text-align: center;

    color: var(--text-white);

    z-index: 2;

    max-width: 800px;

    padding: 0 var(--space-6);

}



.hero__title {

    font-size: var(--font-size-6xl);

    font-weight: var(--font-weight-extrabold);

    margin-bottom: var(--space-6);

    color: var(--text-white);

    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);

}



.hero__subtitle {

    font-size: var(--font-size-xl);

    margin-bottom: var(--space-8);

    opacity: 0.9;

}



.hero__cta {

    display: flex;

    gap: var(--space-4);

    justify-content: center;

    flex-wrap: wrap;

}



/* Slideshow Controls */

.hero__controls {

    position: absolute;

    bottom: var(--space-8);

    left: 50%;

    transform: translateX(-50%);

    display: flex;

    gap: var(--space-3);

    z-index: 2;

}



.hero__dot {

    width: 12px;

    height: 12px;

    border-radius: var(--radius-full);

    background: rgba(255, 255, 255, 0.5);

    border: none;

    cursor: pointer;

    transition: all var(--transition-base);

}



.hero__dot.active {

    background: var(--ats-secondary);

    transform: scale(1.3);

}



@media (max-width: 768px) {

    .hero {

        min-height: 500px;

    }



    .hero__title {

        font-size: var(--font-size-4xl);

    }



    .hero__subtitle {

        font-size: var(--font-size-lg);

    }



    .hero__cta {

        flex-direction: column;

        align-items: center;

    }

}



/* ===== SEZIONE AZIENDA ===== */

.section-company {

    padding: var(--space-24) 0;

    background: var(--bg-light);

}



.company__grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: var(--space-12);

    align-items: center;

}



.company__video {

    position: relative;

    border-radius: var(--radius-xl);

    overflow: hidden;

    box-shadow: var(--shadow-2xl);

}



.company__video video {

    width: 100%;

    display: block;

}



.company__content h2 {

    font-size: var(--font-size-4xl);

    margin-bottom: var(--space-6);

    color: var(--ats-primary);

}



.company__content p {

    font-size: var(--font-size-lg);

    line-height: var(--line-height-relaxed);

    color: var(--text-secondary);

    margin-bottom: var(--space-6);

}



@media (max-width: 1024px) {

    .company__grid {

        grid-template-columns: 1fr;

        gap: var(--space-8);

    }

}



/* ===== SEZIONE SERVIZI ===== */

.section-services {

    padding: var(--space-24) 0;

    background: var(--ats-primary);

    color: var(--text-white);

}



.section-services h2 {

    text-align: center;

    font-size: var(--font-size-4xl);

    color: var(--text-white);

    margin-bottom: var(--space-12);

}



.services__grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: var(--space-8);

}



.service-card {

    background: rgba(255, 255, 255, 0.1);

    backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.2);

    border-radius: var(--radius-lg);

    padding: var(--space-8);

    text-align: center;

    transition: all var(--transition-base);

}



.service-card:hover {

    transform: translateY(-8px);

    background: rgba(255, 255, 255, 0.15);

    box-shadow: var(--shadow-2xl);

}



.service-card__icon {

    font-size: 4rem;

    margin-bottom: var(--space-4);

}



.service-card__title {

    font-size: var(--font-size-xl);

    font-weight: var(--font-weight-bold);

    margin-bottom: var(--space-4);

    color: var(--text-white);

}



.service-card__description {

    font-size: var(--font-size-base);

    line-height: var(--line-height-relaxed);

    margin-bottom: var(--space-6);

    opacity: 0.9;

}



@media (max-width: 1024px) {

    .services__grid {

        grid-template-columns: 1fr;

    }

}



/* ===== SEZIONE PARTNER ===== */

.section-partners {

    padding: var(--space-16) 0;

    background: var(--bg-white);

}



.section-partners h3 {

    text-align: center;

    margin-bottom: var(--space-8);

    color: var(--text-secondary);

}



.partners__grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    gap: var(--space-6);

    align-items: center;

}



.partner-logo {

    max-width: 200px;

    height: auto;

    opacity: 0.6;

    transition: opacity var(--transition-base);

    margin: 0 auto;

}



.partner-logo:hover {

    opacity: 1;

}



/* ===== REVEAL ANIMATION ===== */

[data-reveal] {

    opacity: 0;

    transform: translateY(30px);

    transition: all 0.6s ease;

}



[data-reveal].revealed {

    opacity: 1;

    transform: translateY(0);

}

/* Maschera blu semi-trasparente sopra le foto in bianco/nero */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 102, 0.60); /* --ats-primary in trasparenza */
    z-index: 2;
    pointer-events: none;
}
 
/* Caption centrata orizzontalmente E verticalmente (come slider old) */
.hero__caption {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 5;
}
/* =====================================================
   HERO — maschera blu + testi centrati
   Incollare in FONDO a home.css (deve caricarsi per ultimo,
   altrimenti la regola .hero__overlay di home.css prevale)
   ===================================================== */

/* Maschera blu semi-trasparente sopra le foto in bianco/nero */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 102, 0.60); /* --ats-primary in trasparenza */
    z-index: 2;
    pointer-events: none;
}

/* Caption centrata orizzontalmente E verticalmente (come slider old) */
.hero__caption {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 5;
}

/* =====================================================
   HERO — pulsanti trasparenti, hover arancione
   ===================================================== */

/* Default: sfondo trasparente, bordo e testo bianchi */
.hero__caption .btn {
    background: transparent;
    border: 2px solid var(--text-white);
    color: var(--text-white);
    box-shadow: none;
}

/* Hover: si riempie di arancione, il testo resta bianco */
.hero__caption .btn:hover {
    background: var(--ats-secondary);
    border-color: var(--ats-secondary);
    color: var(--text-white);
    box-shadow: var(--shadow-secondary);
    transform: translateY(-2px);
}

/* =========================================================
   AGGIUNTE HOME — A.T.S. Service
   Da accodare al file assets/css/home.css
   Contiene: toggle audio video, sezione Documenti Digitali,
   sezione "Esplora" in fondo, voci dropdown evidenziate.
   ========================================================= */

/* ---------------------------------------------------------
   1) TOGGLE AUDIO sul video aziendale
--------------------------------------------------------- */
.company__video { position: relative; }

.video-sound-toggle {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font: 600 0.9rem/1 'Inter', sans-serif;
    cursor: pointer;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background .2s ease, transform .2s ease;
    z-index: 2;
}
.video-sound-toggle:hover { background: rgba(15, 23, 42, 0.92); transform: translateY(-1px); }
.video-sound-toggle:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.video-sound-toggle__icon { font-size: 1.1rem; line-height: 1; }
.video-sound-toggle.is-on { background: #1d4ed8; }

/* ---------------------------------------------------------
   2) SEZIONE DOCUMENTI DIGITALI / PAPER FREE
--------------------------------------------------------- */
.section-paperfree {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f3d2e 0%, #16624a 100%);
    color: #f1f5f4;
}
.paperfree__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}
.paperfree__badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 18px;
}
.paperfree__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.15;
    margin: 0 0 18px;
    color: #fff;
}
.paperfree__lead {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 22px;
    color: #d7e6e0;
}
.paperfree__lead strong { color: #fff; }

.paperfree__benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    gap: 10px;
}
.paperfree__benefits li {
    position: relative;
    padding-left: 32px;
    line-height: 1.5;
    color: #e2efea;
}
.paperfree__benefits li::before {
    content: "\2713"; /* ✓ */
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #34d399;
    color: #06281d;
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    font-weight: 700;
}

.paperfree__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 24px 18px;
    text-align: center;
}
.stat-card__number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.stat-card__number span { color: #34d399; }
.stat-card__label {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #cfe3dc;
    line-height: 1.35;
}

.paperfree__footnote {
    margin: 36px 0 0;
    padding: 18px 22px;
    border-left: 4px solid #34d399;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 0 12px 12px 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #eaf4f0;
}
.paperfree__footnote strong { color: #fff; }

/* ---------------------------------------------------------
   3) SEZIONE ESPLORA (recap in fondo)
--------------------------------------------------------- */
.section-explore {
    padding: 80px 0;
    background: #f5f7fa;
}
.section-explore > .container > h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    margin: 0 0 8px;
    color: #0f172a;
}
.explore__subtitle {
    text-align: center;
    color: #64748b;
    margin: 0 0 40px;
}
.explore__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.explore-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    padding: 26px 22px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.explore-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
    border-color: #1d4ed8;
}
.explore-card__icon { font-size: 2rem; margin-bottom: 12px; }
.explore-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: #0f172a;
}
.explore-card__text {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #5b6677;
    margin: 0 0 16px;
    flex: 1;
}
.explore-card__cta {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1d4ed8;
}
.explore-card--feature {
    border-color: #16624a;
    background: #f0faf5;
}
.explore-card--feature:hover { border-color: #0f3d2e; }
.explore-card--feature .explore-card__cta { color: #16624a; }

/* ---------------------------------------------------------
   4) Evidenza voce "Documenti Digitali" nei menu
--------------------------------------------------------- */
.nav-dropdown__link--highlight,
.mobile-menu__link--highlight {
    font-weight: 700;
    color: #16624a;
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 992px) {
    .paperfree__inner { grid-template-columns: 1fr; gap: 32px; }
    .explore__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .explore__grid { grid-template-columns: 1fr; }
    .video-sound-toggle__text { display: none; }
    .video-sound-toggle { padding: 12px; }
}