
/* ==========================================
   STILE GENERALE - FUTURA PERTINI
   ========================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7faf7;
    color: #173d2a;
    line-height: 1.6;
}

main {
    max-width: 1200px;
    margin: auto;
    padding: 0 30px;
}

/* ==========================================
   HEADER E NAVIGAZIONE
   ========================================== */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 8%;
    background: white;
    border-bottom: 1px solid #e4eee6;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #173d2a;
    font-size: 19px;
    font-weight: bold;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #21834b;
    color: white;
    border-radius: 10px;
    font-size: 23px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #345441;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s;
}

nav a:hover {
    color: #21834b;
}

/* ==========================================
   HOME - SEZIONE PRINCIPALE
   ========================================== */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 440px;
    padding: 55px 0;
}

.hero-content {
    flex: 1;
}

.subtitle {
    color: #21834b;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.12;
    margin-bottom: 22px;
    letter-spacing: -2px;
}

.hero h1 span {
    color: #21834b;
}

.description {
    max-width: 500px;
    color: #64776a;
    margin-bottom: 30px;
    font-size: 16px;
}

.btn {
    display: inline-block;
    background: #21834b;
    color: white;
    padding: 13px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s, transform 0.2s;
}

.btn:hover {
    background: #176438;
    transform: translateY(-2px);
}

/* DECORAZIONE HOME */

.hero-decoration {
    flex: 0 0 390px;
    height: 310px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle {
    position: absolute;
    border-radius: 50%;
}

.circle-one {
    width: 280px;
    height: 280px;
    background: #dcefe0;
}

.circle-two {
    width: 210px;
    height: 210px;
    background: #b5dfc0;
    right: 0;
    top: 0;
}

.hero-card {
    position: relative;
    z-index: 1;
    width: 240px;
    padding: 30px 20px;
    text-align: center;
    background: white;
    border: 1px solid #e0ebe2;
    border-radius: 18px;
    box-shadow: 0 15px 45px #173d2a15;
}

.hero-letter {
    display: block;
    color: #21834b;
    font-size: 75px;
    font-weight: bold;
    line-height: 1.2;
}

.hero-card h2 {
    font-size: 23px;
    letter-spacing: 3px;
}

.hero-card p {
    color: #718174;
    font-size: 13px;
    margin-top: 8px;
}

.hero-image {
    width: 150px;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

/* ==========================================
   VALORI
   ========================================== */

.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding: 25px 0 55px;
}

.value {
    background: white;
    padding: 25px;
    border: 1px solid #e3ece4;
    border-radius: 12px;
}

.value-icon {
    display: inline-block;
    color: #21834b;
    background: #e7f4e9;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 12px;
}

.value h3 {
    margin-bottom: 8px;
    font-size: 19px;
}

.value p {
    color: #718174;
    font-size: 14px;
}

/* ==========================================
   RIQUADRI IN BASSO DELLA HOME
   ========================================== */

.bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding-bottom: 60px;
}

.bottom-card {
    min-height: 280px;
    border-radius: 14px;
    overflow: hidden;
}

.photo-card {
    position: relative;
    background: #173d2a;
}

.photo-card img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: block;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    color: white;
    background: linear-gradient(
        transparent 20%,
        rgba(0, 0, 0, 0.75) 100%
    );
}

.photo-overlay h2 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.photo-overlay p {
    font-size: 14px;
}

.program-card {
    padding: 35px;
    background: #21834b;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.program-card .subtitle {
    color: #d4f0db;
    margin-bottom: 12px;
}

.program-card h2 {
    font-size: 27px;
    margin-bottom: 12px;
}

.program-card p:not(.subtitle) {
    color: #e2f2e6;
    font-size: 14px;
    margin-bottom: 22px;
}

.btn-light {
    background: white;
    color: #21834b;
}

.btn-light:hover {
    background: #e8f4eb;
}

/* ==========================================
   PAGINE INTERNE
   Chi siamo, Programma, Come votare
   ========================================== */

.page-hero {
    padding: 70px 0 45px;
    max-width: 760px;
}

.page-hero h1 {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.page-hero h1 span {
    color: #21834b;
}

.page-hero > p:last-child {
    color: #64776a;
    font-size: 16px;
    max-width: 650px;
}

/* ==========================================
   CHI SIAMO - SQUADRA
   6 FOTO GRANDI, 2 PER RIGA
   ========================================== */

.team-section {
    padding: 10px 0 55px;
}

.team-heading {
    margin-bottom: 22px;
}

.team-heading h2 {
    font-size: 28px;
    color: #174c38;
    margin-bottom: 4px;
}

.team-heading p {
    color: #356b52;
    font-size: 15px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 24px;
}

.team-member {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    text-align: center;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.2s;
}

.team-member:hover {
    transform: translateY(-3px);
    box-shadow: none;
}

.team-member img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: 7px;
    margin-bottom: 7px;
}

.team-member h3 {
    color: #087443;
    font-size: 17px;
    font-weight: bold;
    margin: 0;
    padding-bottom: 2px;
}

/* ==========================================
   PROGRAMMA
   ========================================== */

.program-intro {
    margin-bottom: 25px;
}

.program-intro h2 {
    font-size: 25px;
    margin-bottom: 8px;
}

.program-intro p {
    color: #64776a;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding: 10px 0 55px;
}

.program-item {
    padding: 25px;
    background: white;
    border: 1px solid #e3ece4;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.program-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px #173d2a12;
}

.program-number {
    display: inline-block;
    color: #21834b;
    background: #e7f4e9;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 15px;
}

.program-item h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.program-item p {
    color: #718174;
    font-size: 14px;
}

/* ==========================================
   CHI SIAMO - TESTO E RIQUADRO
   ========================================== */

.about-section {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
    gap: 45px;
    padding: 20px 0 55px;
}

.about-text h2 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-text > p:not(.subtitle) {
    color: #64776a;
    margin-bottom: 15px;
    font-size: 15px;
}

.about-highlight {
    background: #e4f2e7;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
}

.about-letter {
    display: block;
    color: #21834b;
    font-size: 100px;
    line-height: 1.2;
    font-weight: bold;
}

.about-highlight h3 {
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.about-highlight p {
    color: #64776a;
    font-size: 14px;
}

/* ==========================================
   BANNER FINALE DELLE PAGINE
   ========================================== */

.program-cta {
    background: #21834b;
    color: white;
    padding: 40px;
    border-radius: 14px;
    margin-bottom: 55px;
}

.program-cta .subtitle {
    color: #d4f0db;
    margin-bottom: 12px;
}

.program-cta h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.program-cta p {
    color: #e2f2e6;
    margin-bottom: 22px;
}

/* ==========================================
   COME VOTARE
   ========================================== */

.vote-section {
    padding: 10px 0 55px;
}

.vote-heading {
    margin-bottom: 25px;
}

.vote-heading h2 {
    font-size: 27px;
    margin-bottom: 8px;
}

.vote-heading p {
    color: #64776a;
    font-size: 15px;
}

.vote-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.vote-card {
    background: white;
    border: 1px solid #e3ece4;
    border-radius: 12px;
    padding: 28px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.vote-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px #173d2a12;
}

.vote-number {
    display: inline-block;
    background: #e7f4e9;
    color: #21834b;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 15px;
}

.vote-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.vote-card p {
    color: #718174;
    font-size: 14px;
}

.vote-cta {
    background: #21834b;
    color: white;
    padding: 40px;
    border-radius: 14px;
    margin-bottom: 30px;
}

.vote-cta .subtitle {
    color: #d4f0db;
    margin-bottom: 12px;
}

.vote-cta h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.vote-cta > p:not(.subtitle) {
    color: #e2f2e6;
    max-width: 650px;
    margin-bottom: 22px;
}

.vote-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.vote-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: white;
    border: 1px solid #e3ece4;
    border-radius: 10px;
    padding: 22px;
    text-decoration: none;
    transition: border-color 0.2s;
}

.vote-link:hover {
    border-color: #21834b;
}

.vote-link span {
    color: #718174;
    font-size: 14px;
}

.vote-link strong {
    color: #21834b;
    font-size: 16px;
}

.vote-note {
    color: #718174;
    font-size: 13px;
    text-align: center;
    padding: 10px 0 50px;
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
    padding: 25px;
    text-align: center;
    background: white;
    border-top: 1px solid #e4eee6;
    color: #718174;
    font-size: 13px;
}

footer a {
    display: inline-block;
    color: #21834b;
    text-decoration: none;
    margin-top: 8px;
}

footer a:hover {
    text-decoration: underline;
}

/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */

@media (max-width: 900px) {

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

    .about-section {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* ==========================================
   RESPONSIVE - TELEFONI
   ========================================== */

@media (max-width: 750px) {

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

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    nav a {
        font-size: 13px;
    }

    main {
        padding: 0 18px;
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 45px 0;
    }

    .hero-decoration {
        width: 100%;
        flex: auto;
        height: 260px;
    }

    .values {
        grid-template-columns: 1fr;
        padding-bottom: 35px;
    }

    .bottom-section {
        grid-template-columns: 1fr;
    }

    .bottom-card {
        min-height: 260px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }
}

/* TELEFONI PICCOLI */

@media (max-width: 600px) {

    .page-hero {
        padding-top: 45px;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 12px;
        row-gap: 20px;
    }

    .team-member img {
        height: 160px;
    }

    .team-member h3 {
        font-size: 14px;
    }

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

    .about-text h2 {
        font-size: 28px;
    }

    .program-cta,
    .vote-cta {
        padding: 28px 22px;
    }

    .program-cta h2,
    .vote-cta h2 {
        font-size: 24px;
    }

    .vote-grid,
    .vote-links {
        grid-template-columns: 1fr;
    }

    .vote-heading h2 {
        font-size: 23px;
    }
}
