/* --- VARIABILI E SETUP --- */
:root {
    --brand-blue: #0A1C4E;
    --bg-light-blue: #D2E8F9;
    --bg-gray: #F2F2F2;
    --text-dark: #1A1A1A;
    --text-gray: #6B7280;
    --white: #FFFFFF;
    --border-color: #E5E7EB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Figtree', sans-serif;
    color: var(--brand-blue);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}

.container-hero {
    width: 100%;
    padding: 0 32px;
}

/* --- TYPOGRAPHY --- */
h1 {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--brand-blue);
}

h2 {
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--brand-blue);
}

/* --- BOTTONI --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn span {
    margin-left: 10px;
    font-size: 1.2rem;
}

.btn-primary {
    background-color: var(--brand-blue);
    color: var(--white);
    border: 1px solid var(--brand-blue);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--brand-blue);
    border: 1px solid var(--brand-blue);
}

.btn-secondary:hover {
    background-color: var(--brand-blue);
    color: var(--white);
}

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--brand-blue);
    color: var(--white);
    height: 44px;
    overflow: hidden;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.quad-side {
    flex: 1;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    background-origin: content-box;
    opacity: 0.9;
}

.quad-side.left {
    padding: 8px 24px 8px 8px;
    background-image: url('../Materiali/icone_interfaccia/quadratini-s.png');
}

.quad-side.right {
    padding: 8px 8px 8px 24px;
    background-image: url('../Materiali/icone_interfaccia/quadratini-d.png');
}

.visitors {
    padding: 0 40px;
    font-size: 14px;
    white-space: nowrap;
    font-weight: 500;
}


/* --- HEADER --- */
.site-header {
    background: var(--white);
    padding: 24px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: none !important;
    width: 100% !important;
    padding: 0 5% !important;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-blue);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-img {
    height: 36px;
    width: 148px;
    display: block;
    object-fit: contain;
}

.logo-text small {
    font-size: 0.6rem;
    vertical-align: super;
}

.main-nav ul {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-gray);
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--brand-blue);
}

/* ----------------------------------------------------
   1. HERO SECTION 
------------------------------------------------------- */
.hero-section {
    background-color: var(--white);
    padding: 20px 0 40px 0;
}

.hero-box {
    background-color: var(--bg-light-blue);
    padding: 80px 96px 0 96px;
    /* 32px (container) + 96px = 128px from edge */
    position: relative;
    overflow: hidden;
    height: 832px;
    display: flex;
    flex-direction: column;
}

.hero-content-centered {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content-centered h1 {
    font-size: 3.5rem;
    color: var(--brand-blue);
    line-height: 1.1;
    margin-bottom: 32px;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--brand-blue);
    line-height: 1.5;
    margin-bottom: 48px;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.hero-images-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
}

.pillar-left {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 470px;
    object-fit: contain;
    object-position: bottom left;
}

.pillar-right {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 470px;
    object-fit: contain;
    object-position: bottom right;
}

/* ----------------------------------------------------
   2. TRUST BAR 
------------------------------------------------------- */
.trust-bar {
    padding: 80px 0;
    background-color: var(--bg-gray);
    text-align: center;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 48px;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
}

.trust-logo {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    transition: transform 0.3s ease;
}

/* Primo è quadrato (default), poi si alternano */
.trust-logo:nth-child(even) {
    border-radius: 50%;
    background: #fff;
    /* Sfondo bianco solo per i cerchi se necessario per visibilità, o trasparente */
}

/* Se l'utente vuole sfondo bianco anche per i quadrati ma senza bordo */
.trust-logo:nth-child(odd) {
    background: #fff;
}

.trust-logo img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.trust-logo:hover img {
    transform: scale(1.1);
}

.trust-logo:hover {
    transform: scale(1.05);
}

@media (max-width: 1200px) {
    .trust-logos {
        gap: 12px;
    }

    .trust-logo {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 992px) {
    .trust-logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}

.trust-title {
    font-size: 1.8rem;
    color: var(--brand-blue);
    font-weight: 600;
    margin-bottom: 16px;
}

.trust-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* ----------------------------------------------------
   SHARED SPLIT LAYOUT 
------------------------------------------------------- */
.split-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.section-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--brand-blue);
}

/* ----------------------------------------------------
   3. ABOUT SECTION 
------------------------------------------------------- */
.about-section {
    padding: 120px 0;
    background: var(--white);
}

.lead-text {
    font-size: 1.8rem;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 60px;
    font-weight: 400;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.stat-number {
    font-size: 4.5rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 16px;
}

.stat-desc {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.carousel-container {
    margin-top: 80px;
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.carousel-lines {
    display: flex;
    gap: 8px;
}

.carousel-lines .line {
    width: 40px;
    height: 2px;
    background: #EAEAEF;
}

.carousel-lines .line.active {
    background: var(--brand-blue);
}

.carousel-arrows .arrow-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--brand-blue);
    width: 30px;
    height: 30px;
    cursor: pointer;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-item {
    flex: 0 0 65%;
    width: 65%;
}

.carousel-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* ----------------------------------------------------
   4. SERVIZI SECTION 
------------------------------------------------------- */
.services-section {
    background-color: var(--bg-light-blue);
    padding: 120px 0;
}

.services-section h2,
.services-subtitle {
    font-size: 32px;
    color: var(--brand-blue);
    font-weight: 400;
    /* Regular */
    line-height: 1.4;
    font-family: 'Figtree', sans-serif;
    margin-bottom: 8px;
    text-align: left;
}

.services-section .hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 40px;
}

.services-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    text-align: center;
    padding: 24px;
    height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-card img {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card h4 {
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.2;
}

.service-card:hover img {
    transform: translateY(-10px);
}

/* ----------------------------------------------------
   5. MID CALLOUT (Gestione Completa)
------------------------------------------------------- */
.mid-callout {
    padding: 60px 0;
    background: var(--white);
}

.callout-box {
    background-color: var(--bg-gray);
    background-image: url('../Materiali/foto/Campo_di_calcio.png');
    background-size: 100% auto;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding: 0 60px;
    text-align: center;
    position: relative;
    color: var(--brand-blue);
    height: 960px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.callout-box .label {
    display: block;
    padding-top: 34px;
    margin-bottom: 24px;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 1.1rem;
}

.callout-box h2.black-text {
    font-size: 3rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 40px;
    line-height: 1.2;
}

.callout-actions {
    margin-top: 20px;
}

/* ----------------------------------------------------
   6. PROJECTS AREA 
------------------------------------------------------- */
.projects-section {
    padding: 120px 0 0 0;
    background: var(--white);
}

.projects-section .container {
    padding: 0 128px;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
}

.projects-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--brand-blue);
}

.project-card {
    margin-bottom: 0;
    padding-top: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid #EDF5FD;
    /* Celestino chiarissimo */
    position: relative;
}

.project-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 120px;
}

.appalti-list .project-card:last-child {
    border-bottom: 1px solid #EDF5FD;
    margin-bottom: 24px;
    padding-bottom: 24px;
}

.project-main-title {
    font-size: 1.8rem;
    color: var(--brand-blue);
    margin-bottom: 40px;
    font-weight: 500;
    max-width: 800px;
}

.project-layout-grid {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.project-card.reversed .project-layout-grid {
    flex-direction: row-reverse;
}

.project-images-complex {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

/* No row-reverse here, let Large stay Left if defined first in HTML */

.images-col-small {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.images-col-small img {
    width: 250px;
    height: 137px;
    object-fit: cover;
}

.images-col-large img {
    width: 516px;
    height: 290px;
    object-fit: cover;
}

.project-info-complex {
    display: flex;
    flex-direction: column;
    height: 290px;
}

.project-year-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.project-anno {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.project-desc-text {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-top: auto;
    /* Pushes the text to the bottom of the container */
    margin-bottom: 0;
}

.project-tags-horizontal {
    display: grid;
    grid-template-columns: 250px 250px 250px;
    gap: 120px;
    margin-top: 60px;
}

/* --- LIGHTBOX SYSTEM --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.project-images-complex img {
    cursor: zoom-in;
    transition: filter 0.3s, transform 0.3s;
}

.project-images-complex img:hover {
    filter: brightness(1.1);
}

padding-bottom: 60px;
}

.project-card:last-of-type .project-tags-horizontal {
    border-bottom: none;
}

.tag-h-item strong {
    display: block;
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.tag-h-item span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ----------------------------------------------------
   7. QUALIFICATIONS SECTION 
------------------------------------------------------- */
.qualifications-section {
    padding: 0;
    margin: 0;
    background-color: var(--white);
}

.qualifications-box {
    background-color: var(--bg-light-blue);
    min-height: 600px;
    height: auto;
    position: relative;
    display: flex;
    align-items: center;
    padding: 140px 120px;
    width: 100%;
}

.qualifications-content {
    max-width: 850px;
    position: relative;
    z-index: 2;
}

.qualifications-content .label {
    display: block;
    color: var(--text-gray);
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 1.1rem;
}

.qualifications-content h2 {
    font-size: 32px;
    color: var(--brand-blue);
    margin-bottom: 48px;
    line-height: 1.4;
    font-weight: 600;
}

.qualifications-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 503px;
    pointer-events: none;
}

.qualifications-image img {
    height: 100%;
    width: auto;
    display: block;
}

.btn-outline-blue {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border: 1px solid var(--brand-blue);
    color: var(--brand-blue);
    font-weight: 600;
    background: #FFFFFF;
    transition: all 0.3s ease;
}

.btn-outline-blue:hover {
    background: var(--brand-blue);
    color: var(--white);
}


/* ----------------------------------------------------
   8. FOOTER 
------------------------------------------------------- */
/* ----------------------------------------------------
   8. FOOTER REDESIGN
------------------------------------------------------- */
.site-footer {
    background-color: var(--brand-blue);
    color: var(--white);
    padding: 100px 0 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 2.5fr;
    gap: 100px;
    margin-bottom: 80px;
}

.footer-col.brand-col {
    display: flex;
    flex-direction: column;
}

.footer-tagline {
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 500;
    color: var(--white);
    margin: 40px 0;
}

.footer-copy-small {
    margin-top: auto;
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-copy-small p {
    margin-bottom: 8px;
}

.footer-nav ul {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-nav a {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s;
}

.footer-nav a.active,
.footer-nav a:hover {
    color: var(--white);
}

.footer-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}

.info-block p {
    font-size: 1rem;
    color: var(--white);
    line-height: 1.4;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

.btn-footer-outline {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 12px 24px;
    color: var(--white);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.btn-footer-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.footer-center-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.copyright-center {
    font-size: 0.95rem;
    opacity: 0.6;
}

.visitor-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quad-icon {
    width: 14px;
    height: auto;
    opacity: 0.8;
}

/* ----------------------------------------------------
   PAGE: CHI SIAMO 
------------------------------------------------------- */

.about-hero-section {
    background-color: var(--white);
    padding: 20px 0 40px 0;
}

.about-hero-box {
    background-color: var(--bg-light-blue);
    padding: 120px 0;
    /* Rimosso padding fisso laterale */
    position: relative;
    overflow: hidden;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-hero-box .hero-faro-image {
    position: absolute;
    bottom: 0;
    right: 8%;
    /* Spazio ampio di default su schermi grandi */
    height: 110%;
    width: auto;
    object-fit: contain;
    object-position: right bottom;
    z-index: 1;
    transition: right 0.3s ease;
}

/* Man mano che lo schermo si stringe, l'immagine si avvicina al bordo */
@media (max-width: 1400px) {
    .about-hero-box .hero-faro-image {
        right: 4%;
    }
}

@media (max-width: 1100px) {
    .about-hero-box .hero-faro-image {
        right: 0;
    }
}

@media (max-width: 900px) {
    .about-hero-box .hero-faro-image {
        right: -135px;
    }
}

@media (max-width: 768px) {
    .about-hero-box .hero-faro-image {
        height: 60%;
        right: -80px;
        opacity: 0.15;
        z-index: 0;
    }

    .about-hero-box .hero-grid {
        max-width: 100%;
    }
}

.about-hero-box .hero-grid {
    z-index: 2;
    position: relative;
    max-width: 60%;
    padding-left: 5vw;
    /* Padding variabile per il testo */
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid var(--brand-blue);
    background: transparent;
    color: var(--brand-blue);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline-dark:hover {
    background: var(--brand-blue);
    color: var(--white);
}

.btn-outline-dark span {
    margin-left: 10px;
    font-size: 1.2rem;
}

.mission-section {
    background-color: var(--bg-light-blue);
    height: 1050px;
    padding: 0;
    overflow: hidden;
}

.mission-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 128px;
}

.mission-text-grid {
    display: flex;
    padding: 0 128px;
    justify-content: space-between;
}

@media (max-width: 1024px) {
    .mission-text-grid {
        flex-direction: column;
        padding: 0 40px;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .mission-text-grid {
        padding: 0 24px;
    }
}

.mission-title-col {
    min-width: 320px;
}

.mission-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--brand-blue);
    line-height: 1.1;
}

.mission-desc-col {
    max-width: 680px;
}

.mission-desc-col p {
    font-size: 24px;
    line-height: 1.4;
    color: #000000;
    font-weight: 400;
    margin-bottom: 32px;
}

.mission-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 32px 32px 32px;
    margin-top: auto;
}

.mission-images-grid img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.stats-strip {
    background-color: var(--brand-blue);
    padding: 80px 0;
    color: var(--white);
}

.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stats-grid-4 .stat-item {
    padding: 0 20px;
}

.border-right {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-strip .stat-number {
    color: var(--bg-light-blue);
    font-size: 4.5rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 16px;
}

.stats-strip .stat-desc {
    color: var(--white);
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.4;
}

.pillars-section {
    padding: 120px 0;
    background-color: var(--bg-gray);
    height: 871px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.pillars-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    padding: 0 128px;
    width: 100%;
}

.pillars-main-title {
    font-size: 28px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 40px;
}

.carousel-indicators {
    display: flex;
    gap: 12px;
}

.carousel-indicators .indicator {
    width: 80px;
    height: 4px;
    background: #E5E7EB;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-indicators .indicator.active {
    background: #1A1A1A;
}

.pillars-carousel-viewport {
    overflow: visible;
    width: 100%;
    padding: 20px 0;
}

.pillars-carousel-track {
    display: flex;
    gap: 32px;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.pillar-card {
    flex: 0 0 720px;
    width: 720px;
    min-height: 420px;
    height: auto;
    background: var(--white);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.pillar-icon {
    position: absolute;
    top: 60px;
    right: 60px;
    width: 80px;
    height: auto;
}

.pillar-card h3 {
    font-size: 24px;
    color: #000000;
    margin-bottom: 24px;
    font-weight: 500;
}

.pillar-card p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.arrow-btn {
    width: 44px;
    height: 44px;
    border: 1px solid #E5E7EB;
    background: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
    margin-left: 10px;
}

.arrow-btn:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

/* 5. TEAM SECTION */
.team-section {
    background-color: var(--white);
    padding: 128px;
}

.team-container {
    height: auto;
    display: flex;
    flex-direction: column;
}

.team-header-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.team-header-left p {
    max-width: 450px;
    font-size: 1.1rem;
    color: #000000;
    line-height: 1.5;
}

.team-header-right h2 {
    font-size: 32px;
    color: #000000;
    font-weight: 600;
}

.team-image-container img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    margin-bottom: 60px;
}

.team-departments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 60px;
    row-gap: 40px;
}

.dept-card h5 {
    font-size: 24px;
    color: #000000;
    font-weight: 600;
    margin-bottom: 12px;
}

.dept-card p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* 6. KEY FIGURES SECTION */
.key-figures-section {
    background-color: var(--white);
    height: auto;
    padding: 120px 128px 40px 128px;
    border-top: 1px solid #F0F0F0;
}

.key-figures-container {
    height: 100%;
}

.figures-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 128px;
    height: 100%;
}

.figures-left .label {
    font-size: 18px;
    font-weight: 500;
    color: #000000;
}

.figures-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.figure-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 32px;
    border-bottom: 1px solid #F0F0F0;
}

.figure-item:last-child {
    border-bottom: none;
}

.figure-text h4 {
    font-size: 20px;
    color: #000000;
    font-weight: 600;
    margin-bottom: 12px;
}

.figure-text p {
    font-size: 0.9rem;
    color: var(--text-gray);
    max-width: 500px;
}

.figure-number {
    font-size: 64px;
    font-weight: 600;
    color: #1A1A1A;
}

/* --- MEDIA QUERIES (RESPONSIVE) --- */
@media (max-width: 1200px) {
    .container {
        padding: 0 5%;
    }

    .hero-box {
        padding: 60px 48px 0 48px;
    }

    .services-section {
        padding: 80px 80px 40px 80px;
        height: auto;
    }

    .qualifications-box {
        padding: 60px 40px;
        height: auto;
    }

    .projects-section .container {
        padding: 0 60px;
    }
}

@media (max-width: 1024px) {
    .hero-grid {
        gap: 20px;
    }

    .hero-box {
        height: auto;
        min-height: 600px;
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hero-content-centered h1 {
        font-size: 2.8rem;
    }

    .pillar-left,
    .pillar-right {
        height: 350px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card {
        height: auto;
        padding-bottom: 40px;
    }

    .project-tags-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .qualifications-box {
        height: auto;
        padding: 60px;
        flex-direction: column;
        text-align: center;
    }

    .qualifications-image {
        position: relative;
        transform: none;
        top: 0;
        margin-top: 40px;
        height: auto;
    }

    .qualifications-image img {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .callout-box {
        height: auto;
        min-height: 600px;
        padding-top: 60px;
        padding-bottom: 60px;
        background-size: cover;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-layout-grid {
        flex-direction: column !important;
    }

    .project-images-complex {
        width: 100%;
    }

    .images-col-small img,
    .images-col-large img {
        width: 100%;
        height: auto;
    }

    .images-col-large {
        flex: 2;
    }

    .images-col-small {
        flex: 1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .header-inner {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-box {
        padding: 60px 24px;
        height: auto;
        min-height: auto;
    }

    .hero-content-centered h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 32px;
    }

    .container-hero {
        padding: 0 16px;
    }

    .hero-images-container {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .services-section .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .services-cards-grid {
        grid-template-columns: 1fr;
    }

    .services-section {
        padding: 60px 24px;
        height: auto;
    }

    .projects-section .container {
        padding: 0 24px;
    }

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .project-images-complex {
        flex-direction: column;
    }

    .project-info-complex {
        height: auto;
        margin-top: 24px;
    }

    .project-tags-horizontal {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 30px;
        margin-top: 30px;
    }

    .callout-box {
        padding-left: 24px;
        padding-right: 24px;
    }

    .callout-box h2.black-text {
        font-size: 2rem;
    }

    .callout-actions {
        width: 100%;
    }

    .qualifications-box {
        padding: 40px 24px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 20px;
    }

    .footer-info-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .carousel-item {
        flex: 0 0 85%;
        width: 85%;
    }

    .trust-logos {
        gap: 30px;
    }
}

/* --- PAGINA CHI SIAMO: RESPONSIVE --- */
@media (max-width: 1200px) {
    .mission-text-grid {
        padding: 0 40px;
        gap: 60px;
    }

    .team-section,
    .key-figures-section {
        padding: 60px 40px;
    }

    .figures-layout {
        gap: 60px;
    }
}

@media (max-width: 1024px) {

    .mission-section,
    .pillars-section,
    .team-section,
    .key-figures-section {
        height: auto;
        min-height: auto;
        padding: 80px 24px;
    }

    .mission-container,
    .team-container,
    .key-figures-container,
    .final-callout-container {
        height: auto;
    }

    .mission-text-grid {
        flex-direction: column;
        gap: 32px;
        padding: 0;
    }

    .mission-title-col {
        min-width: 100%;
    }

    .mission-desc-col {
        max-width: 100%;
    }

    .mission-images-grid {
        margin-top: 60px;
    }

    .mission-images-grid img {
        height: 400px;
    }

    .pillar-card {
        flex: 0 0 calc(100% - 40px);
        width: calc(100% - 40px);
        height: auto;
        min-height: 400px;
        padding: 40px;
    }

    .team-header-grid {
        flex-direction: column;
        gap: 32px;
    }

    .team-image-container img {
        height: 400px;
    }

    .team-departments-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .figures-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .callout-content-flex {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .mission-title {
        font-size: 28px;
    }

    .mission-desc-col p {
        font-size: 18px;
    }

    .figure-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .figure-number {
        font-size: 48px;
    }

    .quad-side {
        display: none;
    }

    /* Better to hide on very small screens to avoid clutter */
    .visitors {
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .footer-info-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* --- PAGE: CONTATTI --- */
.contact-hero-section {
    padding: 128px 0 80px;
}

.contact-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-header-flex .header-left h1 {
    font-size: 40px;
    line-height: 1.1;
    color: var(--brand-blue);
    font-weight: 600;
    font-family: 'Figtree', sans-serif;
}

.contact-header-flex .header-right {
    max-width: 480px;
}

.contact-header-flex .header-right p {
    font-size: 1.25rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.contact-form-section {
    background-color: var(--white);
    padding-bottom: 120px;
}

.form-container-blue {
    background-color: var(--bg-light-blue);
    padding: 60px;
    border-radius: 4px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-column .form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--brand-blue);
    border-radius: 0;
    background: var(--white);
    font-size: 1rem;
    color: var(--brand-blue);
}

.form-group input::placeholder {
    color: #A0A0A0;
}

.form-select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--brand-blue);
    border-radius: 0;
    background: var(--white);
    font-size: 1rem;
    color: var(--brand-blue);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230A1C4E' d='M1 4l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px;
    cursor: pointer;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: none;
}

.privacy-note {
    max-width: 450px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-gray);
    cursor: pointer;
}

.checkbox-container input {
    display: none;
}

.checkbox-container .checkmark {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--brand-blue);
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
}

.checkbox-container input:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

.checkbox-container.shake-error .checkmark {
    border-color: #e63946;
    box-shadow: 0 0 5px rgba(230, 57, 70, 0.3);
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

.dark-blue-btn {
    background-color: var(--brand-blue) !important;
    color: var(--white) !important;
    padding: 16px 36px;
    font-weight: 500;
}

.form-subtext {
    text-align: center;
    margin-top: 40px;
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .contact-header-flex {
        flex-direction: column;
        gap: 32px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-container-blue {
        padding: 40px 24px;
    }

    .form-footer {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
}

/* --- SUCCESS NOTIFICATION --- */
.success-notification {
    text-align: center;
    padding: 40px 0;
    animation: fadeIn 0.6s ease-out;
}

.success-notification h3 {
    font-size: 2.5rem;
    color: var(--brand-blue);
    margin-bottom: 20px;
}

.success-notification p {
    font-size: 1.1rem;
    color: var(--brand-blue);
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto 30px;
    line-height: 1.5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- BUTTON ICONS --- */
.btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    margin-left: 8px;
    /* Padding di 8 rispetto al testo */
    display: inline-block;
    flex-shrink: 0;
}

/* Ensure buttons using icons are flex containers for perfect centering */
.btn,
.btn-outline-blue,
.btn-outline-dark,
.btn-footer-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .btn-icon {
        width: 16px;
        height: 16px;
        margin-left: 6px;
        /* Slightly smaller on mobile */
    }
}

/* --- PAGE: APPALTI --- */
.appalti-top-wrapper {
    background-color: #F2F2F2;
}

.appalti-hero-section {
    padding: 32px 32px 0 32px;
}

.appalti-image-frame {
    width: 100%;
    height: 581px;
    overflow: hidden;
}

.appalti-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.appalti-intro-section {
    padding: 140px 0;
    /* Padding uguale sopra e sotto per centrare il testo */
}

.appalti-flex-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 128px;
    gap: 40px;
}

@media (max-width: 1024px) {
    .appalti-flex-layout {
        flex-direction: column;
        padding: 0 40px;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .appalti-flex-layout {
        padding: 0 24px;
    }
}

.appalti-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #000000;
    /* Nero come richiesto */
    line-height: 1.1;
    margin: 0;
}

.appalti-lead {
    font-size: 1.25rem;
    color: #000000;
    /* Nero come richiesto */
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 1024px) {
    .appalti-hero-section {
        padding: 16px 16px 0 16px;
    }

    .appalti-image-frame {
        height: 400px;
    }

    .appalti-intro-section {
        padding: 60px 24px;
    }

    .appalti-flex-layout {
        flex-direction: column;
        gap: 32px;
    }

    .appalti-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .appalti-image-frame {
        height: 300px;
    }
}

/* --- FILTERS BAR --- */
.filter-bar {
    background: #EDF5FD;
    /* Celestino più chiaro e delicato */
    padding: 48px 128px;
    border-top: 1px solid rgba(10, 28, 78, 0.05);
    border-bottom: 1px solid rgba(10, 28, 78, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.filter-label {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--brand-blue);
}

.filter-controls {
    display: flex;
    gap: 16px;
}

.custom-filter-dropdown {
    position: relative;
    width: 180px;
}

.filter-btn {
    width: 100%;
    padding: 10px 16px;
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    border-radius: 2px;
    font-size: 0.85rem;
    color: var(--brand-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.filter-options {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    width: 260px;
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    display: none;
    padding: 16px;
}

.filter-options.active {
    display: block;
}

.filter-option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--brand-blue);
    border-bottom: 1px solid #F5F5F5;
}

.filter-option-item:last-child {
    border-bottom: none;
}

.filter-option-item input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* --- APPALTI SPECIFIC LAYOUT --- */
.project-icon-side {
    flex: 0 0 350px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.project-type-icon {
    width: 291px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.project-card:hover .project-type-icon {
    transform: scale(1.05);
}

.project-body-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 0;
}

.project-text-side {
    flex: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-anno-block {
    /* Mantiene l'anno in alto */
}

.project-anno-val {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-blue);
    margin-top: 8px;
}

.project-desc-text {
    margin-bottom: 0;
    /* Allineato al bottom del grid */
    line-height: 1.6;
}

.project-footer-row {
    display: flex;
    gap: 120px;
    margin-top: 64px;
    /* Padding richiesto rispetto alle immagini */
}

.footer-meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-meta-val {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-blue);
}

.footer-meta-label {
    font-size: 0.85rem;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.appalti-list {
    background-color: var(--white);
    padding-top: 0;
    /* Lo spazio è ora gestito individualmente dalle card */
    padding-bottom: 48px;
    /* Coerente con il padding del separatore */
}

.appalti-list .project-card:last-child {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .project-body-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-text-side {
        gap: 24px;
        justify-content: flex-start;
    }

    .project-footer-row {
        flex-direction: column;
        gap: 32px;
        margin-top: 40px;
    }

    .filter-bar {
        padding: 20px 24px;
    }

    .filter-controls {
        flex-wrap: wrap;
    }

    .custom-filter-dropdown {
        width: calc(50% - 8px);
    }

    .about-hero-box {
        height: auto;
        min-height: auto;
        padding: 80px 40px;
    }
}

@media (max-width: 768px) {
    .about-hero-box {
        padding: 60px 24px;
    }
}

/* --- RESPONSIVE PILLARS --- */
@media (max-width: 1024px) {
    .pillars-section {
        height: auto;
        padding: 80px 0;
    }

    .pillars-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 15px;
        padding: 0 24px;
        box-sizing: border-box;
    }

    .pillars-carousel-track {
        padding-left: 24px;
    }

    .header-left {
        flex: 1;
        min-width: 0;
    }

    .pillars-main-title {
        white-space: normal;
        word-wrap: break-word;
        margin-bottom: 10px;
    }

    .carousel-arrows {
        display: flex;
        gap: 10px;
        flex-shrink: 0;
        margin-left: 0;
    }

    .pillar-card {
        flex: 0 0 85vw;
        width: 85vw;
        height: auto;
        min-height: 380px;
        padding: 40px;
    }

    .pillar-icon {
        top: 30px;
        right: 30px;
        width: 60px;
    }
}

@media (max-width: 768px) {
    .pillars-main-title {
        font-size: 22px;
    }

    .pillars-header {
        gap: 15px;
    }

    .arrow-btn {
        width: 40px;
        height: 40px;
    }

    .pillar-card {
        flex: 0 0 90vw;
        width: 90vw;
        padding: 30px;
    }

    .pillar-card h3 {
        font-size: 20px;
    }

    .pillar-card p {
        font-size: 1rem;
    }
}

/* --- FINAL CALLOUT SECTION --- */
.final-callout {
    background-color: var(--bg-light-blue);
    padding: 80px 128px 120px 128px;
}

.final-callout .split-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
}

.final-callout .text-side {
    flex: 1;
}

.final-callout .section-label {
    margin-bottom: 24px;
    display: block;
    opacity: 0.7;
}

.final-callout h2 {
    font-size: 36px;
    line-height: 1.2;
    color: var(--brand-blue);
    margin-bottom: 40px;
    font-weight: 600;
}

.final-callout .image-side {
    flex: 0 0 350px;
    text-align: right;
}

.final-callout .btn-primary {
    background-color: var(--white);
    color: var(--brand-blue);
    border: 1px solid var(--brand-blue);
}

.final-callout .btn-primary:hover {
    background-color: var(--brand-blue);
    color: var(--white);
}

.callout-main-icon {
    width: 291px;
    height: auto;
}

@media (max-width: 1024px) {
    .final-callout {
        padding: 80px 40px;
    }

    .final-callout .split-layout {
        flex-direction: column;
        text-align: center;
    }

    .final-callout .image-side {
        flex: 1;
        width: 100%;
        margin-top: 40px;
        text-align: center;
    }

    .callout-main-icon {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .final-callout {
        padding: 60px 24px;
    }
}

.pillars-carousel-track {
    margin-left: 0 !important;
}

/* --- SERVIZI PAGE STYLES --- */
.attivita-images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.attivita-images-grid img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .attivita-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .attivita-images-grid img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .attivita-images-grid {
        grid-template-columns: 1fr;
    }

    .attivita-images-grid img {
        height: 300px;
    }
}

/* --- CERTIFICAZIONI PAGE STYLES --- */
.btn-cert-download,
.btn-cert-request {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 140px;
    padding: 10px 16px;
    border: 1px solid #CCCCCC;
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #000000;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-cert-download:hover,
.btn-cert-request:hover {
    border-color: var(--brand-blue);
    background-color: #F5F9FD;
}

.btn-icon-cert {
    width: 16px;
    height: 16px;
    margin-left: 12px;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .certifications-pillars-section div,
    .certificazioni-final-callout div {
        flex-direction: column !important;
        gap: 32px !important;
        text-align: center !important;
    }
    
    .certifications-pillars-section .container > div:last-child {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 32px !important;
    }

    .certifications-table-section .container > div {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        text-align: left !important;
    }
    
    .certifications-table-section .container > div:first-child {
        display: none !important; /* Hide headers on mobile */
    }

    .certifications-table-section .container > div > div:last-child {
        text-align: left !important;
        margin-top: 8px;
    }

    .certificazioni-final-callout img {
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .certifications-pillars-section .container > div:last-child {
        grid-template-columns: 1fr !important;
    }
}

/* --- LANGUAGE SWITCHER --- */
.top-bar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.language-switcher a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease, font-weight 0.2s ease;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
}

.language-switcher a:hover,
.language-switcher a.active {
    color: var(--white);
    font-weight: 700;
}

.language-switcher .separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}