:root {
    --red: #E30613;
    --dark: #1a1a1a;
    --gray: #666;
    --light-gray: #f8f9fa;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: #fff;
}
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600;700&display=swap");
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

.main-header {
  padding: 0;
  border-bottom: 2px solid #E22D2D;
  position: sticky;
  top: 0;
  width: 100%;
  background: white;
  z-index: 1000;
}

.logo img {
  margin-top: 10px;

}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.header-left { display: flex; align-items: center; gap: 10px; }
.nav-links a { text-decoration: none; color: #333; margin: 0 15px; font-weight: 500; font-size: 0.9rem; }
.nav-links a:hover { color: #ee0000; }

.cta-button { background: #E22D2D; color: white; padding: 15px 30px; border-radius: 30px; text-decoration: none; display: inline-block; font-weight: bold; }
.cta-button:hover { box-shadow: 0 0 10px #e3001b; }

.contacts {
    background-color: #004c97;
    color: white;
    padding: 10px;
    text-align: center;
    margin-top: 0;
}

@media (max-width: 768px) {
    .cta-button { padding: 10px 20px; font-size: 0.9rem; margin-bottom: 30px; }
    .header-flex { flex-direction: column; gap: 15px; }
    .nav-links { display: flex; flex-direction: column; gap: 15px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; width: 100%; }
    .nav-links a { margin: 0; text-align: center; }
    .hamburger { display: flex; }
    #menu-toggle:checked ~ .nav-links { max-height: 500px; }
    .logo img { margin-top: 80px;}
}

@media (max-width: 768px) {
    .wrapper { grid-template-columns: 1fr; height: auto; }
    .col-content { padding: 40px 20px; }
    .col-content h2 { font-size: 1.2rem; }
    .col-content p { font-size: 0.95rem; }
    .col-download { padding: 30px; }
    .download-btn { padding: 15px 20px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .contacts { font-size: 0.8rem; padding: 8px; }
    .nav-links a { font-size: 0.8rem; }
    .cta-button { padding: 10px 20px; font-size: 0.9rem; }
    .col-content { padding: 20px 15px; }
    .col-content h2 { font-size: 1rem; }
    .col-download { padding: 20px; }
}

/* Hero Section con Immagine di Sfondo */

.hero-clean {
    position: relative;
    padding: clamp(4rem, 10vw, 7.5rem) 0;
    background-image: url('https://images.unsplash.com/photo-1615461066159-fea0960485d5?q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    color: white;
    width: 100%;
    max-width: 100%;
}



/* Overlay per rendere il testo leggibile sulla foto */

.hero-clean::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.6);
    /* Scurisce l'immagine del 60% */

    z-index: 1;

}



.hero-clean .container {

    position: relative;

    z-index: 2;
    /* Porta il testo sopra l'overlay */

}



.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}



.subtitle {
    color: #fff;
    opacity: 0.9;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

.hero-text h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
    color: white;
    word-break: break-word;
}

.highlight {
    color: var(--red);
    text-shadow: 0 0 20px rgba(227, 6, 19, 0.3);
}



.hero-text p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}



.btn-main {
    background: var(--red);
    color: white;
    text-decoration: none;
    padding: clamp(1rem, 2.5vw, 1.25rem) clamp(1.5rem, 5vw, 2.5rem);
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(227, 6, 19, 0.2);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.btn-main:hover {
    background: white;
    color: var(--red);
    transform: translateY(-3px);
}



/* CF Section */

.cf-section-modern {
    padding: 60px 0;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}


.cf-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.9fr);
    align-items: center;
    padding: clamp(2rem, 4vw, 3.125rem);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    border: 6px solid transparent; 
    background: 
        linear-gradient(white, white) padding-box, 
        linear-gradient(to right, #C8102E, #003399) border-box;
    gap: clamp(1rem, 3vw, 2rem);
}

.cf-info {
    max-width: 720px;
    text-align: left;
}

.cf-card {
    width: 100%;
    background: var(--light-gray);
    padding: 34px 30px;
    border-radius: 15px;
    border: 1px solid #d7dce3;
}

.cf-card-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.9fr);
    gap: clamp(1rem, 2vw, 2rem);
    align-items: center;
}

.cf-card-copy {
    text-align: left;
}

.cf-card-number {
    text-align: center;
}

.cf-card-number small {
    display: block;
    font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c0102b;
    margin-bottom: 10px;
}

.cf-card-number .number {
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 800;
    color: var(--red);
    margin: 12px 0 20px;
    letter-spacing: 0.1em;
    text-shadow: 0 0 8px rgba(227, 6, 19, 0.35), 0 0 18px rgba(227, 6, 19, 0.2);
}

.cf-card-number button {
    background: var(--red);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.cf-card-number button:hover {
    filter: brightness(1.2);
}

@media (max-width: 900px) {
    .cf-card-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cf-card-copy,
    .cf-card-number {
        justify-self: center;
    }

    .cf-card-copy p {
        margin: 0 auto;
        max-width: 36rem;
    }
}

.cf-card small {
    display: block;
    font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c0102b;
    margin-bottom: 10px;
}

.cf-card .number {
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 800;
    color: var(--red);
    margin: 12px 0 20px;
    letter-spacing: 0.1em;
    text-shadow: 0 0 8px rgba(227, 6, 19, 0.35), 0 0 18px rgba(227, 6, 19, 0.2);
}

.cf-card button {
    background: var(--red);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.cf-card button:hover {
    filter: brightness(1.2);
}

/* Values Section */
.values {
    padding: 100px 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--red);
    margin: 0 auto;
}



.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}



   .value-card {
    text-align: center;
    padding: 40px;
    border-radius: 15px;
    background: white;
    transition: var(--transition);
    
    /* Configurazione per il bordo sfumato sottile */
    border: 3px solid transparent;
    background: 
        linear-gradient(white, white) padding-box, 
        linear-gradient(to bottom, #C8102E, #003399) border-box;
    
    /* Ombra leggera per dare profondità */
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Effetto al passaggio del mouse (opzionale ma consigliato) */
.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    /* Al passaggio del mouse il bordo può diventare più vivido */
    background: 
        linear-gradient(white, white) padding-box, 
        linear-gradient(to bottom, #C8102E, #C8102E) border-box;
}

/* Assicurati che le icone abbiano spazio */
.value-card .icon { 
    font-size: 50px; 
    margin-bottom: 20px; 
    display: block;
}

.value-card:hover {
    border-color: var(--red);
    transform: translateY(-10px);
    background: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}



.value-card .icon {

    font-size: 50px;
    margin-bottom: 20px;
    display: block;
}

.value-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.footer-minimal {
    padding: 60px 0;
    border-top: 1px solid #eee;
    text-align: center;
    background: #fafafa;
}

.footer-content p {
    color: var(--gray);
    font-size: 14px;
}

/* Responsive */

@media (max-width: 900px) {

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .page-cinque-per-mille .cf-container {
        grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.95fr) !important;
    }

    .page-cinque-per-mille .cf-action {
        justify-content: flex-end;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .page-cinque-per-mille .cf-container {
        flex-direction: column;
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 30px;
    }

    .page-cinque-per-mille .cf-info {
        max-width: 100%;
        text-align: center;
    }

    .page-cinque-per-mille .cf-action {
        width: 100%;
        justify-content: center;
    }

    .page-cinque-per-mille .cf-card {
        width: min(680px, 100%);
    }
}
