/* ==========================================================
   RESPONSIVE.CSS
   TGO — Security • Service • Consulting
========================================================== */


/* ==========================================================
   1. TABLET / LAPTOP
   max-width: 1280px
========================================================== */

@media (max-width: 1280px) {
    .desktop-nav {
        gap: 16px;
    }
    .nav-link {
        font-size: 12px;
    }
    .site-header {
        padding-inline: 24px;
    }
}


/* ==========================================================
   2. MOBILE / TABLET
   max-width: 1100px
   PAGINE INTERNE:	TGO							IT | EN  ☰
   HOME:			TGO							IT | EN  ☰
========================================================== */

@media (max-width: 1100px) {

    /* ------------------------------------------------------
       HEADER
    ------------------------------------------------------ */
    .site-header {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 0 20px;
        background: rgba(255, 255, 255, .88);
        box-shadow: 0 4px 22px rgba(0, 0, 0, .08);
    }

    /* ------------------------------------------------------
       MENU DESKTOP
    ------------------------------------------------------ */
    .desktop-nav {
        display: none !important;
    }
    .brand {
        display: flex !important;
        align-items: center !important;
        margin-right: auto !important;
    }
	
    /* ------------------------------------------------------
       LANGUAGE SWITCHER
    ------------------------------------------------------ */
    .language-switcher {
        position: static !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        margin-left: auto !important;
        margin-right: 10px !important;
        height: auto !important;
        transform: none !important;
        flex-shrink: 0 !important;
    }

    /* ------------------------------------------------------
       MENU TOGGLE
    ------------------------------------------------------ */
    .menu-toggle {
        position: relative;
        z-index: 1100;
        display: flex;
        width: 42px;
        height: 42px;
        padding: 8px;
        margin: 0;
        border: 0;
        background: transparent;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        flex-shrink: 0;
    }
    .menu-toggle span {
        display: block;
        width: 26px;
        height: 2px;
        margin: 0;
        padding: 0;
        background-color: rgba(0, 0, 0, .58);
        border-radius: 2px;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition:
            transform .25s ease,
            opacity .25s ease,
            background-color .25s ease;
    }

    /* ------------------------------------------------------
       HOVER MENU TOGGLE
    ------------------------------------------------------ */
    .menu-toggle:hover span {
        background-color: #d11a2a;
    }

    /* ------------------------------------------------------
       MENU APERTO → X
    ------------------------------------------------------ */
    .menu-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }


/* ==========================================================
   3. MOBILE
   max-width: 700px
========================================================== */

@media (max-width: 700px) {
    :root {
        --header-height: 72px;
    }

    /* ------------------------------------------------------
       HEADER
    ------------------------------------------------------ */
    .site-header {
        padding-inline: 14px;
    }

    /* ------------------------------------------------------
       LOGO PAGINE INTERNE
    ------------------------------------------------------ */
    .brand-name {
        font-size: 31px;
    }
    .brand-line {
        width: 25px;
    }

    /* ------------------------------------------------------
       LANGUAGE SWITCHER
    ------------------------------------------------------ */
    .language-switcher {
        gap: 5px;
        margin-right: 6px;
    }

    /* ------------------------------------------------------
       MENU TOGGLE
    ------------------------------------------------------ */
    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    /* ------------------------------------------------------
       HOME HERO
    ------------------------------------------------------ */
    .hero-content {
        padding-top: 55px;
    }
    .hero-brand-main {
        gap: 10px;
    }
    .hero-brand-line {
        width: 48px;
        height: 2px;
    }
    .hero-eyebrow {
        font-size: 10px;
        letter-spacing: 1.8px;
    }
    .hero-tricolor {
        width: 82vw;
        margin-top: 20px;
    }
    .hero-description {
        max-width: 340px;
        font-size: 15px;
    }

    /* ------------------------------------------------------
       HOME BUTTONS
    ------------------------------------------------------ */
    .hero-actions {
        width: min(360px, 90vw);
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 28px;
    }
    .button {
        width: 100%;
    }

    /* ------------------------------------------------------
       SCROLL INDICATOR
    ------------------------------------------------------ */
    .scroll-indicator {
        display: none;
    }

    /* ------------------------------------------------------
       DIVISIONI
    ------------------------------------------------------ */
    .divisions {
        padding-block: 80px;
    }
    .division-grid {
        grid-template-columns: 1fr;
    }

    /* ------------------------------------------------------
       FOOTER
    ------------------------------------------------------ */
    .site-footer {
        padding: 55px 24px 22px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 34px;
    }
    .footer-bottom {
        margin-top: 36px;
    }
}

/* ==========================================================
   4. ACCESSIBILITÀ
   Riduzione delle animazioni
========================================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}