/* --------------------------------------------------
   STILI GLOBALI
-------------------------------------------------- */

body {
    margin: 0;
    padding: 0;
    background: url('parchment-texture.png');
    background-size: cover;
    background-attachment: fixed;
    font-family: "Georgia", serif;
    color: #450000;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */

.header {
    background: rgba(255, 255, 255, 0.85);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #7A0000;
}

.logo-box {
    display: flex;
    gap: 15px;
    align-items: center;
}

.logo-square {
    width: 45px;
    height: 45px;
    background: #7A0000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.site-title {
    font-size: 26px;
    margin: 0;
}

.site-subtitle {
    margin: 0;
    font-style: italic;
    font-size: 14px;
    color: #555;
}

/* MENU */

.menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: #450000;
    font-weight: bold;
}

.cta-main {
    background: #7A0000;
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
}

/* --------------------------------------------------
   HERO
-------------------------------------------------- */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    gap: 50px;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 18px;
}

.hero-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: #7A0000;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
}

.btn-outline {
    border: 2px solid #7A0000;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    color: #7A0000;
}

.hero-img {
    max-width: 350px;
}

/* --------------------------------------------------
   CITAZIONE
-------------------------------------------------- */

.quote {
    text-align: center;
    font-size: 26px;
    font-style: italic;
    margin: 60px 0;
    color: #7A0000;
}

/* --------------------------------------------------
   SEZIONI GENERALI
-------------------------------------------------- */

.section {
    padding: 40px 60px;
}

.section-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
}

/* --------------------------------------------------
   GRIGLIE CORSI
-------------------------------------------------- */

.card-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: rgba(255, 255, 255, 0.85);
    padding: 20px;
    border-left: 4px solid #7A0000;
    border-radius: 6px;
}

.card-title {
    font-size: 22px;
    margin-top: 0;
}

.card-footer {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

.card-link {
    color: #7A0000;
    font-weight: bold;
    text-decoration: none;
}

/* --------------------------------------------------
   CHI SIAMO
-------------------------------------------------- */

.about-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    align-items: center;
}

.about-photo img {
    border-radius: 10px;
    border: 2px solid #7A0000;
}

/* --------------------------------------------------
   TESTIMONIANZE
-------------------------------------------------- */

.quote-box {
    background: rgba(255, 255, 255, 0.85);
    border-left: 4px solid #7A0000;
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
}

/* --------------------------------------------------
   FORM CONTATTO
-------------------------------------------------- */

.contact-form {
    display: grid;
    gap: 10px;
    max-width: 450px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #7A0000;
    font-size: 16px;
}

.contact-form button {
    background: #7A0000;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.contact-form button:hover {
    opacity: 0.9;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */

.footer {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    margin-top: 40px;
    font-size: 14px;
}

/* --------------------------------------------------
   VERSIONE MOBILE RESPONSIVE
-------------------------------------------------- */

@media (max-width: 768px) {

    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px 10px;
    }

    .menu {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        margin-top: 10px;
    }

    .hero {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
        gap: 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-img {
        max-width: 220px;
    }

    .section {
        padding: 20px 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-photo img {
        max-width: 180px;
        margin: 0 auto;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        font-size: 13px;
        padding: 15px;
    }
}
