/* ==========================================================
   PAGE.CSS — Stili per le pagine interne (non index.html)
   Sovrascrive riusalo.css dove necessario
========================================================== */
/* INTRO SECTION — TITOLI */
.cf-intro-inner h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f4300;
    margin-top: 32px;
    margin-bottom: 10px;
}

.cf-intro-inner h3:first-child {
    margin-top: 0;
}

/* INTRO SECTION — CARD CON FOTO */
.cf-intro-section {
    background: #e8f5e9;
    padding: 72px 60px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    width: 100%;
    box-sizing: border-box;
}

.cf-intro-card {
    display: flex;
    gap: 40px;
    align-items: stretch;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-shadow: 0 4px 18px rgba(0,0,0,.07);
}

.cf-intro-photo {
    flex: 0 0 380px;
    min-height: 240px;
}

.cf-intro-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cf-intro-text {
    flex: 1;
    padding: 36px 40px 36px 0;
}

.cf-intro-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f4300;
    margin-bottom: 14px;
}

.cf-intro-text p {
    font-size: 0.97rem;
    line-height: 1.8;
    color: #3d5c3e;
}

@media (max-width: 900px) {
    .cf-intro-section {
        padding: 40px 20px;
    }
    .cf-intro-card {
        flex-direction: column;
    }
    .cf-intro-photo {
        flex: none;
        width: 100%;
        min-height: 200px;
    }
    .cf-intro-text {
        padding: 24px;
    }
}

/* ==========================================================
   HERO — IMMAGINE SPECIFICA PER PAGE2
========================================================== */
.riusalo-v2 .hero {
    background: linear-gradient(105deg, var(--green-dark) 45%, transparent 45%),
                url('../img/hero-cosa.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 82% center;
    justify-content: flex-start;
}

/* HERO — IMMAGINE SPECIFICA PER PAGE6 */
body.page-page6 .hero {
    background: linear-gradient(105deg, var(--green-dark) 45%, transparent 45%),
                url('../img/hero-contatti.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

/* HERO — H1 */
.riusalo-v2 .hero-content h1 {
    margin-bottom: 0;
    color: #1a5c2e;
}

/* HERO — SOTTOTITOLO */
.riusalo-v2 .hero-content .hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #f28c3a;
    margin-top: 4px;
    margin-bottom: 0;
}
 
/* HERO — PARAGRAFO */
.riusalo-v2 .hero-content p {
   
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
}

/* ==========================================================
   BLOCKS SECTION
========================================================== */
.cf-blocks-section {
    padding: 72px 40px;
    background: #fff;
    box-sizing: border-box;
    width: 100%;
}
.cf-blocks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    max-width: 1100px;
    margin: 0 auto;
}
.cf-block {
    background: var(--green-bg, #f0f7f1);
    border-radius: 18px;
    padding: 40px 32px;
    text-align: center;
}
.cf-block-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 20px;
}
.cf-block h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f4300;
    margin-bottom: 14px;
}
.cf-block p {
    font-size: 0.97rem;
    line-height: 1.7;
    color: #3d5c3e;
}

/* ==========================================================
   STEPS SECTION
========================================================== */
.cf-steps-section {
    background: #0f4300;
    padding: 72px 40px;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}
.cf-steps-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 52px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cf-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}
.cf-steps-grid::before {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(16.66% + 16px);
    right: calc(16.66% + 16px);
    height: 2px;
    background: rgba(255,255,255,.2);
}
.cf-step {
    position: relative;
}
.cf-step-number {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #8cc63e;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
}
.cf-step h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}
.cf-step p {
    font-size: 0.93rem;
    line-height: 1.65;
    color: rgba(255,255,255,.75);
}

/* ==========================================================
   DETAIL SECTION
========================================================== */
.cf-detail-section {
    background: #fff;
    padding: 72px 60px;
    box-sizing: border-box;
    width: 100%;
}
.cf-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    max-width: 1400px;
    margin: 0 auto;
}
.cf-detail-note-icon {
    font-size: 3rem;
    color: #8cc63e;
    margin-bottom: 24px;
}
.cf-detail-card {
    background: var(--green-bg, #f0f7f1);
    border-radius: 18px;
    padding: 40px 36px;
}
.cf-detail-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
    object-fit: cover;
}

.cf-detail-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f4300;
    margin-bottom: 16px;
    line-height: 1.3;
}
.cf-detail-card p {
    font-size: 0.96rem;
    line-height: 1.8;
    color: #3d5c3e;
}
/* ==========================================================
   CTA SECTION
========================================================== */
.cf-cta-section {
    background: linear-gradient(105deg, #0f4300, #214f00);
    padding: 80px 40px;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}
.cf-cta-inner {
    max-width: 680px;
    margin: 0 auto;
}
.cf-cta-inner h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
}
.cf-cta-inner p {
    font-size: 1.1rem;
    color: rgba(255,255,255,.8);
    line-height: 1.7;
    margin-bottom: 8px;
}
.cf-cta-inner .hero-buttons {
    justify-content: center;
}

/* ==========================================================
   RESPONSIVE
========================================================== */
@media (max-width: 900px) {
    .cf-blocks-grid,
    .cf-steps-grid,
    .cf-detail-grid {
        grid-template-columns: 1fr;
    }
    .cf-steps-grid::before { display: none; }
    .cf-blocks-section,
    .cf-steps-section,
    .cf-detail-section,
    .cf-cta-section,
    .cf-intro-section { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 520px) {
    .cf-detail-note { flex-direction: column; text-align: center; }
    .cf-cta-inner h2 { font-size: 1.8rem; }
}

/* ==========================================================
   PAGINA CONTATTI (page6.html)
========================================================== */

/* CANALI DI CONTATTO */
.ct-canali-section {
    background: var(--green-pale);
    padding: 64px 60px;
    box-sizing: border-box;
    width: 100%;
}
.ct-canali-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}
.ct-canale-card {
    background: #fff;
    border-radius: 18px;
    padding: 36px 28px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ct-canale-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #0f4300;
    color: #8cc63e;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}
.ct-canale-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f4300;
}
.ct-canale-card p {
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--gray-text);
    flex: 1;
}
.ct-canale-card a {
    font-weight: 700;
    color: var(--orange);
    text-decoration: none;
    font-size: 0.95rem;
}
.ct-canale-card a:hover {
    text-decoration: underline;
}

/* FORM + INFO */
.contatti-section {
    background: #fff;
    padding: 72px 60px;
    box-sizing: border-box;
    width: 100%;
}
.contatti-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 56px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}
.contatti-form-wrap h2,
.contatti-info-wrap h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #0f4300;
    margin-bottom: 28px;
}
.contatti-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-row {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.form-row label {
    font-weight: 700;
    font-size: 0.93rem;
    color: #2d4a2e;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
    border: 2px solid #d4e8d6;
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: #222;
    transition: border-color 0.2s;
    outline: none;
    width: 100%;
}
.form-row input:focus,
.form-row textarea:focus {
    border-color: #1a5c2e;
}
.form-row textarea {
    resize: vertical;
}
.form-check {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}
.form-check input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #0f4300;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.form-check label {
    font-size: 0.9rem;
    color: var(--gray-text);
}
.form-check a {
    color: #0f4300;
    font-weight: 700;
}
.ct-required {
    color: var(--orange);
}

/* SELETTORE PROFILO */
.ct-profilo-selector {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    background: var(--green-pale);
    border-radius: 12px;
    padding: 14px 18px;
}
.ct-profilo-label {
    font-weight: 700;
    font-size: 0.93rem;
    color: #2d4a2e;
    margin-right: 4px;
}
.ct-profilo-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    color: #2d4a2e;
}
.ct-profilo-option input[type="radio"] {
    accent-color: #0f4300;
    width: 16px;
    height: 16px;
}

/* INFO LIST */
.contatti-info-wrap {
    background: var(--green-pale);
    border-radius: 20px;
    padding: 36px 32px;
}
.contatti-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}
.contatti-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.contatti-info-list li i {
    color: #0f4300;
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}
.contatti-info-list li div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.contatti-info-list strong {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0f4300;
}
.contatti-info-list span,
.contatti-info-list a {
    font-size: 0.95rem;
    color: #3d5c3e;
}
.contatti-info-list a {
    color: var(--orange);
    font-weight: 700;
    text-decoration: none;
}
.contatti-info-list a:hover {
    text-decoration: underline;
}
.contatti-social {
    display: flex;
    gap: 12px;
}
.contatti-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0f4300;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s;
}
.contatti-social a:hover {
    background: #8cc63e;
}

/* SEZIONE COMUNI */
.contatti-comuni-section {
    background: linear-gradient(105deg, #0f4300, #214f00);
    padding: 60px 60px;
    box-sizing: border-box;
    width: 100%;
}
.contatti-comuni-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
}
.contatti-comuni-inner > i {
    font-size: 3rem;
    color: #8cc63e;
    flex-shrink: 0;
}
.contatti-comuni-inner div {
    flex: 1;
}
.contatti-comuni-inner h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
}
.contatti-comuni-inner p {
    color: rgba(255,255,255,.8);
    font-size: 1rem;
    line-height: 1.6;
}

/* RESPONSIVE CONTATTI */
@media (max-width: 900px) {
    .ct-canali-grid {
        grid-template-columns: 1fr;
    }
    .contatti-grid {
        grid-template-columns: 1fr;
    }
    .ct-canali-section,
    .contatti-section,
    .contatti-comuni-section {
        padding-left: 20px;
        padding-right: 20px;
    }
    .contatti-comuni-inner {
        flex-direction: column;
        text-align: center;
    }
    .ct-profilo-selector {
        flex-wrap: wrap;
    }
}
