/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Tablet Landscape */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }

    .servizi-grid {
        gap: var(--space-xl);
    }
}

/* Tablet Portrait */
@media (max-width: 1024px) {
    :root {
        --space-section: 5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title-sub {
        display: block;
        margin-top: 0.25rem;
    }

    .hero-title-separator {
        display: none;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    /* Servizi grid: 2 columns */
    .servizi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Eventi grid 2 colonne */
    .eventi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Blog grid stays 2 columns but cards stack vertically */
    .blog-card {
        flex-direction: column;
    }

    .blog-card .blog-card-image {
        flex: none;
        width: 100%;
        aspect-ratio: 3/2;
    }

    .blog-card .blog-card-content {
        flex: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
        --space-section: 4rem;
    }

    .wrap {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Hero */
    .hero-section {
        background-attachment: scroll;
        overflow: hidden;
    }

    .hero-title {
        font-size: 2rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Servizi grid: 1 column */
    .servizi-grid {
        grid-template-columns: 1fr;
    }

    /* Grid eventi/blog */
    .eventi-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-card {
        flex-direction: column;
    }

    .blog-card .blog-card-image {
        flex: none;
        width: 100%;
        aspect-ratio: 3/2;
    }

    /* Newsletter form inline -> column */
    .newsletter-form-inline {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-input {
        width: 100%;
        max-width: 400px;
    }

    .newsletter-form-inline .btn {
        width: 100%;
        max-width: 400px;
    }

    /* Buttons full width */
    .section-cta .btn {
        width: 100%;
        text-align: center;
    }

    /* Servizi card */
    .servizio-titolo {
        font-size: var(--text-3xl);
    }

    /* Section headers */
    .section-title {
        font-size: var(--text-4xl);
    }

    /* Page title */
    .page-title-script {
        font-size: var(--text-4xl);
    }

    /* Contatti */
    .contatti-content {
        grid-template-columns: 1fr;
    }

    /* Chi siamo */
    .chi-siamo-intro {
        flex-direction: column;
    }

    .chi-siamo-image {
        order: -1;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .site-title .logo-text {
        font-size: var(--text-4xl);
    }

    .newsletter-title {
        font-size: var(--text-3xl);
    }
}
