﻿/* ------------------------------------
   BASE
------------------------------------ */

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #1E3A5F;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 {
    font-weight: 600;
    margin: 0;
}

p {
    margin: 0 0 20px 0;
    line-height: 1.6;
}

/* ------------------------------------
   HERO
------------------------------------ */

.hero {
    text-align: center;
    padding: 60px 20px;
    background-color: #ffffff;
}

.logo {
    width: 160px;
    margin-bottom: 20px;
}

/* Versione ridotta per pagine interne */
.small-hero {
    padding-top: 30px;
    padding-bottom: 20px;
}

    .small-hero .logo {
        width: 120px;
        margin-bottom: 10px;
    }

    .small-hero .navbar {
        margin-top: 10px;
        margin-bottom: 20px;
    }

/* ------------------------------------
   NAVBAR
------------------------------------ */

.navbar {
    margin-top: 20px;
    margin-bottom: 40px;
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

    .navbar a {
        color: #00A8B8;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
    }

        .navbar a:hover {
            text-decoration: underline;
        }

/* ------------------------------------
   BUTTON
------------------------------------ */

.button {
    display: inline-block;
    background-color: #00A8B8;
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

    .button:hover {
        background-color: #008a97;
    }

/* ------------------------------------
   SECTIONS
------------------------------------ */

.section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

    .section.alt {
        background-color: #f9fafb;
    }

/* ------------------------------------
   CARDS
------------------------------------ */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    background-color: #ffffff;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .card h3 {
        color: #00A8B8;
        margin-bottom: 10px;
    }

    .card p {
        margin-bottom: 0;
    }

    .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    }

/* ------------------------------------
   CONTACT SECTION
------------------------------------ */

.contact a {
    color: #00A8B8;
    text-decoration: none;
    font-weight: 600;
}

    .contact a:hover {
        text-decoration: underline;
    }

/* ------------------------------------
   FOOTER
------------------------------------ */

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #777;
    padding: 20px;
    margin-top: auto;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
}

    .footer a {
        color: #00A8B8;
        text-decoration: none;
        font-weight: 600;
    }

        .footer a:hover {
            text-decoration: underline;
        }

.footer-center {
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-right span {
    margin: 0 6px;
}

/* ------------------------------------
   ABOUT PAGE (CHI SONO)
------------------------------------ */

.about-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
}

.about-text {
    flex: 2;
    text-align: left;
}

    .about-text ul {
        padding-left: 20px;
        line-height: 1.7;
    }

.about-photo {
    flex: 1;
    display: flex;
    justify-content: center;
}

    .about-photo img {
        width: 100%;
        max-width: 350px;
        border-radius: 12px;
        box-shadow: 0px 3px 12px rgba(0,0,0,0.12);
    }

.about-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

    .about-gallery img {
        width: 100%;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    }

/* ------------------------------------
   RESPONSIVE
------------------------------------ */

@media (max-width: 768px) {

    .logo {
        width: 130px;
    }

    .hero {
        padding: 40px 20px;
    }

    .subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 25px;
    }

    .section {
        padding: 50px 20px;
    }

    .cards {
        gap: 20px;
    }

    .card {
        padding: 20px;
    }

    .footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .navbar {
        gap: 14px;
    }
}

@media (max-width: 900px) {
    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

    .about-photo img {
        max-width: 260px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 110px;
    }

    h1 {
        font-size: 1.3rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .card p {
        font-size: 0.95rem;
    }

    .button {
        width: 100%;
        max-width: 280px;
    }
}
