/* Responsive Design Styles */


/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
        margin-top: 1rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
}


/* Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .booking-content {
        gap: 3rem;
    }
    
    .plans-section {
        padding-left: 40px;
        padding-right: 40px;
    }

    .plans-section p {
        max-width: 900px;
        margin: 0 auto;
    }

    .contact-content {
        gap: 3rem;
    }

}


/* Tablet (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        padding: 0 30px;
    }

    .nav-link {
        padding: 1rem 1rem;
        border-bottom: 1px solid #eee;
        text-align: center;
        width: 100%;
        display: block;
    }

    .dropdown-toggle {
        border-bottom: 1px solid #eee;
    }
    
    /* Typography adjustments */
    .hero-text h1 {
        font-size: 2.5rem;
        margin-top: 1rem;
    }
    
    .hero-text h2 {
        font-size: 1.3rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    /* Layout adjustments */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        height: 350px;
    }

    .hero-landing-image {
        order: -1;
    }
    
    .hero-landing-image img {
        height: 350px;
    }
    
    .stats-content,
    .stats-section-green .stats-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .stats-visual {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-image {
        order: -1;
    }
    
    .plans-section p {
        padding: 0 30px;
    }

    .booking-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid,
    .services-detailed {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    
    .footer-links {
        margin-left: 30px;
    }

    
    /* COLONNA SINGOLA */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .transformations-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

}

/* Whatsapp button */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
  }
  .whatsapp-float .whatsapp-icon {
    width: 26px;
    height: 26px;
  }
}

/* Mobile Large (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        padding: 0 25px;
    }

    /* Navigation */
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 150px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid #eee;
        font-size: 1rem;
    }
    
    .nav-cta {
        margin: 1rem 2rem;
        text-align: center;
        font-size: 1rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Cookie consent mobile */
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
    }


    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    /* Hero adjustments */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
        margin-top: 1rem;
    }
    
    .hero-text h2 {
        font-size: 1.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-image img {
        height: 300px;
    }

    .hero-landing-image img {
        height: 300px;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }


    .section-header {
        margin-bottom: 1rem;
        overflow-x: hidden;
    }


    .section-header h2 {
        font-size: 1.4rem;
        line-height: 1.3;
    }


    .section-header p {
        font-size: 0.95rem;
    }
    
    /* Layout adjustments */
    .stats-visual {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-section-green {
        padding: 40px 0;
        overflow-x: hidden;
    }
    
    .stats-section-green .container {
        overflow-x: hidden;
    }
    
    .stats-section-green .stats-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Fix stats text overflow */
    .stats-text h2 {
        font-size: 1.6rem;
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    .stats-highlight {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .stats-details {
        font-size: 0.9rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-item .stat-number {
        font-size: 1.8rem;
        word-wrap: break-word;
    }
    
    .stat-item .stat-label {
        font-size: 0.8rem;
        word-wrap: break-word;
    }
    
    .stats-section-green .stats-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .stats-text h2 {
        font-size: 1.8rem;
        word-wrap: break-word;
    }
    
    .stats-highlight {
        font-size: 1.1rem;
        word-wrap: break-word;
    }
    
    .stat-item {
        padding: 1.2rem;
    }
    
    .stat-item .stat-number {
        font-size: 2rem;
        word-wrap: break-word;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-detailed {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .booking-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Form adjustments */
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

}

/* Mobile (575px and below) - SCROLLABLE MENU */
@media (max-width: 575px) {
    .page-header h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Scrollable menu */
    .navbar .container {
        padding: 0.5rem 20px;
        width: 100%;
        max-width: 100%;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo-text h3 {
        font-size: 1.2rem;
    }
    
    .logo-text span {
        font-size: 0.75rem;
    }
    
    .logo-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 2rem 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 150px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid #eee;
        text-align: left;
        width: 100%;
        display: block;
        font-size: 1rem;
    }
    
    .nav-cta {
        margin: 1rem 2rem;
        padding: 0.7rem;
        text-align: center;
        display: block;
        width: calc(100% - 4rem);
        font-size: 1rem;
    }
    
    .nav-toggle {
        display: flex;
        background: none;
        border: none;
        padding: 5px;
        cursor: pointer;
        z-index: 10001;
        position: relative;
        width: 30px;
        height: 30px;
        justify-content: center;
    }
    
    .nav-toggle span {
        width: 25px;
        height: 3px;
        background: #16a34a;
        margin: 3px 0;
        transition: 0.3s;
        display: block;
    }

    /* Dropdown mobile */
    .nav-item-dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 1rem 2rem;
        position: relative;
    }

    .dropdown-toggle .dropdown-arrow {
        position: absolute;
        right: 2rem;
        margin-left: auto;
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        background: #f8fffe;
        box-shadow: none;
        border: none;
        margin: 0;
        border-radius: 0;
        transform: none;
        transition: max-height 0.3s ease, opacity 0.2s ease;
    }

    .nav-item-dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 600px;
    }

    .nav-item-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-item {
        padding: 7px 2rem;
        border-radius: 0;
        border-left: none;
        border-bottom: 1px solid #eee;
        text-align: center;
        font-size: 0.95rem;
    }

    .dropdown-item:last-child {
        border-bottom: 1px solid #eee;;
        border-radius: 0;
    }

    .dropdown-item:hover {
    padding: 7px 2rem;
    background: linear-gradient(90deg, rgba(22, 163, 74, 0.08) 0%, rgba(34, 197, 94, 0.04) 100%);
    border-left-color: transparent;
    }

    .dropdown-divider {
    display: none;
    }
    
    /* Hamburger Animation */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    /* Hero */
    .hero {
        padding: 80px 0 10px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        overflow-x: hidden;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-top: 1rem;
    }
    
    .hero-text h2 {
        font-size: 1.1rem;
    }
    
    .hero-text p {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1rem;
    }
    
    .hero-image img {
        height: 250px;
        width: 100%;
        object-fit: cover;
        box-shadow: none;
    }

    .hero-landing-image img {
        height: 250px;
        width: 100%;
        object-fit: cover;
        box-shadow: none;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
        overflow-x: hidden;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
    
    /* Stats */
    .stats-section-green {
        overflow-x: hidden;
        width: 100%;
        padding: 30px 0;
    }
    
    .stats-section {
        padding: 40px 0;
    }
    
    .stats-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
        overflow-x: hidden;
    }
    
    .stats-text {
        overflow-x: hidden;
    }
    
    .stats-text h2 {
        font-size: 1.6rem;
        line-height: 1.3;
        word-wrap: break-word;
        hyphens: auto;
        overflow-wrap: break-word;
    }
    
    .stats-highlight {
        font-size: 1rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .stats-visual {
        flex-direction: column;
        gap: 0.8rem;
        overflow-x: hidden;
    }
    
    .stat-item-clean {
        width: 100%;
        max-width: 200px;
        margin: 0 auto; 
    }
    
    .stat-item-clean .stat-number {
        font-size: 2rem;
        word-wrap: break-word;
        margin-bottom: -15px;
        margin-top: -5px;
    }
    
    .stat-item-clean .stat-label {
        font-size: 0.85rem;
        word-wrap: break-word;
        line-height: 1.2;
        margin-bottom: -10px;
    }
    
    .stats-footer {
        overflow-x: hidden;
        padding: 10px;
    }
        
    .stats-footer p {
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        margin-bottom: -10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .stats-cta {
        padding: 1.5rem;
    }
    
    .stats-message {
        font-size: 1rem;
    }
    
    .stats-action {
        font-size: 1.1rem;
    }
    
    /* Transformations */
    .transformations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        overflow-x: hidden;
    }
    
    .transformation-card {
        padding: 1.2rem;
    }
    
    .before-after-slider {
        height: 180px;
        width: 100%;
    }
    
    /* Cards and Components */

    @media (max-width: 768px) {
        .blog-card {
            padding: 0 !important; 
            border-radius: 20px;
            overflow: hidden;
            transform: translateZ(0);
            width: 95%;
            margin: 0 auto;
        }

        .blog-image {
            width: 100%;
            margin: 0;
            padding: 0;
        }

        .blog-image img {
            width: 100%;
            display: block;
            border-top-left-radius: 20px;
            border-top-right-radius: 20px;
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
        }

        .blog-content {
            padding: 1.5rem; 
        }
    }

    .service-card, .review-card, .blog-card {
        padding: 1.2rem;
    }
    
    .service-card h3, .review-card h3 {
        font-size: 1.2rem;
    }
    
    .service-item {
        padding: 1.5rem;
    }
    
    .service-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }
   
    .step {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .plans-section p {
        margin: 0rem 1.2rem;
    }
    
    /* About */
    .page-header {
        padding: 100px 0 20px;
        margin-bottom: 0;
    }

    .page-header.double-line {
        padding: 100px 0 20px;
    }  

    section.about-section {
        padding-top: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
        overflow-x: hidden;
        padding-top: 0;
    }

    .about-image {
        position: relative;
        min-height: 0;
        height: auto;
    }

    .about-image img {
        position: relative;
        height: 350px;
        width: 100%;
        object-fit: cover;
        display: block;
    }

    .specializations {
        text-align: left;
    }

    .credentials {
    margin: 0.3rem 0 1rem;
    line-height: 1.4;
    }
    
    /* Tools */
    .tools-section {
        padding: 2rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tool-item {
        padding: 1rem;
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0,5rem;
    }
    
    .booking-form, .anamnesi-form {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    /* Booking */
    .booking-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        overflow-x: hidden;
    }
    
    .booking-text h2 {
    text-align: center;
    }


    .booking-text p {
    text-align: center;
    }

    .info-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: left;
    }
    
    .info-item strong {
        min-width: unset;
    }

    /* Carosello recensioni booking form --- */
    @media (max-width: 768px) {
        
        .booking-trust {
            padding: 1.2rem 1rem 0.5rem 1rem; 
        }

        .trust-carousel {
            height: 110px; 
        }

        .booking-trust .trust-quote {
            font-size: 0.9rem;
            line-height: 1.4;
        }
        
        .booking-trust .trust-footer {
            margin-top: 0.5rem;
            padding-top: 0.5rem;
        }
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        overflow-x: hidden;
    }
    
    .contact-details {
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1.2rem;
    }
    
    .map-placeholder {
        padding: 2rem;
        width: 100%;
    }
    
    /* BMI Calculator */
    .bmi-form {
        padding: 1.5rem;
    }
    
    .result-box {
        padding: 1.5rem;
    }
    
    .bmi-value {
        font-size: 2.5rem;
    }
    
    .bmi-status {
        font-size: 1.3rem;
    }
    
    .bmi-info-content p {
    margin: 1rem 1rem;
    }

    .bmi-disclaimer p {
    text-align: left;
    margin: 0 0;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        margin-left: 0 !important;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Buttons */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center; 
        line-height: 1; 
    }
    
    .hero-cta .btn {
        padding: 0.8rem 2rem;
    }
    
    /* Blog */
    .blog-image img {
        height: 180px;
        width: 100%;
        object-fit: cover;
    }
    
    .blog-grid {
        overflow-x: hidden;
    }
    
    .blog-content {
        padding: 1.2rem;
    }

    /* Blog Pagination */
    @media (max-width: 768px) {
            .page-link .mobile-arrow {
            display: inline;
            font-size: 1.2rem;
            line-height: 1;
            position: relative;
            top: -2px;
        }
        
        .page-link .desktop-text {
            display: none;
        }

        .pagination {
            gap: 6px;
            margin-top: 2rem;
            flex-wrap: wrap;
        }
        
        .page-link {
            padding: 4px 10px; 
            font-size: 0.9rem;
            min-width: 32px;
            height: 32px;
            
            display: inline-flex;
            align-items: center;
            justify-content: center;
            
            line-height: 1; 
        }
    }

    /* Transformations */
    .before-after-slider {
        height: 160px;
        width: 100%;
    }
    
    .transformation-card p {
        font-size: 0.85rem;
    }
    
    /* BMI */
    .bmi-value {
        font-size: 2.2rem;
    }
    
    .bmi-status {
        font-size: 1.2rem;
    }
    
    /* Fix form overflow */
    .contact-form,
    .booking-form,
    .bmi-form {
        width: 100%;
        overflow-x: hidden;
    }
    
    /* Utility adjustments */
    .p-2 { padding: 0.8rem; }
    .p-3 { padding: 1.2rem; }
    .p-4 { padding: 1.6rem; }


    .px-2 { padding-left: 0.8rem; padding-right: 0.8rem; }
    .px-3 { padding-left: 1.2rem; padding-right: 1.2rem; }
    .px-4 { padding-left: 1.6rem; padding-right: 1.6rem; }


    .py-2 { padding-top: 0.8rem; padding-bottom: 0.8rem; }
    .py-3 { padding-top: 1.2rem; padding-bottom: 1.2rem; }
    .py-4 { padding-top: 1.6rem; padding-bottom: 1.6rem; }


    /* Cookie consent mobile */
    .cookie-consent {
        padding: 1rem;
    }


    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }


    .cookie-text {
        min-width: auto;
    }


    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }


    .cookie-buttons button {
        width: 100%;
    }


    /* Back to top mobile */
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}


/* Extra Small Mobile (400px and below) */
@media (max-width: 400px) {
    .container {
        padding: 0 10px;
        width: 100%;
    }
    
    .hero-text h1 {
        font-size: 1.6rem;
        margin-top: 1rem;
    }
    
    .hero-text h2 {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .stats-message {
        font-size: 0.95rem;
    }
    
    .stats-action {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .service-card, .review-card {
        padding: 1rem;
    }
    
    .booking-form {
        padding: 1.2rem;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Extra small fixes */
    .stats-text h2 {
        font-size: 1.4rem;
        line-height: 1.1;
        margin-top: 0rem;
        margin-bottom: 1.0rem;
    }
    
    .stats-highlight {
        font-size: 0.95rem;
    }

    /* CORRETTO: COLONNA SINGOLA */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero-image img {
        height: 200px;
    }

    .hero-landing-image img {
        height: 200px;
    }
    
    section {
        padding: 30px 0;
    }
    
    .stats-section {
        padding: 30px 0;
    }
}


/* Print Styles */
@media print {
    .navbar,
    .hero-cta,
    .booking-form,
    .nav-toggle {
        display: none;
    }
    
    body {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .hero {
        padding: 20px 0;
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .service-card,
    .review-card,
    .blog-card {
        page-break-inside: avoid;
        margin-bottom: 10px;
    }
}


/* High DPI/Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img,
    .hero-landing-image img,
    .about-image img,
    .blog-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}


/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}


/* Dark Mode Support (for future implementation) */
@media (prefers-color-scheme: dark) {
    /* This can be uncommented when dark mode is implemented
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .navbar {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .service-card,
    .review-card,
    .blog-card {
        background: #2a2a2a;
        border-color: rgba(167, 201, 87, 0.2);
    }
    */
}


/* Touch Device Optimizations */
@media (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 0.4rem 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
    }
    
    input, select, textarea {
        min-height: 44px;
    }
    
    .service-card:hover,
    .review-card:hover,
    .blog-card:hover {
        transform: none;
    }
}


/* Hover-capable devices */
@media (hover: hover) and (pointer: fine) {
    .service-card:hover,
    .review-card:hover,
    .blog-card:hover,
    .step:hover {
        transform: translateY(-5px);
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
}


/* Cookie Modal Mobile */
@media (max-width: 768px) {
    .cookie-modal {
        padding: 10px;
    }


    .cookie-modal-content {
        display: flex;
        flex-direction: column;
        border-radius: 12px;
        min-height: min(450px, calc(100vh - 30px));
        max-height: calc(100vh - 30px);
        height: auto;
        min-height: 0;
        overflow: hidden;
    }


    .cookie-modal-header {
        flex: 0 0 auto;
        border-radius: 12px 12px 0 0;
        padding: 16px 20px;
        border-bottom: 1px solid #eee;
    }


    .cookie-modal-header h2 {
        font-size: 17px;
        line-height: 1.3;
    }


    .cookie-modal-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 0 20px 8px 20px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }


    .cookie-modal-body::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }


    .cookie-category {
        margin-bottom: 14px;
        padding-bottom: 14px;
    }


    .cookie-category:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }


    .cookie-category-title h3 {
        font-size: 15px;
        margin-bottom: 4px;
    }


    .cookie-category p {
        font-size: 13px;
        line-height: 1.5;
    }


    .cookie-modal-footer {
        flex: 0 0 auto;
        border-radius: 0 0 12px 12px;
        padding: 12px 20px 14px 20px;
        display: flex;
        flex-direction: column;
        gap: 7px;
        border-top: 1px solid #eee;
    }


    .cookie-modal-footer button {
        width: 100%;
        margin: 0;
        padding: 10px 16px;
        font-size: 14px;
    }
}


/* Schermi molto piccoli */
@media (max-width: 400px) {
    .cookie-modal-content {
        min-height: min(400px, calc(100vh - 20px));
        max-height: calc(100vh - 20px);
    }
    
    .cookie-modal-header {
        padding: 14px 18px;
    }
    
    .cookie-modal-body {
        padding: 0 18px 6px 18px;
    }
    
    .cookie-category {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    .cookie-modal-footer {
        padding: 10px 18px 12px 18px;
    }
}


/* Schermi tablet */
@media (min-width: 600px) and (max-width: 768px) {
    .cookie-modal-content {
        min-height: min(500px, calc(100vh - 40px));
        max-height: calc(100vh - 40px);
    }
}

/* Fix universale per form prenotazioni */
@media (max-width: 768px) {
    .booking-form {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        overflow-x: hidden;
    }

    .form-group {
        width: 100%;
    }

    .form-group select, 
    select#tipo-servizio {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        
        display: block;
        box-sizing: border-box;
        
        font-size: 14px !important;
        padding-right: 25px; 
    }
    
    .form-group select option {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
