/* =====================================================
   CONFIEM — STYLE.CSS
   CSS ORGANIZZATO E OTTIMIZZATO
===================================================== */


/* =====================================================
   01. RESET E VARIABILI
===================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #f8fafc;
    color: #10243e;
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

:root {
    --blue-dark: #294B70;
    --blue: #294B70;
    --blue-light: #294B70;
    --sky: #dff3f8;
    --white: #ffffff;
    --gray: #294B70;
    --line: #e3eaf0;
    --gold: #B99A5B;
}
/* =====================================================
   02. HEADER
===================================================== */

header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);

    width: calc(100% - 80px);
    max-width: 1450px;
    height: 76px;

    padding: 0 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 22px;

    box-shadow: 0 15px 50px rgba(11, 31, 58, 0.08);

    z-index: 1000;
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 80px;
    min-width: 0;
}

.logo-circle {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--blue-dark);
    color: #ffffff;

    font-family: "Playfair Display", serif;
    font-size: 40px;
}

.logo img {
    width: 150px;
    height: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong {
    font-size: 9px;
    letter-spacing: 1.5px;
}

.logo-text span {
    font-size: 9px;
    color: var(--gray);
}

.logo-text small {
    font-size: 6px;
    letter-spacing: 2px;
    color: var(--blue-light);
}


/* MENU */

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    font-size: 13px;
    font-weight: 500;
    color: #263b55;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--blue-light);
}

.menu-button {
    display: none;

    border: none;
    background: none;

    font-size: 25px;
    cursor: pointer;

    color: var(--blue-dark);
}


/* =====================================================
   03. HERO
===================================================== */

.hero {
    min-height: 100vh;

    padding: 160px 8% 100px;

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;

    gap: 50px;

    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 20%,
            #dff5fa,
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 80%,
            #edf6fa,
            transparent 25%
        ),
        #f8fafc;
}

.hero::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    border-radius: 50%;

    border: 1px solid rgba(220, 195, 31, 0.839);

    right: -250px;
    bottom: -300px;
}

.hero-content {
    max-width: 720px;

    position: relative;
    z-index: 2;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 10px;
    letter-spacing: 2.5px;
    font-weight: 700;

    color: var(--blue-light);
}

.eyebrow::before {
    content: "";

    width: 30px;
    height: 1px;

    background: var(--blue-light);
}

.hero h1 {
    margin-top: 25px;

    font-family: "Playfair Display", serif;

    font-size: clamp(54px, 6vw, 88px);
    line-height: 0.98;

    letter-spacing: -3px;
    font-weight: 400;

    color: var(--blue-dark);
}

.hero h1 span {
    color: var(--blue-light);
    font-style: italic;
}

.hero-description {
    max-width: 520px;
    margin-top: 32px;

    color: #66768a;

    font-size: 16px;
    line-height: 1.8;
}


/* HERO BUTTONS */

.buttons {
    display: flex;
    gap: 13px;
    margin-top: 38px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 25px;

    border-radius: 100px;

    font-size: 12px;
    font-weight: 600;

    transition: 0.35s ease;
}

.button-primary {
    background: var(--blue-dark);
    color: #ffffff;

    box-shadow: 0 10px 25px rgba(11, 31, 58, 0.16);
}

.button-primary:hover {
    background: var(--blue-light);
    transform: translateY(-3px);
}

.button-secondary {
    background: #ffffff;
    border: 1px solid #dce5ec;
}

.button-secondary:hover {
    border-color: var(--blue-light);
    color: var(--blue-light);
    transform: translateY(-3px);
}


/* =====================================================
   04. HERO GRAPHIC
===================================================== */

.hero-graphic {
    height: 570px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.circle {
    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(94, 187, 212, 0.35);
}

.circle-one {
    width: 470px;
    height: 470px;
}

.circle-two {
    width: 330px;
    height: 330px;

    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.95),
            rgba(223, 245, 250, 0.75)
        );

    box-shadow:
        inset 0 0 80px rgba(94, 187, 212, 0.12);

    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

.connection {
    width: 230px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--blue-light),
            transparent
        );

    transform: rotate(-25deg);
}

.europe {
    position: absolute;

    top: 100px;
    right: 90px;

    font-size: 10px;
    letter-spacing: 2.5px;
    font-weight: 700;
}

.mediterranean {
    position: absolute;

    bottom: 100px;
    left: 70px;

    font-size: 10px;
    letter-spacing: 2.5px;
    font-weight: 700;

    color: var(--blue-light);
}


/* =====================================================
   05. SEZIONI GENERALI
===================================================== */

section:not(.hero) {
    padding: 130px 8%;
}

.label {
    font-size: 10px;
    letter-spacing: 2.5px;
    font-weight: 700;

    color: var(--blue-light);
}

h2 {
    font-family: "Playfair Display", serif;

    font-size: clamp(40px, 4vw, 62px);

    line-height: 1.08;
    font-weight: 400;

    letter-spacing: -1.5px;
}

h2 span {
    color: var(--blue-light);
    font-style: italic;
}


/* =====================================================
   06. CHI SIAMO
===================================================== */

#chi-siamo {
    background: #ffffff;
}

.about-section {
    width: 100%;
}

.intro {
    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    gap: 120px;

    margin-top: 35px;
}

.intro p {
    color: var(--gray);

    font-size: 16px;
    line-height: 1.9;
}

.link {
    display: inline-block;

    margin-top: 25px;

    font-size: 13px;
    font-weight: 600;

    color: var(--blue-dark);

    transition: 0.3s ease;
}

.link:hover {
    color: var(--blue-light);
    transform: translateX(5px);
}


/* FOTO CHI SIAMO */

.about-image {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    margin-top: 55px;

    overflow: visible;
}

.about-image img {
    width: 65%;
    max-width: 850px;

    height: auto;

    display: block;

    object-fit: contain;

    margin-top: -10px;

    transition: transform 0.8s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}




/* =========================
   BOX CHI SIAMO
========================= */

.about-boxes {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;

    width: 100%;
    margin: 50px auto 0;
}


/* SINGOLO BOX */

.about-box {
    flex: 0 0 290px;

    width: 290px;
    height: 290px;
    min-height: 290px;

    padding: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    background: #ffffff;
    border-radius: 24px;

    box-shadow: 0 15px 40px rgba(11, 31, 58, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* BOX BLU */

.about-box.dark {
    background: #0b1f3a;
    color: #ffffff;
}


/* CONTENUTO */

.box-content {
    width: 100%;
}


/* TITOLO */

.about-box h3 {
    margin: 0 0 16px;

    font-family: "DM Sans", sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}


/* TESTO */

.about-box p {
    margin: 0;

    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    line-height: 1.55;

    color: #52657a;
}




/* TESTO BOX BLU */ 
.about-box.dark p { 
    color: #dff3f8; 
} 
/* HOVER */ 
.about-box:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 20px 45px rgba(11, 31, 58, 0.14);
 } 
 /* ========================= TABLET ========================= */ 
 @media (max-width: 1100px) { 
    .about-boxes {
         flex-wrap: wrap;
          max-width: 760px; 
        }
     .about-box { 
        flex: 0 0 240px; 
     } 
    }
     /* ========================= MOBILE ========================= */
      @media (max-width: 600px) { 
        .about-boxes {
             flex-direction: column; 
             align-items: center;
              gap: 20px; 
            } 
        .about-box {
            width: 290px;
             height: 290px;
              min-height: 290px; 
              flex: 0 0 290px; 
            } 
    }




/* =====================================================
   07. ATTIVITÀ
===================================================== */

#attivita {
    background: #f4f8fa;
}

.section-title {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 50px;

    margin-bottom: 65px;
}

.section-title p {
    max-width: 350px;

    color: var(--gray);

    font-size: 14px;
}

.about-description {
    width: 100%;
    max-width: 1250px;
    margin-top: 28px;
}

.about-description p {
    max-width: none;

    margin: 0;

    font-family: "DM Sans", sans-serif;
    font-size: 17px;
    line-height: 1.65;

    color: #52657a;
}
.cards {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.card {
    min-height: 350px;

    padding: 38px;

    background: #ffffff;

    border: 1px solid #e6edf2;

    position: relative;
    overflow: hidden;

    transition: 0.4s ease;
}

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

    box-shadow:
        0 25px 60px rgba(11, 31, 58, 0.09);
}

.card.dark {
    background: var(--blue-dark);
    color: #ffffff;

    border: none;
}

.number {
    position: absolute;

    right: 28px;
    top: 28px;

    color: var(--blue-light);

    font-size: 10px;
}

.icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eef8fa;
    color: var(--blue-light);

    font-size: 22px;

    margin-bottom: 50px;
}

.card.dark .icon {
    background: rgba(255, 255, 255, 0.1);
}

.card h3 {
    font-family: "Playfair Display", serif;

    font-size: 28px;
    font-weight: 400;
}

.card p {
    margin-top: 13px;

    color: #758497;

    font-size: 13px;
}

.card.dark p {
    color: #bdcad7;
}

.card a {
    display: inline-block;

    margin-top: 30px;

    color: var(--blue-light);

    font-size: 12px;
    font-weight: 600;
}


/* =====================================================
   08. PONTE EURO-MEDITERRANEO
===================================================== */

.med {
    min-height: 650px;

    background:
        radial-gradient(
            circle at 80% 50%,
            #173b63,
            transparent 35%
        ),
        var(--blue-dark);

    color: #ffffff;

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 80px;

    overflow: hidden;

    position: relative;
}

.med-text {
    max-width: 570px;
}

.med-text h2 {
    margin: 22px 0;

    font-size: clamp(48px, 5vw, 70px);
}

.med-text p {
    max-width: 480px;

    color: #aebdcb;

    line-height: 1.8;

    margin-bottom: 35px;
}


/* MAPPA */

.map {
    height: 450px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.1);

    position: relative;

    box-shadow:
        0 0 100px rgba(94, 187, 212, 0.08);
}

.map::before {
    content: "";

    position: absolute;

    inset: 45px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.08);
}

.map::after {
    content: "";

    position: absolute;

    inset: 100px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dot {
    position: absolute;

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: var(--blue-light);

    box-shadow:
        0 0 0 7px rgba(94, 187, 212, 0.08),
        0 0 25px var(--blue-light);

    z-index: 2;
}

.dot1 {
    top: 25%;
    left: 35%;
}

.dot2 {
    top: 45%;
    left: 65%;
}

.dot3 {
    top: 65%;
    left: 40%;
}

.dot4 {
    top: 35%;
    left: 80%;
}


/* IMMAGINE PONTE */

.med-image {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.med-image img {
    width: 90%;
    max-width: 450px;

    height: auto;

    display: block;

    object-fit: contain;
}


/* =====================================================
   09. SERVIZI
===================================================== */

#servizi {
    background: #ffffff;
}

.services-title {
    max-width: 700px;
    margin-top: 20px;
}

.service-list {
    margin-top: 70px;

    border-top: 1px solid var(--line);
}

.service {
    display: grid;

    grid-template-columns: 80px 1fr 1.1fr;

    gap: 30px;

    align-items: center;

    padding: 35px 10px;

    border-bottom: 1px solid var(--line);

    transition: 0.3s ease;
}

.service:hover {
    padding-left: 20px;
    background: #fbfdfe;
}

.service span {
    color: var(--blue-light);
    font-size: 10px;
}

.service h3 {
    font-family: "Playfair Display", serif;

    font-size: 28px;
    font-weight: 400;
}

.service p {
    color: var(--gray);
    font-size: 13px;
}


/* =====================================================
   10. SERVIZI — CAROSELLO A4
===================================================== */

.services-section {
    padding: 140px 8%;

    background: #f8fbfc;

    overflow: hidden;
}

.services-header {
    margin-bottom: 70px;
}

.services-header .section-number {
    font-size: 10px;
    letter-spacing: 3px;

    color: var(--blue-light);

    font-weight: 700;

    margin-bottom: 35px;
}

.services-heading {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 80px;
}

.services-heading h2 {
    margin: 0;

    font-family: "Playfair Display", serif;

    font-size: clamp(50px, 6vw, 80px);

    line-height: 0.95;

    font-weight: 400;

    color: var(--blue-dark);
}

.services-heading h2 span {
    color: var(--blue-light);
    font-style: italic;
}

.services-heading p {
    max-width: 370px;

    margin: 0;

    color: var(--gray);

    font-size: 14px;
    line-height: 1.8;
}


/* CAROUSEL */

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

.services-track {
    display: flex;

    gap: 25px;

    transition:
        transform 0.65s cubic-bezier(.2, .7, .2, 1);
}

.service-card {
    flex: 0 0 calc((100% - 50px) / 3);

    min-width: 0;
}

.service-image {
    position: relative;

    width: 100%;

    aspect-ratio: 210 / 297;

    overflow: hidden;

    background: #eaf4f7;
}

.service-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.7s cubic-bezier(.2, .7, .2, 1);
}

.service-card:hover .service-image img {
    transform: scale(1.035);
}

.service-number {
    position: absolute;

    top: 18px;
    left: 18px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);

    backdrop-filter: blur(8px);

    font-family: "Playfair Display", serif;

    font-size: 14px;

    color: var(--blue-dark);
}

.service-info {
    padding: 20px 3px 0;
}

.service-info small {
    font-size: 8px;

    letter-spacing: 2px;

    color: var(--blue-light);

    font-weight: 700;
}

.service-info h3 {
    margin: 7px 0 0;

    font-family: "Playfair Display", serif;

    font-size: 25px;

    font-weight: 400;

    color: var(--blue-dark);
}


/* CONTROLLI */

.services-controls {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: 45px;

    padding-top: 25px;

    border-top: 1px solid var(--line);
}

.service-arrow {
    width: 54px;
    height: 54px;

    border-radius: 50%;

    border: 1px solid rgba(23, 59, 99, 0.25);

    background: rgba(255, 255, 255, 0.85);

    color: var(--blue-dark);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    font-weight: 300;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;

    backdrop-filter: blur(10px);
}

.service-arrow:hover {
    background: var(--blue-dark);

    color: #ffffff;

    border-color: var(--blue-dark);

    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(11, 31, 58, 0.18);
}

.service-arrow:active {
    transform: translateY(-1px) scale(0.96);
}

.services-progress {
    display: flex;

    align-items: center;

    gap: 18px;

    font-size: 13px;

    color: var(--gray);

    letter-spacing: 0.08em;
}

.services-progress span:first-child {
    color: var(--blue-dark);
    font-weight: 600;
}

.progress-line {
    width: 100px;
    height: 1px;

    background: var(--line);

    position: relative;

    overflow: hidden;
}

.progress-line::after {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 30%;
    height: 100%;

    background: var(--blue-light);

    transition: width 0.4s ease;
}


/* =====================================================
   11. CONVENZIONI
===================================================== */

.convenzioni-carousel {
    width: 100%;

    margin-top: 70px;

    overflow: hidden;
}

.convenzioni-track {
    display: flex;

    gap: 30px;

    width: max-content;

    transition:
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.convenzione-card {
    width: 430px;

    flex-shrink: 0;

    background: #ffffff;

    border: 1px solid var(--line);

    box-shadow:
        0 18px 45px rgba(11, 31, 58, 0.08);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.convenzione-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 25px 55px rgba(11, 31, 58, 0.13);
}

.convenzione-image {
    width: 100%;
    height: 300px;

    overflow: hidden;

    background: var(--sky);
}

.convenzione-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.6s ease;
}

.convenzione-card:hover .convenzione-image img {
    transform: scale(1.035);
}

.convenzione-content {
    padding: 28px 30px 32px;
}

.convenzione-number {
    font-size: 13px;

    letter-spacing: 2px;

    color: var(--blue-light);

    font-weight: 600;

    margin-bottom: 12px;
}

.convenzione-content h3 {
    margin: 0 0 15px;

    font-size: 24px;

    line-height: 1.2;

    font-weight: 600;

    color: var(--blue-dark);
}

.convenzione-content p {
    margin: 0;

    color: var(--gray);

    font-size: 15px;

    line-height: 1.7;
}


/* CONTROLLI */

.convenzioni-controls {
    display: flex;

    align-items: center;
    justify-content: space-between;

    width: 100%;

    margin-top: 45px;
}

.convenzione-arrow {
    width: 52px;
    height: 52px;

    border: 1px solid var(--line);

    background: #ffffff;

    color: var(--blue-dark);

    font-size: 21px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        border-color 0.3s ease;
}

.convenzione-arrow:hover {
    background: var(--blue-dark);

    color: #ffffff;

    border-color: var(--blue-dark);

    transform: translateY(-2px);
}

.convenzione-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
}

.convenzioni-progress {
    display: flex;

    align-items: center;

    gap: 18px;

    color: var(--blue-dark);

    font-size: 13px;

    letter-spacing: 1px;
}

.convenzioni-progress-line {
    width: 100px;
    height: 1px;

    background: var(--line);

    display: block;

    position: relative;
}


/* =====================================================
   12. NEWS / PRESS
===================================================== */

#news {
    background: #f4f8fa;
}

.news-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;

    margin-top: 60px;
}

.news-card {
    background: #ffffff;

    overflow: hidden;

    transition: 0.4s ease;
}

.news-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 25px 60px rgba(11, 31, 58, 0.08);
}

.news-image {
    height: 300px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #dceff4,
            #b8dfe8
        );

    color: var(--blue-dark);

    font-family: "Playfair Display", serif;

    font-size: 32px;
}

.news-content {
    padding: 30px;
}

.news-content small {
    color: var(--blue-light);

    font-size: 9px;

    letter-spacing: 1.5px;
}

.news-content h3 {
    font-family: "Playfair Display", serif;

    font-size: 26px;

    font-weight: 400;

    line-height: 1.25;

    margin: 15px 0 25px;
}


/* =====================================================
   13. NEWS TICKER
===================================================== */

.news-ticker {
    position: relative;

    margin-top: 116px;

    width: 100%;
    height: 50px;

    display: flex;
    align-items: center;

    background: var(--blue-dark);

    color: #ffffff;

    overflow: hidden;

    z-index: 900;
}

.news-ticker-label {
    height: 100%;

    display: flex;
    align-items: center;

    padding: 0 28px;

    background: var(--blue-light);

    color: var(--blue-dark);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;

    white-space: nowrap;

    position: relative;

    z-index: 2;
}

.news-ticker-window {
    flex: 1;

    overflow: hidden;

    height: 100%;

    display: flex;
    align-items: center;
}

.news-ticker-track {
    display: inline-flex;

    align-items: center;

    gap: 60px;

    white-space: nowrap;

    animation: newsScroll 120s linear infinite;
}

.news-ticker-item {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    color: rgba(255, 255, 255, 0.92);

    font-size: 13px;

    text-decoration: none;

    transition: color 0.3s ease;
}

.news-ticker-item:hover {
    color: var(--blue-light);
}

.news-ticker-item::before {
    content: "•";

    color: var(--blue-light);

    font-size: 18px;
}

.news-source {
    font-size: 10px;

    color: rgba(255, 255, 255, 0.5);

    text-transform: uppercase;

    letter-spacing: 0.8px;
}

@keyframes newsScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* =====================================================
   14. GALLERY / DOCUMENTI INTERATTIVI
===================================================== */

.documents-section {
    padding: 130px 7%;
    background: #ffffff;
}

.documents-header {
    margin-bottom: 80px;
}

.section-number {
    font-size: 10px;

    letter-spacing: 3px;

    font-weight: 700;

    color: var(--blue-light);

    margin-bottom: 35px;
}

.documents-title {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 80px;
}

.documents-title h2 {
    font-family: "Playfair Display", serif;

    font-size: clamp(45px, 6vw, 78px);

    font-weight: 400;

    line-height: 0.95;

    color: var(--blue-dark);

    margin: 0;
}

.documents-title h2 span {
    color: var(--blue-light);
    font-style: italic;
}

.documents-title p {
    max-width: 360px;

    font-size: 14px;

    line-height: 1.8;

    color: var(--gray);

    margin: 0;
}


/* INTERACTIVE DOCUMENTS */

.interactive-documents {
    padding: 140px 8%;
    background: #ffffff;
}

.interactive-header {
    margin-bottom: 80px;
}

.interactive-header .section-number {
    font-size: 10px;

    letter-spacing: 3px;

    color: var(--blue-light);

    font-weight: 700;

    margin-bottom: 35px;
}

.interactive-header h2 {
    margin: 0;

    font-family: "Playfair Display", serif;

    font-size: clamp(50px, 6vw, 82px);

    line-height: 0.95;

    font-weight: 400;

    color: var(--blue-dark);
}

.interactive-header h2 span {
    color: var(--blue-light);
    font-style: italic;
}

.interactive-content {
    display: grid;

    grid-template-columns: 0.8fr 1.5fr;

    gap: 90px;

    align-items: center;
}

.document-menu {
    border-top: 1px solid #dce7eb;
}

.document-item {
    display: grid;

    grid-template-columns: 50px 1fr 40px;

    align-items: center;

    gap: 15px;

    padding: 28px 5px;

    border-bottom: 1px solid #dce7eb;

    cursor: pointer;

    transition: 0.35s ease;
}

.document-item > span {
    font-family: "Playfair Display", serif;

    font-size: 22px;

    color: #b7c7ce;

    transition: 0.3s;
}

.document-item small {
    font-size: 8px;

    letter-spacing: 2px;

    color: #8da1aa;

    transition: 0.3s;
}

.document-item h3 {
    margin: 5px 0 0;

    font-family: "Playfair Display", serif;

    font-size: 27px;

    font-weight: 400;

    color: #9aaab1;

    transition: 0.3s;
}

.document-item b {
    font-size: 18px;

    font-weight: 400;

    color: #c1ced3;

    transition: 0.3s;
}

.document-item.active > span,
.document-item.active small {
    color: var(--blue-light);
}

.document-item.active h3,
.document-item.active b {
    color: var(--blue-dark);
}

.document-item:hover h3 {
    color: var(--blue-dark);
}

.document-item:hover b {
    transform: translate(4px, -4px);
}

.document-display {
    position: relative;
}

.display-image {
    width: 100%;

    overflow: hidden;

    background: #edf7f9;
}

.display-image img {
    display: block;

    width: 100%;
    height: auto;

    transition:
        opacity 0.35s ease,
        transform 0.7s ease;
}

.display-caption {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-top: 18px;

    font-size: 9px;

    letter-spacing: 2px;
}

.display-caption span {
    color: var(--blue-light);
    font-weight: 700;
}

.display-caption p {
    margin: 0;
    color: #9aaab1;
}


/* =====================================================
   15. SEDI
===================================================== */

.sedi-container {
    margin-top: 70px;
    width: 100%;
}

.sedi-label {
    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.8px;

    color: #0b2d45;

    margin-bottom: 25px;
}

.regioni {
    display: flex;

    flex-wrap: nowrap;

    gap: 0;

    width: 100%;

    border-top: 1px solid rgba(11, 45, 69, 0.20);

    border-bottom: 1px solid rgba(11, 45, 69, 0.20);

    overflow-x: auto;

    scrollbar-width: none;
}

.regioni::-webkit-scrollbar {
    display: none;
}

.regione {
    flex: 0 0 auto;

    background: transparent;

    border: none;

    padding: 22px 24px;

    font-family: inherit;

    font-size: 12px;

    font-weight: 500;

    color: #183b52;

    cursor: pointer;

    position: relative;

    transition:
        color 0.3s ease,
        background 0.3s ease;
}

.regione::after {
    content: "";

    position: absolute;

    left: 20px;
    right: 20px;
    bottom: 0;

    height: 2px;

    background: #0b2d45;

    transform: scaleX(0);

    transform-origin: center;

    transition: transform 0.3s ease;
}

.regione:hover {
    color: #0b2d45;
    background: rgba(11, 45, 69, 0.04);
}

.regione.active {
    color: #0b2d45;
    font-weight: 700;
}

.regione.active::after {
    transform: scaleX(1);
}

.contenuto-regione {
    min-height: 150px;

    border-bottom: 1px solid rgba(11, 45, 69, 0.20);

    overflow: hidden;

    transition:
        max-height 0.5s ease,
        opacity 0.4s ease;
}

.messaggio-sedi {
    padding: 45px 0;

    font-size: 13px;

    color: #6d7d87;
}

.regione-titolo {
    padding-top: 35px;

    margin-bottom: 25px;

    font-size: 18px;

    font-weight: 600;

    color: #0b2d45;
}

.citta-lista {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    padding-bottom: 35px;
}

.citta {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 13px 18px;

    border: 1px solid rgba(11, 45, 69, 0.18);

    background: #ffffff;

    color: #183b52;

    font-size: 12px;

    text-decoration: none;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.citta::after {
    content: "→";

    transition: transform 0.3s ease;
}

.citta:hover {
    background: #0b2d45;

    color: #ffffff;

    border-color: #0b2d45;
}

.citta:hover::after {
    transform: translateX(4px);
}


/* =====================================================
   16. STATUTO + REGOLAMENTO
===================================================== */

.statuto-section {
    position: relative;

    padding: 100px 8%;

    background: #ffffff;
}


/* TITOLO */

.statuto-heading {
    max-width: 700px;

    display: flex;
    flex-direction: column;
}

.statuto-heading h2 {
    margin: 0;

    font-family: "Playfair Display", serif;

    font-size: clamp(40px, 4vw, 62px);

    line-height: 1.08;

    font-weight: 400;

    letter-spacing: -1.5px;

    color: var(--blue-dark);
}

.statuto-heading h2 span {
    display: block;

    color: var(--blue-light);

    font-style: italic;
}

.statuto-heading p {
    margin-top: 60px;

    max-width: 370px;

    font-size: 14px;

    line-height: 1.8;

    color: var(--gray);
}


/* =====================================================
   DOCUMENTI AFFIANCATI
===================================================== */

.documenti-statuto {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 35px;

    margin-top: 55px;
}


/* =====================================================
   CARD STATUTO / REGOLAMENTO
===================================================== */

.statuto-card {
    position: relative;

    width: 100%;

    min-width: 0;

    min-height: 360px;

    padding: 55px 60px;

    background: #071d49;

    border-radius: 4px;

    box-shadow:
        0 25px 60px rgba(7, 29, 73, 0.15);

    color: #ffffff;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.statuto-card-label {
    font-size: 11px;

    letter-spacing: 2px;

    font-weight: 700;

    color: #73c8ef;

    margin-bottom: 18px;
}

.statuto-card h3 {
    margin: 0;

    font-size: 32px;

    line-height: 1.2;

    font-weight: 600;
}

.statuto-card p {
    margin: 15px 0 30px;

    max-width: 600px;

    font-size: 16px;

    line-height: 1.7;

    color: rgba(255, 255, 255, 0.75);
}


/* PULSANTE */

.statuto-btn {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    width: fit-content;

    padding: 14px 24px;

    border: none;

    border-radius: 3px;

    background: #73c8ef;

    color: #071d49;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.statuto-btn:hover {
    background: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.15);
}


/* REGOLAMENTO PDF */

#regolamentoPDF {
    width: 100%;
    height: 100%;

    border: none;

    background: #ffffff;
}


/* =====================================================
   17. MODALE STATUTO
===================================================== */

.statuto-modal {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(8, 23, 54, 0.88);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.statuto-modal.active {
    opacity: 1;
    visibility: visible;
}

.statuto-modal-content {
    position: relative;

    width: min(900px, 90vw);

    height: min(88vh, 900px);

    display: flex;

    align-items: center;
    justify-content: center;
}

.statuto-page-container {
    position: relative;

    height: 100%;

    width: auto;

    max-width: calc(100% - 120px);

    display: flex;

    align-items: center;
    justify-content: center;

    background: #ffffff;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45);

    overflow: hidden;
}

.statuto-page-container img {
    display: block;

    width: auto;

    height: 100%;

    max-width: 100%;

    object-fit: contain;

    user-select: none;

    transition:
        opacity 0.2s ease,
        transform 0.25s ease;
}


/* CHIUDI */

.statuto-close {
    position: absolute;

    top: -10px;
    right: -10px;

    z-index: 10;

    width: 45px;
    height: 45px;

    border: 1px solid rgba(255, 255, 255, 0.35);

    border-radius: 50%;

    background: rgba(7, 29, 73, 0.95);

    color: #ffffff;

    font-size: 28px;

    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.statuto-close:hover {
    background: #B99A5B;
    color: #FFFFFF;
    transform: rotate(90deg);
}


/* FRECCE */

.statuto-arrow {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 10;

    width: 52px;
    height: 52px;

    border: 1px solid rgba(255, 255, 255, 0.35);

    border-radius: 50%;

    background: rgba(7, 29, 73, 0.9);

    color: #ffffff;

    font-size: 22px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.statuto-arrow:hover {
    background: #B99A5B;
    color: #FFFFFF;
    border-color: #B99A5B;
}

.statuto-prev {
    left: 0;
}

.statuto-next {
    right: 0;
}

.statuto-prev:hover {
    transform: translateY(-50%) translateX(-3px);
}

.statuto-next:hover {
    transform: translateY(-50%) translateX(3px);
}


/* CONTATORE */

.statuto-counter {
    position: absolute;

    bottom: -35px;

    left: 50%;

    transform: translateX(-50%);

    color: rgba(255, 255, 255, 0.8);

    font-size: 13px;

    letter-spacing: 1px;
}


/* =====================================================
   18. COMUNICATO MODALE
===================================================== */

.comunicato-modal {
    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.75);

    z-index: 9999;

    justify-content: center;
    align-items: center;

    padding: 30px;
}

.comunicato-box {
    position: relative;

    max-width: 900px;
    max-height: 90vh;
}

.comunicato-box img {
    display: block;

    max-width: 100%;
    max-height: 85vh;

    width: auto;
    height: auto;

    object-fit: contain;
}

.chiudi-comunicato {
    position: absolute;

    top: 10px;
    right: 10px;

    width: 40px;
    height: 40px;

    border: none;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.65);

    color: #ffffff;

    font-size: 30px;

    line-height: 35px;

    cursor: pointer;

    z-index: 10000;

    display: flex;

    align-items: center;
    justify-content: center;
}

.chiudi-comunicato:hover {
    background: rgba(0, 0, 0, 0.85);
}


/* =====================================================
   19. CALENDARIO ATTIVITÀ
===================================================== */

.activities-section {
    position: relative;

    padding: 130px 7vw 110px;

    background: #ffffff;
}

.activities-intro {
    margin-bottom: 75px;
}

.activities-label {
    margin-bottom: 28px;

    color: #B99A5B;;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2.5px;
}

.activities-heading {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 60px;
}

.activities-heading h2 {
    margin: 0;

    color: #294B70;

    font-size: clamp(48px, 6vw, 82px);

    line-height: 0.95;

    font-weight: 400;

    letter-spacing: -3px;
}

.activities-heading h2 span {
    color: #B99A5B;
}

.activities-heading p {
    max-width: 430px;

    margin: 0;

    color: var(--gray);

    font-size: 15px;

    line-height: 1.75;
}


/* TOOLBAR */

.activities-toolbar {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

    padding: 20px 0;

    border-top: 1px solid var(--line);

    border-bottom: 1px solid var(--line);
}

.activities-year {
    display: flex;

    align-items: center;

    gap: 18px;
}

.activities-year span {
    min-width: 75px;

    color: var(--blue-dark);

    font-size: 20px;

    font-weight: 600;

    text-align: center;
}

.year-arrow {
    width: 35px;
    height: 35px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--line);

    border-radius: 50%;

    background: #ffffff;

    color: var(--blue-dark);

    font-size: 15px;

    cursor: pointer;

    transition: all 0.25s ease;
}

.year-arrow:hover {
    
 background: #294B70;
    color: #FFFFFF;
    border-color: #294B70;
}

/* FILTRI */

.activities-filters {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 7px;
}

.activity-filter {
    padding: 9px 15px;

    border: 1px solid transparent;

    border-radius: 30px;

    background: transparent;

    color: #294B70;

    font-family: inherit;

    font-size: 11px;

    cursor: pointer;

    transition: all 0.25s ease;
}

.activity-filter:hover {
    color: #B99A5B;
    border-color: #B99A5B;
}

.activity-filter.active {
    background: var(--blue-dark);

    color: #ffffff;
}


/* LISTA */

.activities-list {
    width: 100%;
}

.activity-item {
    display: grid;

    grid-template-columns: 150px minmax(0, 1fr) 170px;

    align-items: center;

    gap: 40px;

    min-height: 155px;

    padding: 25px 0;

    border-bottom: 1px solid var(--line);

    cursor: pointer;

    transition:
        background 0.25s ease,
        padding 0.25s ease;
}

.activity-item:hover {
    background: #f8fbfc;

    padding-left: 20px;
    padding-right: 20px;
}


/* DATA */

.activity-date {
    display: flex;

    flex-direction: column;
}

.activity-day {
    color: var(--blue-dark);

    font-size: 54px;

    line-height: 0.9;

    font-weight: 400;

    letter-spacing: -2px;
}

.activity-month {
    margin-top: 8px;

    color: var(--blue-light);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.activity-weekday {
    margin-top: 4px;

    color: var(--gray);

    font-size: 10px;

    letter-spacing: 1px;
}


/* CONTENUTO */

.activity-content {
    min-width: 0;
}

.activity-category {
    display: inline-block;

    margin-bottom: 9px;

    color: var(--blue-light);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.8px;

    text-transform: uppercase;
}

.activity-title {
    margin: 0 0 9px;

    color: var(--blue-dark);

    font-size: 24px;

    font-weight: 500;

    line-height: 1.2;
}

.activity-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    color: var(--gray);

    font-size: 12px;
}

.activity-meta-separator {
    width: 3px;
    height: 3px;

    background: var(--blue-light);

    border-radius: 50%;
}

.activity-description {
    margin-top: 9px;

    max-width: 650px;

    color: var(--gray);

    font-size: 13px;

    line-height: 1.6;
}


/* AZIONE */

.activity-action {
    display: flex;

    justify-content: flex-end;
}

.activity-more {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: var(--blue-dark);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.3px;

    text-decoration: none;

    text-transform: uppercase;

    white-space: nowrap;
}

.activity-more-arrow {
    font-size: 17px;

    transition: transform 0.25s ease;
}

.activity-item:hover .activity-more-arrow {
    transform: translateX(5px);
}


/* NESSUN EVENTO */

.no-activities {
    display: none;

    padding: 80px 20px;

    text-align: center;

    color: var(--gray);

    font-size: 14px;
}

.no-activities.visible {
    display: block;
}


/* FOOTER CALENDARIO */

.activities-footer {
    display: flex;

    align-items: center;

    gap: 20px;

    padding-top: 35px;

    color: var(--gray);

    font-size: 10px;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}

.footer-line {
    width: 50px;
    height: 1px;

    background: var(--line);
}


/* MODALE CALENDARIO */

.activity-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background: rgba(11, 31, 58, 0.75);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.activity-modal.active {
    opacity: 1;
    visibility: visible;
}

.activity-modal-box {
    position: relative;

    width: 100%;
    max-width: 680px;

    padding: 55px;

    background: #ffffff;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.2);

    transform: translateY(25px);

    transition: transform 0.3s ease;
}

.activity-modal.active .activity-modal-box {
    transform: translateY(0);
}

.activity-modal-close {
    position: absolute;

    top: 18px;
    right: 22px;

    width: 38px;
    height: 38px;

    border: none;

    background: transparent;

    color: var(--blue-dark);

    font-size: 30px;

    line-height: 1;

    cursor: pointer;
}

.modal-activity-category {
    margin-bottom: 15px;

    color: var(--blue-light);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.activity-modal-box h2 {
    margin: 0 0 35px;

    color: var(--blue-dark);

    font-size: 40px;

    font-weight: 400;

    line-height: 1.1;

    letter-spacing: -1px;
}

.modal-activity-details {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    padding: 20px 0;

    border-top: 1px solid var(--line);

    border-bottom: 1px solid var(--line);
}

.modal-activity-details div {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.modal-activity-details span {
    color: var(--gray);

    font-size: 9px;

    letter-spacing: 1.5px;
}

.modal-activity-details strong {
    color: var(--blue-dark);

    font-size: 14px;

    font-weight: 600;
}

.activity-modal-box p {
    margin: 28px 0;

    color: var(--gray);

    font-size: 14px;

    line-height: 1.8;
}

.modal-activity-button {
    display: inline-flex;

    padding: 13px 20px;

    background: var(--blue-dark);

    color: #ffffff;

    text-decoration: none;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 1px;

    text-transform: uppercase;

    transition: background 0.25s ease;
}

.modal-activity-button:hover {
    background: var(--blue);
}


/* =====================================================
   20. CTA
===================================================== */

.cta {
    background: #ffffff;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 50px;
}

.cta p {
    color: var(--gray);
    margin-top: 10px;
}


/* =====================================================
   21. FOOTER
===================================================== */

footer {
    padding: 75px 8% 25px;

    background: #07172b;

    color: #ffffff;
}

.footer-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 80px;

    padding-bottom: 60px;
}

.footer-links {
    display: flex;

    gap: 90px;
}

.footer-column {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.footer-column strong {
    color: var(--blue-light);

    font-size: 9px;

    letter-spacing: 2px;

    margin-bottom: 8px;
}

.footer-column a {
    color: #aab8c7;

    font-size: 12px;

    transition: 0.3s ease;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 25px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    display: flex;

    justify-content: space-between;

    color: #66778a;

    font-size: 10px;
}


/* LOGO FOOTER */

.footer-logo {
    display: flex;

    align-items: center;

    flex-shrink: 0;
}

footer .my-footer-logo {
    flex-shrink: 0;

    width: 220px;
    height: 150px;

    display: flex;

    align-items: center;
    justify-content: flex-start;

    position: relative;

    overflow: visible;
}

footer .my-footer-logo img {
    display: block;

    width: 380px;

    max-width: none;

    min-width: 380px;

    height: auto;

    margin: 0;
    padding: 0;

    position: relative;

    transform: translateY(-40px);
}


/* =====================================================
   22. ANIMAZIONI SCROLL
===================================================== */

.reveal {
    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* =====================================================
   23. RESPONSIVE — TABLET
===================================================== */

@media (max-width: 1100px) {

    header {
        width: calc(100% - 35px);
    }

    nav {
        gap: 18px;
    }

    .convenzione-card {
        width: 390px;
    }

    .convenzione-image {
        height: 270px;
    }

}


/* =====================================================
   24. RESPONSIVE — TABLET PICCOLO
===================================================== */

@media (max-width: 1000px) {

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

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

    .hero-graphic {
        height: 400px;
    }

    .intro {
        grid-template-columns: 1fr;

        gap: 40px;
    }

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

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

    .map {
        width: 100%;
        max-width: 550px;

        height: auto;

        aspect-ratio: 1 / 1;

        margin: 0 auto;
    }

    .about-image {
        width: 100%;

        height: auto;

        min-height: 0;

        overflow: visible;

        margin-top: 55px;
    }

    .about-image img {
        width: 85%;

        max-width: 850px;

        height: auto;

        object-fit: contain;

        margin: 0 auto;
    }

    .interactive-content {
        width: 100%;

        min-width: 0;
    }

    .display-image {
        width: 100%;
        max-width: 100%;
    }

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

        object-fit: contain;
    }

    .statuto-heading p {
        margin-top: 60px;
    }

    .activity-item {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 25px;
    }

    .activity-action {
        grid-column: 2;
        justify-content: flex-start;
    }

    .activities-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .activities-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .activities-filters {
        justify-content: flex-start;
    }

    .services-heading {
        flex-direction: column;

        align-items: flex-start;

        gap: 30px;
    }

    .service-card {
        flex: 0 0 calc((100% - 25px) / 2);
    }

    .about-boxes {
        grid-template-columns: 1fr;
    }

    .about-box {
        min-height: 190px;
    }

    .interactive-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

}


/* =====================================================
   25. RESPONSIVE — MOBILE
===================================================== */

@media (max-width: 700px) {

    html,
    body {
        width: 100%;
        max-width: 100%;

        margin: 0;
        padding: 0;

        overflow-x: hidden;
    }

    section,
    header,
    footer,
    main {
        max-width: 100%;
    }


    /* HEADER */

    header {
        width: calc(100% - 20px);

        height: 68px;

        top: 10px;

        padding: 0 16px;

        border-radius: 17px;
    }

    .logo {
        gap: 15px;
        min-width: 0;
    }

    .logo img {
        width: 125px;
        max-width: 100%;
    }

    nav {
        display: none;
    }

    .menu-button {
        display: block;
        flex-shrink: 0;
    }


    /* TICKER */

    .news-ticker {
        margin-top: 88px;
        height: 48px;
    }

    .news-ticker-label {
        padding: 0 15px;

        font-size: 10px;

        flex-shrink: 0;
    }

    .news-ticker-track {
        gap: 35px;
    }

    .news-ticker-item {
        font-size: 12px;
    }


    /* HERO */

    .hero {
        width: 100%;

        min-height: auto;

        padding: 100px 5% 75px;

        display: block;
    }

    .hero h1 {
        font-size: 40px;

        line-height: 1;

        letter-spacing: -2px;

        word-break: normal;

        overflow-wrap: break-word;
    }

    .hero-graphic {
        display: none;
    }


    /* SEZIONI */

    section:not(.hero) {
        width: 100%;

        padding: 80px 5%;
    }


    /* CHI SIAMO */

    .intro {
        width: 100%;

        display: grid;

        grid-template-columns: 1fr;

        gap: 35px;

        margin-top: 30px;
    }

    .intro p {
        font-size: 15px;

        line-height: 1.8;
    }

    .about-image {
        width: 100%;

        height: auto;

        min-height: 0;

        margin-top: 45px;

        overflow: visible;

        display: flex;

        justify-content: center;

        align-items: flex-start;
    }

    .about-image img {
        width: 100%;

        max-width: 100%;

        height: auto;

        object-fit: contain;

        margin: 0;
    }

    .about-boxes {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .about-box {
        min-height: 180px;

        padding: 24px;
    }


    /* ATTIVITÀ */

    .section-title {
        flex-direction: column;

        align-items: flex-start;
    }


    /* DOCUMENTI */

    .documents-section,
    .interactive-documents {
        width: 100%;

        padding: 80px 5%;
    }

    .documents-title {
        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 25px;
    }

    .interactive-header h2 {
        font-size: clamp(40px, 11vw, 50px);
    }

    .interactive-content {
        width: 100%;

        grid-template-columns: 1fr;

        gap: 35px;
    }

    .display-image {
        width: 100%;

        height: auto;

        overflow: hidden;
    }

    .display-image img {
        width: 100%;

        height: auto;

        object-fit: contain;
    }


    /* SERVIZI */

    .services-section {
        width: 100%;

        padding: 85px 5%;
    }

    .services-heading {
        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 25px;
    }

    .services-heading h2 {
        font-size: clamp(40px, 11vw, 50px);
    }

    .service-card {
        flex: 0 0 82%;
        min-width: 0;
    }

    .service {
        grid-template-columns: 45px 1fr;
    }

    .service p {
        grid-column: 2;
    }


    /* CONVENZIONI */

    .convenzioni-carousel {
        margin-top: 45px;
    }

    .convenzioni-track {
        gap: 20px;
    }

    .convenzione-card {
        width: calc(100vw - 40px);

        max-width: 430px;
    }

    .convenzione-image {
        height: 240px;
    }

    .convenzione-content {
        padding: 24px;
    }

    .convenzione-content h3 {
        font-size: 21px;
    }

    .convenzione-content p {
        font-size: 14px;

        line-height: 1.65;
    }

    .convenzioni-controls {
        margin-top: 30px;
    }

    .convenzione-arrow {
        width: 46px;
        height: 46px;
    }

    .convenzioni-progress-line {
        width: 60px;
    }


    /* SEDI */

    .sedi-container {
        width: 100%;

        margin-top: 40px;
    }

    .regioni {
        width: 100%;

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }

    .regione {
        flex: 0 0 auto;

        padding: 17px 16px;

        font-size: 11px;
    }

    .citta-lista {
        width: 100%;

        display: flex;

        flex-direction: column;

        gap: 10px;
    }

    .citta {
        width: 100%;

        box-sizing: border-box;
    }


    /* MAPPA */

    .map {
        width: 100%;

        max-width: 360px;

        height: auto;

        aspect-ratio: 1 / 1;

        margin: 0 auto;
    }


    /* STATUTO + REGOLAMENTO */

    .statuto-section {
        width: 100%;

        padding: 75px 5%;
    }

    .statuto-heading {
        width: 100%;
    }

    .statuto-heading p {
        margin-top: 30px;

        max-width: 100%;

        font-size: 14px;

        line-height: 1.8;
    }

    /*
       Su smartphone le due card vengono
       disposte verticalmente.
    */

    .documenti-statuto {
        width: 100%;

        grid-template-columns: 1fr;

        gap: 25px;

        margin-top: 40px;
    }

    .statuto-card {
        width: 100%;

        min-height: 0;

        margin: 0;

        padding: 32px 24px;
    }

    .statuto-card h3 {
        font-size: 26px;
    }


    /* MODALE STATUTO */

    .statuto-modal {
        padding: 12px;
    }

    .statuto-modal-content {
        width: 100%;

        height: 82vh;

        max-width: 100%;
    }

    .statuto-page-container {
        max-width: calc(100% - 60px);
    }

    .statuto-arrow {
        width: 40px;
        height: 40px;

        font-size: 17px;
    }

    .statuto-prev {
        left: -5px;
    }

    .statuto-next {
        right: -5px;
    }

    .statuto-close {
        top: -5px;
        right: -5px;

        width: 40px;
        height: 40px;

        font-size: 24px;
    }


    /* NEWS */

    .news-grid {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .news-image {
        width: 100%;

        height: auto;

        min-height: 0;

        aspect-ratio: 16 / 10;

        overflow: hidden;
    }

    .news-image img {
        width: 100%;

        height: 100%;

        object-fit: cover;
    }


    /* MODALE COMUNICATI */

    .comunicato-modal {
        padding: 12px;
    }

    .comunicato-box {
        width: 100%;

        max-width: 100%;
    }

    .comunicato-box img {
        width: 100%;

        max-width: 100%;

        height: auto;

        max-height: 85vh;

        object-fit: contain;
    }


    /* CALENDARIO */

    .activities-section {
        padding: 90px 5vw;
    }

    .activities-heading h2 {
        font-size: 46px;

        letter-spacing: -2px;
    }

    .activities-toolbar {
        gap: 20px;
    }

    .activities-filters {
        gap: 4px;
    }

    .activity-filter {
        padding: 8px 11px;

        font-size: 10px;
    }

    .activity-item {
        grid-template-columns: 70px minmax(0, 1fr);

        gap: 18px;

        min-height: auto;

        padding: 25px 0;
    }

    .activity-item:hover {
        padding-left: 10px;

        padding-right: 10px;
    }

    .activity-day {
        font-size: 39px;
    }

    .activity-month {
        font-size: 9px;

        letter-spacing: 1.3px;
    }

    .activity-title {
        font-size: 18px;
    }

    .activity-description {
        font-size: 12px;
    }

    .activity-action {
        grid-column: 2;
    }

    .activity-more {
        font-size: 9px;
    }

    .activity-modal-box {
        padding: 40px 25px;
    }

    .activity-modal-box h2 {
        font-size: 29px;
    }

    .modal-activity-details {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    /* CTA */

    .cta {
        width: 100%;

        flex-direction: column;

        align-items: flex-start;

        gap: 25px;
    }


    /* FOOTER */

    footer {
        width: 100%;

        padding: 65px 5% 25px;
    }

    footer .footer-top {
        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 40px;
    }

    footer .my-footer-logo {
        width: 100%;

        max-width: 100%;

        min-width: 0;

        height: auto;

        min-height: 100px;

        display: flex;

        align-items: center;

        justify-content: flex-start;

        overflow: visible;
    }

    footer .my-footer-logo img {
        width: 220px;

        max-width: 100%;

        min-width: 0;

        height: auto;

        margin: 0;

        padding: 0;

        transform: none;
    }

    .footer-links {
        width: 100%;

        display: flex;

        flex-wrap: wrap;

        gap: 35px;
    }

    .footer-bottom {
        width: 100%;

        display: flex;

        flex-direction: column;

        gap: 10px;
    }

}


/* =====================================================
   26. TELEFONI MOLTO PICCOLI
===================================================== */

@media (max-width: 380px) {

    header {
        width: calc(100% - 16px);

        padding: 0 13px;
    }

    .logo img {
        width: 110px;
    }

    .hero {
        padding-left: 5%;
        padding-right: 5%;
    }

    .hero h1 {
        font-size: 40px;
    }

    section:not(.hero) {
        padding-left: 5%;
        padding-right: 5%;
    }

    .about-box {
        padding: 20px;
    }

    .statuto-card {
        padding: 28px 20px;
    }

    footer .my-footer-logo img {
        width: 190px;
    }

}

/* =========================================
   CANDIDATURE
========================================= */

#candidature.candidature-section {
    position: relative;
    padding: 110px 8%;
    background: #ffffff;
    overflow: hidden;
}

#candidature.candidature-section::before {
    content: none;
}

#candidature .candidature-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: block;
}

/* =========================================
   CONFIEM — INTRO CANDIDATURE CENTRATA
========================================= */

#candidature .candidature-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 15px 0 0;
    text-align: center;
}

#candidature .candidature-intro .section-label {
    width: 100%;
    margin: 0 auto 24px;
    color: #142b49;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
}

#candidature .candidature-intro h2 {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 26px;
    color: #294B70;
    font-family: "Playfair Display", serif;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 500;
    line-height: 1.15;
    text-align: center;
}

#candidature .candidature-intro h2 span {
    color: #B99A5B;
    font-style: italic;
}

#candidature .candidature-intro > p {
    width: 100%;
    max-width: 850px;
    margin: 0 auto 18px;
    color: #222222;
    font-size: 17px;
    line-height: 1.8;
    text-align: center;
}

/* NOTA INFORMATIVA */

#candidature .candidature-note {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid #e2e5e9;
    text-align: left;
    box-sizing: border-box;

}

#candidature .candidature-note > span {
    flex-shrink: 0;
    color: #142b49;
    font-family: "Playfair Display", serif;
    font-size: 26px;
}

#candidature .candidature-note strong {
    display: block;
    margin-bottom: 6px;
    color: #142b49;
    font-size: 15px;
}

#candidature .candidature-note p {
    margin: 0;
    color: #333333;
    font-size: 14px;
    line-height: 1.7;
}

/* PULSANTE INVIA CANDIDATURA */

#candidature .candidature-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 26px auto 34px;
    text-align: center;
}

#candidature #toggle-candidatura {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: auto;
    min-width: 300px;
    max-width: 100%;
    min-height: 60px;
    padding: 17px 28px;
    border: 1px solid #142b49;
    border-radius: 7px;
    background: #142b49;
    color: #ffffff;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(20, 43, 73, 0.13);
    transition: all 0.25s ease;
}

#candidature #toggle-candidatura::after {
    content: "→";
    font-size: 20px;
    font-weight: 400;
    transition: transform 0.25s ease;
}

#candidature #toggle-candidatura:hover {
    background: #ffffff;
    color: #142b49;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(20, 43, 73, 0.16);
}

#candidature #toggle-candidatura:hover::after {
    transform: translateX(4px);
}

/* MOBILE */

@media (max-width: 600px) {
    #candidature .candidature-intro {
        padding-top: 0;
    }

    #candidature .candidature-intro h2 {
        font-size: clamp(34px, 8vw, 44px);
    }

    #candidature .candidature-intro > p {
        font-size: 16px;
        line-height: 1.75;
    }

    #candidature .candidature-toggle {
        margin: 22px auto 30px;
    }

    #candidature #toggle-candidatura {
        width: 100%;
        min-width: 0;
        max-width: 360px;
    }
}

/* =====================================================
   TESSERA ASSOCIATIVA - MODULO + CARD 3D
===================================================== */

.tessera-section {
    position: relative;
    padding: 120px 8%;
    background: #ffffff;
    overflow: hidden;
}


/* =====================================================
   TITOLO
===================================================== */

.tessera-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 60px;
    margin-bottom: 70px;
}

.tessera-title > div {
    max-width: 700px;
}

.tessera-title > div > span {
    display: block;
    margin-bottom: 18px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;

    color: var(--blue-light);
}

.tessera-title h2 {
    margin: 0;

    font-family: "Playfair Display", serif;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.05;

    color: var(--blue-dark);
}

.tessera-title h2 em {
    color: var(--blue-light);
    font-style: italic;
}

.tessera-title > p {
    max-width: 390px;
    margin: 0;

    color: var(--gray);
    line-height: 1.7;
}


/* =====================================================
   MODULO
===================================================== */

.adesione-container {
    max-width: 1050px;
    margin: 0 auto;

    padding: 55px;

    border: 1px solid var(--line);
    border-radius: 25px;

    background: #ffffff;

    box-shadow:
        0 25px 70px rgba(11, 31, 58, 0.08);
}

.adesione-intro {
    max-width: 650px;
    margin-bottom: 45px;
}

.adesione-intro > span {
    display: block;

    margin-bottom: 15px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;

    color: var(--blue-light);
}

.adesione-intro h3 {
    margin: 0 0 15px;

    font-family: "Playfair Display", serif;
    font-size: clamp(35px, 4vw, 52px);
    line-height: 1.05;

    color: var(--blue-dark);
}

.adesione-intro h3 strong {
    color: var(--blue-light);
}

.adesione-intro p {
    margin: 0;

    color: var(--gray);
    line-height: 1.7;
}


/* TITOLI FORM */

.form-section-title {
    display: flex;
    align-items: center;
    gap: 15px;

    margin: 35px 0 20px;

    padding-bottom: 12px;

    border-bottom: 1px solid var(--line);
}

.form-section-title span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;

    color: var(--blue-light);
}

.form-section-title h4 {
    margin: 0;

    font-size: 16px;
    font-weight: 600;

    color: var(--blue-dark);
}


/* GRID */

.form-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 11px;
    font-weight: 600;

    color: var(--blue-dark);
}

.form-field input,
.form-field select {
    width: 100%;
    box-sizing: border-box;

    padding: 14px 16px;

    border: 1px solid var(--line);
    border-radius: 10px;

    outline: none;

    background: #fbfdfe;

    color: var(--blue-dark);

    font-family: "DM Sans", sans-serif;
    font-size: 13px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.form-field input:focus,
.form-field select:focus {
    border-color: var(--blue-light);

    box-shadow:
        0 0 0 3px rgba(94, 187, 212, 0.12);
}


/* =====================================================
   QUOTE
===================================================== */

.quote-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.quote-option {
    cursor: pointer;
}

.quote-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quote-box {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 22px;

    border: 1px solid var(--line);
    border-radius: 14px;

    background: white;

    transition: 0.25s ease;
}

.quote-box small {
    display: block;

    margin-bottom: 5px;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;

    color: var(--gray);
}

.quote-box strong {
    font-size: 30px;
    color: var(--blue-dark);
}

.quote-radio {
    width: 20px;
    height: 20px;

    border: 2px solid #cbd7de;
    border-radius: 50%;

    position: relative;
}

.quote-option input:checked + .quote-box {
    border-color: var(--blue-light);

    background: #f5fcfe;

    box-shadow:
        0 10px 30px rgba(11, 31, 58, 0.06);
}

.quote-option input:checked + .quote-box .quote-radio {
    border-color: var(--blue-light);
}

.quote-option input:checked + .quote-box .quote-radio::after {
    content: "";

    position: absolute;

    width: 10px;
    height: 10px;

    left: 3px;
    top: 3px;

    border-radius: 50%;

    background: var(--blue-light);
}


/* PRIVACY */

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-top: 30px;

    font-size: 11px;
    line-height: 1.5;

    color: var(--gray);

    cursor: pointer;
}

.privacy-check input {
    margin-top: 2px;
    accent-color: var(--blue-light);
}


/* SUBMIT */

.submit-tessera {
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 30px;
    padding: 18px 23px;

    border: none;
    border-radius: 12px;

    background: var(--blue-dark);

    color: white;

    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.3s ease;
}

.submit-tessera span {
    font-size: 22px;
}

.submit-tessera:hover {
    background: var(--blue);

    transform: translateY(-2px);
}


/* =====================================================
   CARD RISULTATO
===================================================== */

.card-result {
    display: none;

    max-width: 1250px;
    margin: 70px auto 0;

    opacity: 0;
    transform: translateY(30px);

    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

.card-result.visible {
    display: block;
}

.card-result.show {
    opacity: 1;
    transform: translateY(0);
}

.card-result-heading {
    text-align: center;

    margin-bottom: 35px;
}

.card-result-heading > span {
    display: block;

    margin-bottom: 12px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;

    color: var(--blue-light);
}

.card-result-heading h3 {
    margin: 0 0 12px;

    font-family: "Playfair Display", serif;
    font-size: clamp(36px, 4vw, 55px);

    color: var(--blue-dark);
}

.card-result-heading h3 em {
    color: var(--blue-light);
    font-style: italic;
}

.card-result-heading p {
    margin: auto;

    max-width: 600px;

    color: var(--gray);
    line-height: 1.6;
}


/* =====================================================
   STAGE 3D
===================================================== */

.tessera-stage {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 500px;

    perspective: 1800px;
}


/* CARD */

.card-3d {
    position: relative;

    width: min(620px, 100%);
    aspect-ratio: 1.586 / 1;

    transform-style: preserve-3d;

    cursor: pointer;

    transition:
        transform 0.9s cubic-bezier(.2,.8,.2,1);

    z-index: 5;
}

.card-3d.flipped {
    transform: rotateY(180deg);
}


/* FACCE */

.card-face {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    border-radius: 24px;

    overflow: hidden;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    box-shadow:
        0 30px 60px rgba(11, 31, 58, 0.25);

    transform-style: preserve-3d;
}


/* =====================================================
   FRONTE
===================================================== */

.card-front {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 35px 40px;

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(94,187,212,0.35),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #071d49 0%,
            #0b1f3a 60%,
            #173b63 100%
        );

    color: white;
}

.card-front::before {
    content: "";

    position: absolute;

    width: 330px;
    height: 330px;

    right: -160px;
    bottom: -180px;

    border: 1px solid rgba(255,255,255,0.12);

    border-radius: 50%;
}

.card-front::after {
    content: "";

    position: absolute;

    width: 430px;
    height: 430px;

    right: -220px;
    bottom: -240px;

    border: 1px solid rgba(255,255,255,0.07);

    border-radius: 50%;
}


/* TOP */

.card-front-top {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: space-between;

    font-size: 11px;
    letter-spacing: 3px;

    color: #9bddec;
}


/* LOGO */

.card-logo {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    gap: 20px;
}

.card-logo-circle {
    width: 90px;
    height: 90px;

    display: flex;
    justify-content: center;
    align-items: center;

    border: 1px solid rgba(255,255,255,0.7);

    border-radius: 50%;

    font-family: "Playfair Display", serif;
    font-size: 55px;

    color: white;
}

.card-logo-text {
    display: flex;
    flex-direction: column;

    font-family: "Playfair Display", serif;
    font-size: 42px;
    letter-spacing: 2px;
}

.card-logo-text small {
    max-width: 310px;

    margin-top: 7px;

    font-family: "DM Sans", sans-serif;

    font-size: 9px;
    line-height: 1.5;
    letter-spacing: 1.5px;

    color: #b8dce6;
}


/* BOTTOM */

.card-front-bottom {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 10px;
    letter-spacing: 3px;
}

.card-year {
    color: #8ecfe6;
}

/* =====================================================
   RETRO TESSERA - VERSIONE OTTIMIZZATA
===================================================== */

.card-back {
    padding: 22px 28px;

    background: #ffffff;

    color: var(--blue-dark);

    transform: rotateY(180deg);

    border: 1px solid #dce8ed;

    box-sizing: border-box;
}


/* HEADER */

.back-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-bottom: 9px;
    margin-bottom: 9px;

    border-bottom: 1px solid var(--line);
}

.back-header strong {
    font-family: "Playfair Display", serif;

    font-size: 20px;

    letter-spacing: 1px;
}

.back-header span {
    font-size: 7px;
    font-weight: 700;

    letter-spacing: 1.8px;

    color: var(--blue-light);
}


/* CONTENUTO */

.back-content {
    padding-top: 0;
}


/* =====================================================
   GRIGLIA DATI
===================================================== */

.data-grid {
    display: grid;

    grid-template-columns: 1.25fr 1fr 0.75fr;

    column-gap: 14px;
    row-gap: 6px;

    width: 100%;
}


/* ELEMENTO */

.data-item {
    min-width: 0;
}


/* CAMPI A TUTTA LARGHEZZA */

.data-item.full {
    grid-column: 1 / -1;
}


/* ETICHETTA */

.data-item span {
    display: block;

    margin-bottom: 2px;

    font-size: 6px;
    font-weight: 700;

    letter-spacing: 0.8px;

    color: #8b9aa8;

    text-transform: uppercase;

    line-height: 1.1;
}


/* VALORE */

.data-item strong {
    display: block;

    width: 100%;

    overflow: hidden;

    font-size: 8.5px;
    font-weight: 600;

    line-height: 1.15;

    white-space: nowrap;
    text-overflow: ellipsis;

    color: #173b63;
}


/* =====================================================
   DISPOSIZIONE SPECIFICA
===================================================== */

/* Ragione sociale */
.data-item:nth-child(3) {
    grid-column: 1 / -1;
}


/* Titolare + Tipo */
.data-item:nth-child(4) {
    grid-column: 1 / 3;
}

.data-item:nth-child(5) {
    grid-column: 3;
}


/* Indirizzo */
.data-item:nth-child(6) {
    grid-column: 1 / -1;
}


/* Città + Provincia + Luogo */
.data-item:nth-child(7) {
    grid-column: 1;
}

.data-item:nth-child(8) {
    grid-column: 2;
}

.data-item:nth-child(9) {
    grid-column: 3;
}


/* Data + CF + PIVA */
.data-item:nth-child(10) {
    grid-column: 1;
}

.data-item:nth-child(11) {
    grid-column: 2;
}

.data-item:nth-child(12) {
    grid-column: 3;
}


/* =====================================================
   VALIDITÀ
===================================================== */

.validita {
    display: flex;
    align-items: center;

    gap: 40px;

    margin-top: 9px;

    padding: 7px 12px;

    border-radius: 7px;

    background: #edf8fb;
}

.validita div {
    display: flex;
    align-items: center;

    gap: 7px;
}

.validita span {
    display: inline-block;

    margin: 0;

    font-size: 5px;
    font-weight: 700;

    letter-spacing: 0.8px;

    color: var(--blue-light);
}

.validita strong {
    font-size: 8px;

    color: var(--blue-dark);
}


/* =====================================================
   NOTA
===================================================== */

.card-note {
    margin: 7px 0 6px;

    font-size: 6px;

    line-height: 1.25;

    color: #718096;
}


/* =====================================================
   PARTE FINALE
===================================================== */

.back-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-top: 2px;
}


/* FIRMA */

.firma span {
    display: block;

    margin-bottom: 4px;

    font-size: 5px;

    color: #718096;
}

.firma-line {
    width: 115px;

    border-bottom: 1px solid #aebbc4;
}


/* =====================================================
   QR
===================================================== */

.qr-placeholder {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border: 4px solid white;

    background:
        linear-gradient(
            90deg,
            #0b1f3a 50%,
            transparent 50%
        ) 0 0 / 7px 7px,

        linear-gradient(
            #0b1f3a 50%,
            transparent 50%
        ) 0 0 / 7px 7px;

    box-shadow:
        0 0 0 1px #d8e2e7;
}

.qr-pattern {
    width: 100%;
    height: 100%;

    background: white;

    opacity: 0.15;
}
/* =====================================================
   BOTTONI CARD
===================================================== */

.card-actions {
    display: flex;
    justify-content: center;
    gap: 12px;

    margin-top: 20px;
}

.card-action {
    padding: 14px 22px;

    border-radius: 10px;

    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.25s ease;
}

.card-action.secondary {
    border: 1px solid var(--line);
    background: white;
    color: var(--blue-dark);
}

.card-action.apple,
.card-action.google {
    border: none;
    background: var(--blue-dark);
    color: white;
}

.card-action:hover {
    transform: translateY(-2px);
}

.torna-modulo {
    display: block;

    margin: 22px auto 0;

    border: none;
    background: transparent;

    color: var(--gray);

    font-family: "DM Sans", sans-serif;
    font-size: 11px;

    cursor: pointer;
}

.torna-modulo:hover {
    color: var(--blue-light);
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 800px) {

    .tessera-section {
        padding: 80px 6%;
    }

    .tessera-title {
        display: block;
    }

    .tessera-title > p {
        margin-top: 25px;
    }

    .adesione-container {
        padding: 28px 22px;
    }

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

    .form-field.full {
        grid-column: auto;
    }

    .quote-selection {
        grid-template-columns: 1fr;
    }

    .tessera-stage {
        min-height: 330px;
    }

    .card-3d {
        width: 100%;
    }

    .card-front {
        padding: 22px;
        border-radius: 17px;
    }

    .card-logo-circle {
        width: 55px;
        height: 55px;

        font-size: 34px;
    }

    .card-logo-text {
        font-size: 25px;
    }

    .card-logo-text small {
        max-width: 190px;
        font-size: 6px;
    }

    .card-front-top,
    .card-front-bottom {
        font-size: 7px;
    }

    .card-back {
        padding: 17px;
        border-radius: 17px;
    }

    .data-grid {
        column-gap: 12px;
        row-gap: 5px;
    }

    .data-item span {
        font-size: 5px;
    }

    .data-item strong {
        font-size: 7px;
    }

    .validita {
        gap: 15px;
        margin-top: 6px;
        padding: 6px 8px;
    }

    .validita span {
        font-size: 4px;
    }

    .validita strong {
        font-size: 7px;
    }

    .card-note {
        font-size: 5px;
        margin: 5px 0;
    }

    .firma span {
        font-size: 5px;
    }

    .firma-line {
        width: 90px;
    }

    .qr-placeholder {
        width: 38px;
        height: 38px;
    }

    .card-actions {
        flex-direction: column;
    }

    .card-action {
        width: 100%;
    }

}
/* ================================
   SELETTORE LINGUA
================================ */

.language-selector {
    position: relative;
    display: inline-block;
    margin-left: 15px;
    z-index: 1000;
}

.language-btn {
    background: transparent;
    border: 1px solid rgba(142, 207, 230, 0.45);
    color: var(--blu-scuro);
    padding: 9px 14px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: var(--celeste-chiaro);
    border-color: var(--celeste);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;

    min-width: 170px;
    padding: 8px;

    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e3edf2;
    border-radius: 14px;

    box-shadow: 0 12px 30px rgba(16, 42, 67, 0.15);

    display: none;
}

.language-dropdown.active {
    display: block;
}

.language-dropdown button {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;

    padding: 10px 12px;
    border-radius: 9px;

    color: var(--blu-scuro);
    font-family: inherit;
    font-size: 14px;

    cursor: pointer;
    transition: background 0.2s ease;
}

.language-dropdown button:hover {
    background: var(--celeste-chiaro);
}

/* Nasconde il widget originale di Google */
#google_translate_element {
    display: none;
}

/* Nasconde la barra superiore di Google */
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

.goog-te-gadget {
    font-size: 0 !important;
}

.goog-te-gadget span {
    display: none !important;
}

.goog-logo-link {
    display: none !important;
}

/* ================================
   MOBILE
================================ */

@media (max-width: 768px) {

    .language-selector {
        margin-left: 0;
        margin-top: 10px;
    }

    .language-btn {
        font-size: 13px;
        padding: 8px 12px;
    }

    .language-dropdown {
        right: auto;
        left: 0;
    }
}


.section-title {
    display: block;
}

.about-description {
    width: 100%;
    max-width: 1250px;
    margin-top: 28px;
}

.about-description p {
    margin: 0;

    font-family: "DM Sans", sans-serif;
    font-size: 17px;
    line-height: 1.65;

    color: #52657a;
}


/* =====================================================
   VETRINA CONFIEM
===================================================== */

.vetrina-section {
    width: 100%;
    background: #f4f8fa;
}


/* VIDEO PRINCIPALE */

.vetrina-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 50px;

    background: #ffffff;
    border-radius: 28px;

    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(11, 31, 58, 0.08);
}

.vetrina-video-main {
    width: 100%;
    aspect-ratio: 16 / 9;

    background: #0b1f3a;
}

.vetrina-video-main video {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.vetrina-main-info {
    padding: 30px 35px 35px;
}

.vetrina-category {
    display: block;

    margin-bottom: 10px;

    color: #B99A5B;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.vetrina-main-info h3 {
    margin: 0 0 10px;

    font-family: "Playfair Display", serif;

    font-size: 30px;
    font-weight: 400;

    color: #0b1f3a;
}

.vetrina-main-info p {
    margin: 0;

    color: #B99A5B;

    font-size: 14px;
    line-height: 1.7;
}



/* =====================================================
   VETRINA VIDEO — SCORRIMENTO ORIZZONTALE
===================================================== */

.vetrina-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 25px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 10px 4px 25px;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Ogni video mantiene una larghezza uniforme */
.vetrina-grid .vetrina-card {
    flex: 0 0 calc((100% - 50px) / 3);
    min-width: 0;
    scroll-snap-align: start;
}

/* Barra di scorrimento */
.vetrina-grid::-webkit-scrollbar {
    height: 7px;
}

.vetrina-grid::-webkit-scrollbar-track {
    background: #e4ebef;
    border-radius: 10px;
}

.vetrina-grid::-webkit-scrollbar-thumb {
    background: #B99A5B;
    border-radius: 10px;
}

/* Tablet */
@media (max-width: 900px) {
    .vetrina-grid .vetrina-card {
        flex-basis: calc((100% - 25px) / 2);
    }
}

/* Smartphone */
@media (max-width: 600px) {
    .vetrina-grid {
        gap: 16px;
        padding-bottom: 20px;
    }

    .vetrina-grid .vetrina-card {
        flex-basis: 85%;
    }
}


/* CARD */

.vetrina-card {
    background: #ffffff;

    border-radius: 24px;

    overflow: hidden;

    box-shadow:
        0 15px 40px rgba(11, 31, 58, 0.07);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.vetrina-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 20px 50px #294B70(11, 31, 58, 0.12);
}


/* VIDEO CARD */

.vetrina-card-video {
    width: 100%;

    aspect-ratio: 16 / 9;

    background: #294B70;
}

.vetrina-card-video video {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* TESTO CARD */

.vetrina-card-content {
    padding: 25px 28px 28px;
}

.vetrina-card-content > span {
    display: block;

    margin-bottom: 8px;

    color: #B99A5B;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.4px;
}

.vetrina-card-content h3 {
    margin: 0 0 10px;

    font-family: "Playfair Display", serif;

    font-size: 23px;
    font-weight: 400;

    color: #294B70;
}

.vetrina-card-content p {
    margin: 0;

    color: #294B70;

    font-size: 13px;
    line-height: 1.6;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

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

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .vetrina-main-info {
        padding: 25px;
    }

    .vetrina-main-info h3 {
        font-size: 25px;
    }

    .vetrina-card-content {
        padding: 22px;
    }

}

.card-action.pdf {
    border: none;
    background: var(--blue-dark);
    color: white;
    padding: 14px 22px;
    border-radius: 10px;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

.card-action.pdf:hover {
    transform: translateY(-2px);
    background: #173b63;
}

/* PRIVACY - TUTTA LA LARGHEZZA DEL FORM */

.privacy-check {
    width: 100% !important;
    max-width: none !important;
    grid-column: 1 / -1 !important;
    display: block !important;
    box-sizing: border-box !important;
}

.privacy-text {
    width: 100% !important;
    max-width: none !important;
    display: block !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

.privacy-options {
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

.privacy-option {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    box-sizing: border-box !important;
}

/* CONFIEM - NASCONDI TEMPORANEAMENTE LA TESSERA */
#tessera,
section#tessera,
.tessera {
    display: none !important;
    visibility: hidden !important;
}

/* CONFIEM - TENDINA CANDIDATURA */
#toggle-candidatura {
    cursor: pointer;
}

#modulo-candidatura[hidden] {
    display: none !important;
}

#modulo-candidatura:not([hidden]) {
    margin-top: 30px;
}


/* Pulsante apertura candidatura */
.candidatura-toggle-wrapper {
    margin-top: 30px;
    margin-bottom: 25px;
}

.candidatura-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 20px 24px;
    border: 1px solid #c9a96e;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.candidatura-toggle:hover {
    background: #c9a96e;
    color: #fff;
}

#candidaturaFreccia {
    font-size: 22px;
    transition: transform 0.3s ease;
}

/* Animazione della freccia */
.candidatura-toggle[aria-expanded="true"] #candidaturaFreccia {
    transform: rotate(180deg);
}


/* =========================================
   CONFIEM — CONTENITORE MODULO CANDIDATURA
========================================= */

/* Modulo chiuso */
#candidature .candidature-form-wrapper[hidden] {
    display: none !important;
}

/* Modulo aperto */
#candidature .candidature-form-wrapper:not([hidden]) {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 24px;
    padding: clamp(22px, 4vw, 44px);
    border: 1px solid #e7e4dd;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(24, 40, 59, 0.05);
    animation: candidaturaReveal 0.35s ease both;
}

/* Comparsa delicata */
@keyframes candidaturaReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Smartphone */
@media (max-width: 700px) {
    #candidature .candidature-form-wrapper:not([hidden]) {
        margin-top: 18px;
        padding: 20px 16px;
        border-radius: 8px;
    }
}

/* Rispetto delle preferenze di movimento */
@media (prefers-reduced-motion: reduce) {
    #candidature .candidature-form-wrapper:not([hidden]) {
        animation: none;
    }
}


/* =========================================
   CONFIEM — CANDIDATURE
   Restyling della sezione
========================================= */

#candidature.candidature-section {
    position: relative;
    padding: 100px 6%;
    background: #f7f7f5;
    overflow: hidden;
}

#candidature.candidature-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 6%;
    width: 70px;
    height: 3px;
    background: #b99a5b;
}

#candidature .candidature-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

/* Pulsante apertura modulo */

#candidature .candidatura-toggle-wrapper {
    margin: 32px 0 24px;
}

#candidature .candidatura-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 22px 26px;
    border: 1px solid #dedbd3;
    border-radius: 8px;
    background: #fff;
    color: #18283b;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: left;
    cursor: pointer;
    transition: border-color .25s ease,
                background .25s ease,
                color .25s ease;
}

#candidature .candidatura-toggle:hover {
    border-color: #b99a5b;
    background: #fcfbf8;
}

#candidature #candidaturaFreccia {
    color: #b99a5b;
}

/* Pannello del modulo */

#candidature .candidature-form-wrapper:not([hidden]) {
    margin-top: 24px;
    padding: clamp(22px, 4vw, 44px);
    border: 1px solid #e7e4dd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(24, 40, 59, 0.045);
}

#candidature .candidature-form-wrapper[hidden] {
    display: none !important;
}

/* Campi del modulo */

#candidature .candidatura-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#candidature .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

#candidature .form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

#candidature .form-group > label {
    color: #253448;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.015em;
}

#candidature .form-group input:not([type="file"]),
#candidature .form-group select,
#candidature .form-group textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid #dedfdc;
    border-radius: 6px;
    outline: none;
    background: #fbfbfa;
    color: #21354c;
    font: inherit;
    font-size: 14px;
    transition: border-color .2s ease,
                box-shadow .2s ease,
                background .2s ease;
}

#candidature .form-group textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

#candidature .form-group input:focus,
#candidature .form-group select:focus,
#candidature .form-group textarea:focus {
    border-color: #b99a5b;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(185, 154, 91, .12);
}

#candidature .form-group input::placeholder,
#candidature .form-group textarea::placeholder {
    color: #92979c;
}

/* Caricamento curriculum */

#candidature .file-upload {
    position: relative;
}

#candidature .file-upload input[type="file"] {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    color: #626c77;
    font: inherit;
    font-size: 13px;
}

#candidature .file-upload input[type="file"]::file-selector-button {
    margin-right: 14px;
    padding: 12px 16px;
    border: 1px solid #d8d3c8;
    border-radius: 5px;
    background: #f7f5f0;
    color: #253448;
    font: inherit;
    cursor: pointer;
}

/* Informativa privacy */

#candidature .privacy-check {
    padding: 24px;
    border: 1px solid #e6e2da;
    border-radius: 7px;
    background: #faf9f6;
}

#candidature .privacy-check h3 {
    margin: 0 0 16px;
    color: #253448;
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: .045em;
}

#candidature .privacy-text {
    max-height: 220px;
    overflow-y: auto;
    padding: 16px;
    border: 1px solid #e7e5df;
    border-radius: 5px;
    background: #fff;
    color: #626b74;
    font-size: 12px;
    line-height: 1.8;
}

#candidature .privacy-options {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 22px;
}

#candidature .privacy-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

#candidature .privacy-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: #253448;
    cursor: pointer;
}

#candidature .privacy-option label {
    color: #505b66;
    font-size: 12px;
    line-height: 1.7;
    cursor: pointer;
}

#candidature .privacy-option small {
    display: block;
    margin-top: 5px;
    color: #7b8288;
    line-height: 1.6;
}

/* Invio candidatura */

#candidature .candidatura-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    min-height: 58px;
    padding: 18px 24px;
    border: 1px solid #1d3047;
    border-radius: 6px;
    background: #1d3047;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .25s ease,
                border-color .25s ease;
}

#candidature .candidatura-submit:hover {
    border-color: #b99a5b;
    background: #b99a5b;
}

/* Adattamento smartphone */

@media (max-width: 700px) {
    #candidature.candidature-section {
        padding: 70px 20px;
    }

    #candidature .form-row {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    #candidature .candidature-form-wrapper:not([hidden]) {
        padding: 22px 17px;
    }

    #candidature .privacy-check {
        padding: 16px;
    }

    #candidature .candidatura-toggle {
        padding: 18px;
    }
}


/* ==========================================
   CONFIEM — PALETTE COLORI COORDINATA
   ========================================== */

:root {
    --blue-dark: #294B70;
    --blue: #294B70;
    --blue-light: #294B70;
    --gold: #B99A5B;
    --white: #FFFFFF;
    --gray: #294B70;
}

/* ==========================================
   TESTI PRINCIPALI — BLU
   ========================================== */

body {
    color: #294B70;
}

.hero h1,
.section-title h2,
.documents-title h2,
.services h2,
.convenzioni h2,
.statuto h2,
.candidature-intro h2,
.vetrina h2,
.about-box h3,
.service-info h3,
.news-content h3,
.regione-titolo {
    color: #294B70;
}

/* Paragrafi sulle sezioni con fondo chiaro */

.hero-description,
.about-box p,
.about-description p,
.section-title p,
.service-info p,
.services p,
.convenzioni p,
.statuto p,
.cta p,
.news-content p,
.documents p,
.sedi p,
.candidature-intro p,
.candidature-section p,
.vetrina p {
    color: #294B70;
}

/* ==========================================
   DETTAGLI, ETICHETTE E PAROLE CHIAVE — ORO
   ========================================== */

.label,
.eyebrow,
.section-title h2 span,
.documents-title h2 span,
.services h2 span,
.convenzioni h2 span,
.statuto h2 span,
.candidature-intro h2 span,
.service-info small,
.news-content small,
.service-category,
.vetrina .category,
.section-number,
.number,
.gold,
.oro,
.gold-text,
.oro-text {
    color: #B99A5B;
}

/* Accenti e linee decorative */

.eyebrow::before,
.eyebrow::after {
    background-color: #B99A5B;
}

.progress-line,
.progress-line span {
    background-color: #B99A5B;
}

/* ==========================================
   LINK — BLU SULLE SEZIONI CHIARE
   ========================================== */

.about-box a,
.about-description a,
.service-info a,
.documents a,
.sedi a,
.candidature-section a {
    color: #294B70;
}

.about-box a:hover,
.about-description a:hover,
.service-info a:hover,
.documents a:hover,
.sedi a:hover {
    color: #B99A5B;
}

/* ==========================================
   SEZIONI SCURE — TESTI BIANCHI
   Non cambiare questi colori: servono al contrasto.
   ========================================== */

.about-box.dark,
.about-box.dark h2,
.about-box.dark h3,
.about-box.dark p,
.about-box.dark a,
.card.dark,
.card.dark h3,
.card.dark p,
.card.dark a,
.med,
.med h1,
.med h2,
.med h3,
.med p,
.med a,
.news-ticker,
.news-ticker a,
footer,
footer h2,
footer h3,
footer p,
footer a,
.statuto-card,
.statuto-card h2,
.statuto-card h3,
.statuto-card p,
.card-front,
.card-front h2,
.card-front h3,
.card-front p {
    color: #FFFFFF;
}

/* Dettagli oro sulle sezioni scure */

.about-box.dark strong,
.card.dark strong,
.med strong,
.news-ticker strong,
footer strong,
.statuto-card strong {
    color: #B99A5B;
}

/* ==========================================
   PULSANTI — TESTO LEGGIBILE
   ========================================== */

/* Pulsanti scuri */

.btn-primary,
.calendar-btn,
.activity-modal-action,
.candidatura-toggle,
.candidatura-submit {
    background-color: #294B70;
    color: #FFFFFF;
}

/* Hover dei pulsanti scuri */

.btn-primary:hover,
.calendar-btn:hover,
.activity-modal-action:hover,
.candidatura-submit:hover {
    background-color: #B99A5B;
    color: #FFFFFF;
}

/* Pulsanti chiari */

.btn-secondary {
    background-color: #FFFFFF;
    color: #294B70;
    border-color: #294B70;
}

.btn-secondary:hover {
    background-color: #294B70;
    color: #FFFFFF;
}

/* Campi dei moduli: mantieni il testo leggibile */

input,
textarea,
select {
    color: #294B70;
}

input::placeholder,
textarea::placeholder {
    color: #294B70;
    opacity: 0.65;
}



/* TITOLO CONVENZIONI: BLU + ORO */
.convenzioni-carousel h2,
.convenzioni-section h2,
#convenzioni h2 {
    color: #294B70;
}

.convenzioni-carousel h2 span,
.convenzioni-section h2 span,
#convenzioni h2 span {
    color: #B99A5B;
}




/* TITOLO STATUTO E REGOLAMENTO */
#statuto-regolamento .section-heading h2 {
    color: #294B70 !important;
}

#statuto-regolamento .section-heading h2 span {
    color: #B99A5B !important;
}

/* ETICHETTA 07 / STATUTO IN ORO */
#statuto-regolamento .label {
    color: #B99A5B !important;
}



/* BOTTONI STATUTO E REGOLAMENTO */

/* Stato normale: oro */
#statuto-regolamento button,
#statuto-regolamento .btn,
#statuto-regolamento a.button {
    background-color: #B99A5B !important;
    color: #FFFFFF !important;
    border-color: #B99A5B !important;
    transition: background-color 0.25s ease,
                color 0.25s ease,
                border-color 0.25s ease;
}

/* Al passaggio del mouse e alla pressione: bianco */
#statuto-regolamento button:hover,
#statuto-regolamento button:active,
#statuto-regolamento .btn:hover,
#statuto-regolamento .btn:active,
#statuto-regolamento a.button:hover,
#statuto-regolamento a.button:active {
    background-color: #FFFFFF !important;
    color: #294B70 !important;
    border-color: #B99A5B !important;
}

/* ===== COLORI CONFIEM — NEWS E TICKER ===== */

/* Sfondo della sezione News */
#news {
    background-color: #FFFFFF !important;
}

/* Titoli delle notizie */
#news .news-content h3 {
    color: #294B70 !important;
}

/* Date e dettagli delle notizie */
#news .news-content small {
    color: #B99A5B !important;
}

/* Barra ticker: sfondo blu e testo bianco */
.news-ticker {
    background-color: #294B70 !important;
    color: #FFFFFF !important;
}

/* Etichetta della barra: sfondo oro e testo bianco */
.news-ticker-label {
    background-color: #B99A5B !important;
    color: #FFFFFF !important;
}

/* Testi delle notizie in scorrimento */
.news-ticker-item,
.news-ticker-item:visited {
    color: #FFFFFF !important;
}

/* Hover sui testi del ticker */
.news-ticker-item:hover {
    color: #B99A5B !important;
}

/* Pallini decorativi */
.news-ticker-item::before {
    color: #B99A5B !important;
}

/* Fonte delle notizie */
.news-source {
    color: #B99A5B !important;
}

/* Colori dei titoli e dettagli della sezione News */
#news h2,
#news h3,
#news h4 {
    color: #294B70 !important;
}

#news h2 span,
#news h3 span,
#news h4 span {
    color: #B99A5B !important;
}



.pdf-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.pdf-button {
    display: block;
    padding: 15px 20px;
    background-color: #008c95;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 17px;
    text-align: center;
    transition: 0.3s;
}

.pdf-button:hover {
    background-color: #006d74;
    transform: translateY(-2px);
}

.pdf-button {
    display: block;
    padding: 12px 15px;
    background: #008c95;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}

.pdf-button:hover {
    background: #006d74;
}