/**
 * F.LLI PERTOSO SRL - Responsive Styles
 * Mobile-first approach
 */

/* ============================================
   TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --container-padding: 1.5rem;
    }
    
    /* Navigation */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-white);
        z-index: var(--z-modal);
        padding: var(--space-20) var(--space-6) var(--space-6);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        overflow-y: auto;
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
    }
    
    .nav-link {
        padding: var(--space-4);
        font-size: var(--font-size-lg);
        border-bottom: 1px solid var(--color-gray-200);
    }
    
    .has-dropdown .nav-link::after {
        float: right;
        margin-top: 8px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--color-gray-50);
        display: none;
    }
    
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
        order: -1;
    }
    
    .header-cta {
        display: none;
    }
    
    /* Hero */
    .hero {
        padding: var(--space-16) 0;
    }
    
    .hero h1 {
        font-size: var(--font-size-4xl);
    }
    
    /* Footer Grid */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    /* Top Bar */
    .top-bar .container {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }
    
    .top-bar-left {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .top-bar-right {
        width: 100%;
        justify-content: center;
    }
    
    /* Header */
    .header-wrapper {
        padding: var(--space-3) 0;
    }
    
    .logo-text-main {
        font-size: var(--font-size-xl);
    }
    
    .logo-text-sub {
        font-size: var(--font-size-xs);
    }
    
    /* Hero */
    .hero {
        padding: var(--space-12) 0;
    }
    
    .hero h1 {
        font-size: var(--font-size-3xl);
    }
    
    .hero p {
        font-size: var(--font-size-lg);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero .btn-primary,
    .hero .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    /* Sections */
    .section {
        padding: var(--space-12) 0;
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-header {
        margin-bottom: var(--space-10);
    }
    
    /* Cards */
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    /* Features */
    .features-list {
        grid-template-columns: 1fr;
    }
    
    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA */
    .cta-section h2 {
        font-size: var(--font-size-2xl);
    }
    
    .cta-section p {
        font-size: var(--font-size-base);
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-section .btn-primary,
    .cta-section .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    /* Info Boxes */
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    /* Map */
    .map-container {
        height: 300px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .footer-bottom-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Breadcrumb */
    .breadcrumb-wrapper {
        padding: var(--space-2) 0;
    }
    
    /* WhatsApp Float */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: var(--space-4);
        right: var(--space-4);
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: var(--space-4);
        left: var(--space-4);
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    /* Legal Content */
    .legal-content {
        padding: var(--space-8) 0;
    }
    
    .legal-content h1 {
        font-size: var(--font-size-2xl);
    }
}

/* ============================================
   SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    /* Hero */
    .hero h1 {
        font-size: var(--font-size-2xl);
    }
    
    .hero p {
        font-size: var(--font-size-base);
    }
    
    /* Card Content */
    .card-content {
        padding: var(--space-4);
    }
    
    .card-title {
        font-size: var(--font-size-lg);
    }
    
    /* Top Bar Buttons */
    .top-bar-cta,
    .top-bar-whatsapp {
        padding: var(--space-2) var(--space-3);
        font-size: var(--font-size-xs);
    }
    
    /* Feature Cards */
    .feature-card {
        padding: var(--space-6);
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon svg {
        width: 30px;
        height: 30px;
    }
    
    /* Review Cards */
    .review-card {
        padding: var(--space-6);
    }
    
    /* Section Titles */
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
}

/* ============================================
   LANDSCAPE MOBILE
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: var(--space-8) 0;
    }
    
    .hero h1 {
        font-size: var(--font-size-2xl);
    }
    
    .main-nav {
        padding-top: var(--space-12);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .top-bar,
    .main-header,
    .main-footer,
    .whatsapp-float,
    .back-to-top,
    .cookie-banner,
    .breadcrumb-wrapper,
    .hero-buttons,
    .cta-section .btn-primary,
    .cta-section .btn-secondary {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    main {
        padding: 0;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
    
    .section {
        padding: 20pt 0;
        page-break-inside: avoid;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}
