/**
 * Moduli standard — UI allineata alla home di audiotre.com
 * Linguaggio: blocchi colorati full-bleed (bianco / blu #005295 / #f5f5f5 / #505050),
 * titoli grandi weight 400, colonne centrate senza card/bordi, veil blu in hover, flat.
 */

/* ---------- Utility mancante nel tema (usata dalle griglie) ---------- */
.bottom-20 { margin-bottom: 20px; }

/* ---------- Ritmo di sezione ---------- */
.at-section {
    padding-top: 75px;
    padding-bottom: 75px;
}

/* ---------- Intestazione modulo (come le sezioni della home) ---------- */
.at-head {
    margin-bottom: 50px;
}

.at-head--center {
    text-align: center;
}

.at-head--tight { margin-bottom: 30px; }

/* Per intestazioni dentro sezioni full-bleed (gallery, video) */
.at-head--pad-top { padding-top: 75px; margin-bottom: 40px; }

/* Soprattitolo: come l'h5 blu dell'intro in home */
.at-tag {
    display: block;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #005295;
    margin-bottom: 10px;
}

/* Titolo: scala della home (h2 53px weight 400) */
.at-title {
    font-size: 53px;
    font-weight: 400;
    line-height: 1.15;
    color: #000000;
    margin-bottom: 0;
}

.at-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #444444;
    margin: 20px 0 0;
}

.at-head--center .at-desc {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* Varianti su blocco blu */
.bg-reverse .at-tag { color: #ffffff; opacity: .85; }
.bg-reverse .at-title { color: #ffffff; }
.bg-reverse .at-desc { color: rgba(255, 255, 255, .9); }

/* ---------- Testo ricco ---------- */
.at-prose { line-height: 1.75; color: #333333; }
.at-prose p { line-height: 1.75; color: #333333; margin-bottom: 1rem; }
.at-prose p:last-child { margin-bottom: 0; }
.bg-reverse .at-prose, .bg-reverse .at-prose p { color: rgba(255, 255, 255, .9); }

/* Colonne di testo: respiro quando si impilano su mobile */
@media screen and (max-width: 767.98px) {
    .at-cols > [class*="col-"]:not(:last-child) { margin-bottom: 25px; }
}

/* ---------- Checklist con spunta blu ---------- */
.at-check {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.at-check li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.at-check li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
    color: #005295;
    font-size: 14px;
}

/* ---------- Link freccia (uppercase come la nav) ---------- */
.at-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #005295;
    margin-top: 15px;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
}

.at-link::after {
    content: '\2192';
    margin-left: 8px;
    transition: margin-left .25s ease;
}

.at-link:hover { color: #005295; border-bottom-color: #005295; }
.at-link:hover::after { margin-left: 14px; }

/* ---------- Bottoni su blocco blu (metriche dei bottoni del tema) ---------- */
.at-btn-white {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px 0;
    background: #ffffff;
    color: #005295;
    border: 1px solid #ffffff;
    border-radius: 8px;
    text-transform: uppercase;
    transition: all .25s ease;
}

.at-btn-white:hover {
    background: transparent;
    color: #ffffff;
}

.at-btn-ghost {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px 0;
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 8px;
    text-transform: uppercase;
    transition: all .25s ease;
}

.at-btn-ghost:hover {
    background: #ffffff;
    color: #005295;
}

/* ---------- Page banner (come .top-banner ma leggibile su foto) ---------- */
.at-banner {
    position: relative;
    padding-top: 120px;
    padding-bottom: 120px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
}

.at-banner::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0, 82, 149, .8);
}

.at-banner > .container { position: relative; }

.at-banner .at-tag { color: #ffffff; opacity: .85; }

.at-banner h1 {
    color: #ffffff;
    font-size: 53px;
    font-weight: 400;
    text-transform: uppercase;
    word-break: break-word;
    margin-bottom: 0;
}

.at-banner .at-desc {
    color: rgba(255, 255, 255, .9);
    max-width: 680px;
    margin: 18px auto 0;
}

/* ---------- Split: due metà full-bleed come i blocchi della home ---------- */
.at-split-media {
    position: relative;
    min-height: 500px;
}

.at-split-media img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Metà testo: pannello colorato pieno, come l'intro dei progetti (bg-light-grey + padding-50) */
.at-split-body {
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Selettore rinforzato: Bootstrap .no-gutters > [class*="col-"] azzera il padding
   orizzontale delle colonne con specificità (0,2,0) — qui lo vinciamo. */
.row.no-gutters > .at-split-body,
.at-split-body {
    padding: 75px 8%;
}

.at-split--grey .at-split-body { background: #ffffff; }

/* Variante video: iframe che riempie la metà (16:9 su mobile) */
.at-video-media { background: #000000; }

.at-video-media iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media screen and (max-width: 991.98px) {
    .at-video-media { min-height: 0; padding-bottom: 56.25%; }
}

.at-split-body .at-title { font-size: 40px; }

/* ---------- Griglia elementi centrati (come #section-icone della home) ---------- */
.at-item {
    text-align: center;
    padding: 0 25px;
    margin-bottom: 50px;
}

.at-item img {
    max-width: 100px;
    margin-bottom: 20px;
}

.at-item h5 {
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #000000;
}

.at-item p {
    font-size: 15px;
    line-height: 1.65;
    color: #555555;
    margin-bottom: 0;
}

.bg-reverse .at-item h5 { color: #ffffff; }
.bg-reverse .at-item p { color: rgba(255, 255, 255, .9); }

/* ---------- Statistiche (blocco blu pieno come la home) ---------- */
.at-stat { padding: 20px 15px; }

.at-stat-value {
    font-size: clamp(38px, 4.5vw, 60px);
    font-weight: 400;
    line-height: 1;
    color: #ffffff;
    margin-bottom: 14px;
    word-break: break-word;
}

.at-stat-label {
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .9);
    margin-bottom: 0;
}

.bg-light-grey .at-stat-value { color: #005295; }
.bg-light-grey .at-stat-label { color: #444444; }

/* ---------- Step processo ---------- */
.at-step {
    text-align: center;
    padding: 0 25px;
    margin-bottom: 40px;
}

.at-step-number {
    display: block;
    font-size: 53px;
    font-weight: 400;
    line-height: 1;
    color: #005295;
    margin-bottom: 18px;
}

.at-step h5 {
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.at-step p {
    font-size: 15px;
    line-height: 1.65;
    color: #555555;
    margin-bottom: 0;
}

/* ---------- Galleria full-bleed con veil blu (come i progetti in home) ---------- */
.at-gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    padding-bottom: 66%;
}

.at-gallery-item img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.at-gallery-veil {
    transition: .5s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: rgba(0, 82, 149, .8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 53px;
    font-weight: 400;
}

.at-gallery-item:hover .at-gallery-veil,
.at-gallery-item:focus-visible .at-gallery-veil { opacity: 1; }

/* ---------- Card servizi: blocchi pieni attaccati full-width, come i blocchi
   grigio scuro + blu della home (sezione contatti / banner archivi) ---------- */
.at-plan {
    width: 100%; /* riempie la colonna d-flex (altrimenti si stringe sul contenuto) */
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #505050;
    padding: 75px 10%;
}

.at-plan--featured { background: #005295; }

.at-plan h4 {
    font-size: 26px;
    font-weight: 400;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 14px;
}

.at-plan > p {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .9);
}

.at-badge {
    display: inline-block;
    align-self: flex-start;
    background: #ffffff;
    color: #005295;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    margin-bottom: 18px;
}

.at-plan .at-check { margin-top: 8px; margin-bottom: 35px; }
.at-plan .at-check li { font-size: 15px; color: #ffffff; }
.at-plan .at-check li::before { color: #ffffff; }

.at-plan .btn-reverse,
.at-plan .at-btn-white {
    margin-top: auto;
    align-self: flex-start;
}

/* ---------- Il gruppo: colonne pulite come la griglia icone ---------- */
.at-company {
    text-align: center;
    padding: 0 25px;
    margin-bottom: 50px;
}

.at-company img { max-width: 110px; margin-bottom: 20px; }

.at-company h5 {
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.at-company--highlighted h5 { color: #005295; }

.at-company-subtitle {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #005295;
    margin-bottom: 12px;
}

.at-company p:not(.at-company-subtitle) {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
}

.bg-reverse .at-company h5,
.bg-reverse .at-company p { color: #ffffff; }
.bg-reverse .at-company-subtitle { color: rgba(255, 255, 255, .85); }
.bg-reverse .at-company--highlighted h5 { color: #ffffff; border-bottom: 1px solid #FFF; display: inline-block; }

/* ---------- Accessibilità ---------- */
.at-link:focus-visible,
.at-btn-white:focus-visible,
.at-btn-ghost:focus-visible,
.at-gallery-item:focus-visible,
.at-plan .btn-reverse:focus-visible {
    outline: 2px solid #005295;
    outline-offset: 3px;
}

.bg-reverse .at-btn-white:focus-visible,
.bg-reverse .at-btn-ghost:focus-visible {
    outline-color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
    .at-gallery-veil,
    .at-link::after,
    .at-btn-white,
    .at-btn-ghost { transition: none; }
}

/* ---------- Responsive (allineato ai breakpoint Bootstrap: lg 992, md 768) ---------- */
@media screen and (max-width: 991.98px) {
    .at-title { font-size: 30px; text-transform: uppercase; }
    .at-split-body .at-title { font-size: 26px; }
    .at-banner h1 { font-size: 40px; }
    .at-split-media { min-height: 300px; }
}

@media screen and (max-width: 767.98px) {
    .at-section { padding-top: 50px; padding-bottom: 50px; }
    .at-head { margin-bottom: 35px; }
    .at-head--pad-top { padding-top: 50px; margin-bottom: 30px; }
    .at-banner { padding-top: 70px; padding-bottom: 70px; }
    .at-banner h1 { font-size: 30px; }
    .row.no-gutters > .at-split-body,
    .at-split-body { padding: 50px 6%; }
    .at-item, .at-step, .at-company { margin-bottom: 35px; }
    .at-plan { padding: 50px 8%; }
    .at-btn-white, .at-btn-ghost { display: block; margin: 0 0 15px; }
}
