/* ========================================
   ESTETICA 3D - Global Styles
   ======================================== */

:root {
    --primary-blue: #0066CC;
    --secondary-blue: #00A8E8;
    --accent-blue: #0099FF;
    --white: #FFFFFF;
    --light-bg: #F8F9FA;
    --dark-text: #1A1A1A;
    --gray-text: #666666;
    --border-color: #E0E0E0;
    --success: #10B981;
    --shadow: 0 4px 6px rgba(0, 102, 204, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 102, 204, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

/* ========================================
   TYPOGRAPHY & UTILITIES
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-text);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

p {
    color: var(--gray-text);
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-bottom: 3rem !important;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo-img {
    width: auto;
    height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0, 102, 204, 0.2));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05) rotate(5deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    animation: slideInUp 0.8s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
    animation: slideInUp 0.8s ease 0.2s backwards;
}

.hero .btn {
    animation: slideInUp 0.8s ease 0.4s backwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about {
    padding: 60px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--secondary-blue);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--gray-text);
    margin-bottom: 0;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--light-bg), #E3F2FD);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-text);
    border: 2px dashed var(--border-color);
}

.placeholder-image i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-blue);
}

.placeholder-image.small {
    aspect-ratio: auto;
    height: 200px;
}

.blog-image .placeholder-image {
    border: none;
    border-radius: 0;
    background: none;
}

/* ========================================
   SERVICES SECTION (Grid & Accordion Mobile)
   ======================================== */

.services {
    padding: 60px 0;
    background: linear-gradient(to bottom, var(--white), var(--light-bg));
}

.services-accordion {
    max-width: 1200px;
    margin: 0 auto;
}

.accordion-item {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.accordion-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-blue);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    transition: background-color 0.3s ease;
    outline: none;
}

.accordion-header:hover {
    background-color: rgba(0, 102, 204, 0.02);
}

.accordion-header .service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 168, 232, 0.08);
    border-radius: 10px;
    padding: 8px;
    flex-shrink: 0;
}

.accordion-header .service-icon img,
.accordion-header .service-icon svg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.accordion-panel {
    padding: 0 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-list li {
    padding: 0.75rem 0;
    color: var(--gray-text);
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.service-list li:not(:last-child) {
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
}

.service-list li span:last-child {
    font-weight: 600;
    color: var(--dark-text);
    margin-left: 10px;
    text-align: right;
}

.accordion-panel .btn {
    align-self: stretch;
    margin-top: auto;
}

/* --- DESKTOP LAYOUT (Griglia con schede aperte) --- */
@media (min-width: 768px) {
    .services-accordion {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
        align-items: stretch;
    }

    .accordion-item {
        height: 100%;
    }

    .accordion-header {
        pointer-events: none;
        cursor: default;
        border-bottom: 1px solid rgba(224, 224, 224, 0.4);
    }

    .accordion-panel {
        display: flex !important;
        padding-top: 1.5rem;
    }
}

/* --- MOBILE LAYOUT (Accordion a scomparsa) --- */
@media (max-width: 767px) {
    .services-accordion {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .accordion-header {
        position: relative;
    }

    .accordion-header::after {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        margin-left: auto;
        font-size: 1.2rem;
        color: var(--gray-text);
        transition: transform 0.3s ease;
    }

    .accordion-header.accordion-active::after {
        transform: rotate(180deg);
        color: var(--secondary-blue);
    }

    .accordion-panel {
        display: none;
        border-top: 1px solid rgba(224, 224, 224, 0.5);
        padding-top: 1.5rem;
    }

    .accordion-panel.accordion-open {
        display: flex !important;
    }
}

/* ========================================
   BLOG SECTION
   ======================================== */

.blog {
    padding: 60px 0;
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    color: var(--secondary-blue);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.blog-card p {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    width: fit-content;
}

.read-more:hover {
    gap: 0.8rem;
    color: var(--primary-blue);
}

/* ========================================
   GALLERY SECTION
   ======================================== */

.gallery {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--white) 100%);
}

.gallery-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-toggle {
    margin-top: 0.5rem;
}

.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.8);
    padding: 24px;
    align-items: center;
    justify-content: center;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal-content {
    position: relative;
    width: min(100%, 1100px);
    max-height: 90vh;
    overflow: auto;
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.gallery-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-blue);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-close:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.12);
    background: var(--white);
    border: 1px solid rgba(0, 102, 204, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 280px;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 102, 204, 0.18);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item .placeholder-image {
    width: 100%;
    height: 100%;
    border: none;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.35));
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1.25rem;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item,
    .gallery-item img {
        min-height: 240px;
    }
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials {
    padding: 60px 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-blue);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stars {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: var(--primary-blue);
}

.testimonial-author span {
    color: var(--gray-text);
    font-size: 0.85rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
}

.contact h2,
.contact .section-subtitle {
    color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.info-card {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.info-card p {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.info-card a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.info-card a:hover {
    text-decoration: underline;
}

/* ========================================
   CONTACT FORM
   ======================================== */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255,255,255,0.95);
    color: var(--dark-text);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    background: var(--white);
    color: var(--primary-blue);
    font-weight: 700;
    margin-top: 1rem;
}

.contact-form button:hover {
    background: var(--light-bg);
}

/* ========================================
   TESTIMONIAL FORM SECTION
   ======================================== */

.submit-testimonial-section {
    background: var(--light-bg);
}

.testimonial-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-col {
    display: flex;
    flex-direction: column;
}

.form-col label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.form-col input,
.form-col select,
.form-col textarea {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-col input:focus,
.form-col select:focus,
.form-col textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-col textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row:last-of-type {
    grid-template-columns: 1fr;
}

.testimonial-form .btn {
    align-self: flex-start;
}

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

.footer {
    background: var(--dark-text);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--secondary-blue);
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-blue);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.7);
}

/* ========================================
   RESPONSIVE DESIGN (GLOBAL OVERRIDES)
   ======================================== */

@media (max-width: 768px) {
    .nav-wrapper {
        padding: 0.5rem 0;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 1rem 0;
        gap: 0;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        text-align: center;
        padding: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    h2 {
        font-size: 2rem;
    }

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

    .hero {
        height: 400px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

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

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

    .gallery-item {
        margin-bottom: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .gallery-grid {
        columns: 1;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Supports smooth scroll */
@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}

/* ========================================
   COMPATTAZIONE MOBILE (solo smartphone)
   Riduce spazi vuoti, altezze e dimensioni per una
   visualizzazione più corta e ordinata su cellulare.
   Il layout desktop (>= 768px) resta invariato.
   ======================================== */
@media (max-width: 767px) {

    /* --- Spaziatura generale sezioni --- */
    .about,
    .services,
    .blog,
    .testimonials,
    .contact {
        padding: 36px 0;
    }

    .gallery {
        padding: 40px 0;
    }

    .submit-testimonial-section {
        padding: 36px 0 !important;
    }

    .footer {
        padding: 28px 0 16px;
    }

    h2 {
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        margin-bottom: 1.5rem !important;
    }

    /* --- Hero --- */
    .hero {
        height: 320px;
    }

    .hero h1 {
        margin-bottom: 0.5rem;
    }

    .hero p {
        margin-bottom: 1.25rem;
    }

    /* --- Chi Siamo --- */
    .about-content {
        gap: 1.5rem;
    }

    .about-text p {
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    .about-image img {
        width: 100% !important;
        height: 220px !important;
        object-fit: cover;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem;
        margin-top: 1.25rem;
    }

    .stat h3 {
        font-size: 1.4rem;
        margin-bottom: 0.15rem;
    }

    .stat p {
        font-size: 0.7rem;
    }

    /* --- Servizi (accordion) --- */
    .accordion-header {
        padding: 1rem 1.1rem;
        gap: 0.85rem;
        font-size: 1.05rem;
    }

    .accordion-header .service-icon {
        width: 46px;
        height: 46px;
        padding: 6px;
    }

    .accordion-header .service-icon img,
    .accordion-header .service-icon svg {
        width: 46px !important;
        height: 46px !important;
    }

    .accordion-panel {
        padding: 0 1.1rem 1.1rem 1.1rem;
    }

    .accordion-panel.accordion-open {
        padding-top: 1rem;
    }

    .service-list li {
        padding: 0.55rem 0;
        font-size: 0.9rem;
    }

    /* --- Blog: 3 card affiancate, versione compatta --- */
    .blog-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.6rem;
    }

    .blog-image {
        height: 100px;
    }

    .blog-content {
        padding: 0.55rem;
    }

    .blog-date {
        display: none;
    }

    .blog-card p {
        display: none;
    }

    .blog-card h3 {
        font-size: 0.72rem;
        line-height: 1.25;
        margin-bottom: 0.35rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .read-more {
        font-size: 0.65rem;
        gap: 0.25rem;
    }

    /* --- Galleria --- */
    .gallery-intro {
        margin-bottom: 1.25rem;
    }

    /* --- Recensioni --- */
    .testimonials-grid {
        gap: 1.25rem;
    }

    .testimonial-card {
        padding: 1.25rem;
    }

    .testimonial-form {
        gap: 1rem;
    }

    /* --- Contatti --- */
    .contact-wrapper {
        gap: 1.5rem;
    }

    .contact-info {
        gap: 0.75rem;
    }

    .info-card {
        padding: 1rem;
    }

    /* --- Footer --- */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .footer-section h3 {
        margin-bottom: 0.5rem;
    }

    .footer-section p {
        margin-bottom: 0.5rem;
    }

    .footer-bottom {
        padding-top: 1.25rem;
    }
}
/* ========================================
   BETA NOTICE OVERLAY
======================================== */
.beta-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 15, 25, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: betaFadeIn 0.35s ease;
}

.beta-overlay.beta-hidden {
    display: none;
}

.beta-banner {
    position: relative;
    max-width: 460px;
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: betaPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.beta-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f3f0f4;
    color: #444;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
    animation: betaPulse 1.8s ease-in-out infinite;
}

.beta-close:hover {
    background: #e74c3c;
    color: #fff;
    transform: scale(1.1) rotate(90deg);
}

.beta-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8d4e0, #f3b8cf);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #b0356a;
}

.beta-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: #222;
}

.beta-text {
    font-size: 14.5px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 16px;
}

.beta-text a {
    color: #b0356a;
    font-weight: 600;
    text-decoration: none;
}

.beta-text a:hover {
    text-decoration: underline;
}

.beta-hint {
    font-size: 12.5px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

@keyframes betaFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes betaPopIn {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes betaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(231, 76, 60, 0); }
}

@media (max-width: 480px) {
    .beta-banner {
        padding: 30px 22px 22px;
    }
}