/**

 * ATS Service - Global Styles

 * Reset moderno + Layout base + Utility classes

 */



/* ===== MODERN RESET ===== */

*,

*::before,

*::after {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

}



html {

    font-size: 16px;

    -webkit-font-smoothing: antialiased;

    -moz-osx-font-smoothing: grayscale;

    scroll-behavior: smooth;

}



body {

    font-family: var(--font-body);

    font-size: var(--font-size-base);

    font-weight: var(--font-weight-normal);

    line-height: var(--line-height-normal);

    color: var(--text-primary);

    background-color: var(--bg-white);

    min-height: 100vh;

    display: flex;

    flex-direction: column;

}



/* ===== TYPOGRAPHY ===== */

h1, h2, h3, h4, h5, h6 {

    font-family: var(--font-heading);

    font-weight: var(--font-weight-bold);

    line-height: var(--line-height-tight);

    color: var(--ats-primary);

    margin-bottom: var(--space-4);

}



h1 { font-size: var(--font-size-5xl); }

h2 { font-size: var(--font-size-4xl); }

h3 { font-size: var(--font-size-3xl); }

h4 { font-size: var(--font-size-2xl); }

h5 { font-size: var(--font-size-xl); }

h6 { font-size: var(--font-size-lg); }



p {

    margin-bottom: var(--space-4);

}



a {

    color: var(--ats-secondary);

    text-decoration: none;

    transition: color var(--transition-fast);

}



a:hover {

    color: var(--ats-secondary-dark);

}



img {

    max-width: 100%;

    height: auto;

    display: block;

}



/* ===== LAYOUT ===== */

.container {

    width: 100%;

    max-width: var(--container-max-width);

    margin: 0 auto;

    padding: 0 var(--space-6);

}



@media (max-width: 768px) {

    .container {

        padding: 0 var(--space-4);

    }

}



.main-content {

    flex: 1;

    padding-top: var(--header-height);

}



@media (max-width: 768px) {

    .main-content {

        padding-top: var(--header-height-mobile);

    }

}



/* ===== HEADER ===== */

.header {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    height: var(--header-height);

    background: var(--bg-white);

    box-shadow: var(--shadow-md);

    z-index: var(--z-sticky);

    transition: all var(--transition-base);

}



.header--scrolled {

    height: 64px;

    background: rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(10px);

    box-shadow: var(--shadow-lg);

}



.header__container {

    display: flex;

    align-items: center;

    justify-content: space-between;

    height: 100%;

}



.header__logo img {

    height: 50px;

    width: auto;

    transition: transform var(--transition-base);

}



.header__logo img:hover {

    transform: scale(1.05);

}



/* Desktop Navigation */

.desktop-nav {

    display: flex;

}



.nav-menu {

    display: flex;

    align-items: center;

    gap: var(--space-6);

    list-style: none;

}



.nav-link {

    color: var(--ats-primary);

    font-weight: var(--font-weight-medium);

    font-size: var(--font-size-sm);

    text-transform: uppercase;

    letter-spacing: 0.5px;

    padding: var(--space-2) var(--space-3);

    border-radius: var(--radius-base);

    transition: all var(--transition-fast);

    position: relative;

}



.nav-link::after {

    content: '';

    position: absolute;

    bottom: 0;

    left: 50%;

    width: 0;

    height: 2px;

    background: var(--ats-secondary);

    transform: translateX(-50%);

    transition: width var(--transition-base);

}



.nav-link:hover,

.nav-link.active {

    color: var(--ats-secondary);

}



.nav-link:hover::after,

.nav-link.active::after {

    width: 80%;

}



.nav-link--login {

    background: var(--gradient-secondary);

    color: var(--text-white);

    padding: var(--space-2) var(--space-6);

}



.nav-link--login:hover {

    transform: translateY(-2px);

    box-shadow: var(--shadow-secondary);

}



/* Dropdown Menu */

.nav-item-dropdown {

    position: relative;

}



.nav-dropdown {

    position: absolute;

    top: 100%;

    left: 0;

    min-width: 250px;

    background: var(--bg-white);

    border-radius: var(--radius-base);

    box-shadow: var(--shadow-xl);

    list-style: none;

    padding: var(--space-2) 0;

    margin-top: var(--space-2);

    opacity: 0;

    visibility: hidden;

    transform: translateY(-10px);

    transition: all var(--transition-base);

    z-index: var(--z-dropdown);

}



.nav-item-dropdown:hover .nav-dropdown {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}



.nav-dropdown__link {

    display: block;

    padding: var(--space-3) var(--space-4);

    color: var(--ats-primary);

    font-size: var(--font-size-sm);

    font-weight: var(--font-weight-medium);

    transition: all var(--transition-fast);

}



.nav-dropdown__link:hover {

    background: var(--gray-50);

    color: var(--ats-secondary);

    padding-left: var(--space-6);

}



/* Hamburger Menu */

.hamburger {

    display: none;

    flex-direction: column;

    gap: 5px;

    background: none;

    border: none;

    cursor: pointer;

    padding: var(--space-2);

    z-index: var(--z-fixed);

}



.hamburger__line {

    width: 28px;

    height: 3px;

    background: var(--ats-primary);

    border-radius: var(--radius-full);

    transition: all var(--transition-base);

}



.hamburger.active .hamburger__line:nth-child(1) {

    transform: rotate(45deg) translateY(8px);

}



.hamburger.active .hamburger__line:nth-child(2) {

    opacity: 0;

}



.hamburger.active .hamburger__line:nth-child(3) {

    transform: rotate(-45deg) translateY(-8px);

}



/* Mobile Menu */

.mobile-menu {

    display: none;

    position: fixed;

    top: var(--header-height-mobile);

    left: 0;

    right: 0;

    bottom: 0;

    background: var(--bg-white);

    padding: var(--space-6);

    overflow-y: auto;

    transform: translateX(100%);

    transition: transform var(--transition-base);

    z-index: 10000;

}



.mobile-menu.active {

    transform: translateX(0);

}



.mobile-menu__header {

    text-align: center;

    padding-bottom: var(--space-6);

    border-bottom: 2px solid var(--gray-200);

    margin-bottom: var(--space-6);

}



.mobile-menu__logo {

    max-width: 150px;

    height: auto;

}



.mobile-menu__list {

    list-style: none;

}



.mobile-menu__link {

    display: block;

    padding: var(--space-4);

    color: var(--ats-primary);

    font-size: var(--font-size-lg);

    font-weight: var(--font-weight-medium);

    border-bottom: 1px solid var(--gray-200);

    transition: all var(--transition-fast);

}



.mobile-menu__link:hover {

    background: var(--gray-50);

    padding-left: var(--space-6);

    color: var(--ats-secondary);

}



@media (max-width: 1024px) {

    .desktop-nav {

        display: none;

    }

    

    .hamburger {

        display: flex;

    }

    

    .mobile-menu {

        display: block;

    }

    

    .header {

        height: var(--header-height-mobile);

    }

}



/* ===== FOOTER ===== */

.footer {

    background: var(--gray-900);

    color: var(--text-white);

    padding: var(--space-20) 0 var(--space-8);

    margin-top: var(--space-24);

}



.footer__menu {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: var(--space-6);

    list-style: none;

    margin-bottom: var(--space-8);

}



.footer__link {

    color: var(--text-white);

    font-size: var(--font-size-sm);

    text-transform: uppercase;

    letter-spacing: 1px;

    transition: color var(--transition-fast);

}



.footer__link:hover {

    color: var(--ats-secondary);

}



.footer__reviews-icon {

    width: 70px;

    height: auto;

    display: inline-block;

}



.footer__info {

    text-align: center;

    margin-bottom: var(--space-6);

}



.footer__copyright {

    font-size: var(--font-size-sm);

    color: var(--gray-400);

    line-height: var(--line-height-relaxed);

}



.footer__credits {

    text-align: center;

    padding-top: var(--space-4);

    border-top: 1px solid var(--gray-700);

}



.footer__credits a {

    color: var(--gray-500);

    font-size: var(--font-size-xs);

    transition: color var(--transition-fast);

}



.footer__credits a:hover {

    color: var(--ats-secondary);

}



/* ===== SCROLL TO TOP ===== */

.scroll-to-top {

    position: fixed;

    bottom: var(--space-8);

    right: var(--space-8);

    width: 48px;

    height: 48px;

    background: var(--gradient-secondary);

    color: var(--text-white);

    border: none;

    border-radius: var(--radius-full);

    box-shadow: var(--shadow-xl);

    cursor: pointer;

    opacity: 0;

    transform: translateY(100px);

    transition: all var(--transition-base);

    z-index: var(--z-fixed);

}



.scroll-to-top.visible {

    opacity: 1;

    transform: translateY(0);

}



.scroll-to-top:hover {

    transform: translateY(-4px);

    box-shadow: var(--shadow-2xl);

}



/* ===== UTILITY CLASSES ===== */

.text-center { text-align: center; }

.text-left { text-align: left; }

.text-right { text-align: right; }



.d-none { display: none !important; }

.d-block { display: block !important; }

.d-flex { display: flex !important; }

.d-grid { display: grid !important; }



.mobile-break { display: none; }



@media (max-width: 768px) {

    .mobile-break { display: block; }

    .hide-mobile { display: none !important; }

}



.alert {

    padding: var(--space-4) var(--space-6);

    border-radius: var(--radius-base);

    margin: var(--space-4) 0;

}



.alert--error {

    background: rgba(239, 68, 68, 0.1);

    border: 1px solid var(--color-error);

    color: var(--color-error);

}
/* ============================================================= */
/*  AGGIUNTE HEADER — barra alta + bottoni Area Clienti           */
/*  Incollare in fondo a global.css                              */
/*  (oppure caricare come file separato e aggiungere il <link>)  */
/* ============================================================= */

/* Header ad altezza automatica: deve ospitare barra alta + menu */
.header {
    height: auto;
}

/* Sullo scroll non forziamo più 64px: evitiamo il taglio della barra */
.header--scrolled {
    height: auto;
}

/* Offset contenuto = riga menu (--header-height) + barra alta (40px) */
.main-content {
    padding-top: calc(var(--header-height) + 40px);
}

/* ---------- BARRA ALTA ---------- */
.header__topbar {
    background: var(--ats-primary);
    color: var(--text-white);
    font-size: var(--font-size-sm);
}

.header__topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    gap: var(--space-4);
}

.header__claim {
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ats-secondary);
}

.header__contacts {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.header__phone,
.header__location {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-white);
    font-weight: var(--font-weight-medium);
}

.header__phone:hover,
.header__location:hover {
    color: var(--ats-secondary);
}

.header__phone img,
.header__location img {
    height: 16px;
    width: auto;
    display: inline-block;
}

/* ---------- BOTTONI AREA CLIENTI / ACCEDI ---------- */
.header__user-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.btn-slide1 {
    display: inline-block;
    padding: var(--space-2) var(--space-5);
    border: 2px solid var(--ats-primary);
    border-radius: var(--radius-full);
    color: var(--ats-primary);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-slide1:hover {
    background: var(--gradient-secondary);
    border-color: transparent;
    color: var(--text-white);
}

/* Primo bottone (AREA CLIENTI) pieno, in evidenza */
.header__user-buttons .btn-slide1:first-child {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--text-white);
}

.header__user-buttons .btn-slide1:first-child:hover {
    background: var(--gradient-secondary);
}

/* ---------- MENU MOBILE: accenti bottoni ---------- */
.mobile-menu__link--area {
    color: var(--ats-primary);
    font-weight: var(--font-weight-bold);
}

.mobile-menu__link--login {
    color: var(--ats-secondary);
    font-weight: var(--font-weight-bold);
}

/* ---------- RESPONSIVE: su tablet/mobile niente barra alta e bottoni ---------- */
@media (max-width: 1024px) {
    .header {
        height: var(--header-height-mobile);
    }
    .header__topbar,
    .header__user-buttons {
        display: none;
    }
    .main-content {
        padding-top: var(--header-height-mobile);
    }
}
/* ============================================================= */
/*  AGGIUNTE HEADER — barra alta + bottoni Area Clienti           */
/*  Incollare in fondo a global.css                              */
/*  (oppure caricare come file separato e aggiungere il <link>)  */
/* ============================================================= */

/* Header ad altezza automatica: deve ospitare barra alta + menu */
.header {
    height: auto;
}

/* Sullo scroll non forziamo più 64px: evitiamo il taglio della barra */
.header--scrolled {
    height: auto;
}

/* Offset contenuto = riga menu (--header-height) + barra alta (40px) */
.main-content {
    padding-top: calc(var(--header-height) + 40px);
}

/* ---------- BARRA ALTA ---------- */
.header__topbar {
    background: var(--ats-primary);
    color: var(--text-white);
    font-size: var(--font-size-sm);
}

.header__topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    gap: var(--space-4);
}

.header__claim {
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ats-secondary);
}

.header__contacts {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.header__phone,
.header__location {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-white);
    font-weight: var(--font-weight-medium);
}

.header__phone:hover,
.header__location:hover {
    color: var(--ats-secondary);
}

.header__phone img,
.header__location img {
    height: 16px;
    width: auto;
    display: inline-block;
}

/* ---------- BOTTONI AREA CLIENTI / ACCEDI ---------- */
.header__user-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.btn-slide1 {
    display: inline-block;
    padding: var(--space-2) var(--space-5);
    border: 2px solid var(--ats-primary);
    border-radius: var(--radius-full);
    color: var(--ats-primary);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-slide1:hover {
    background: var(--gradient-secondary);
    border-color: transparent;
    color: var(--text-white);
}

/* Primo bottone (AREA CLIENTI) pieno, in evidenza */
.header__user-buttons .btn-slide1:first-child {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--text-white);
}

.header__user-buttons .btn-slide1:first-child:hover {
    background: var(--gradient-secondary);
}

/* ---------- MENU MOBILE: accenti bottoni ---------- */
.mobile-menu__link--area {
    color: var(--ats-primary);
    font-weight: var(--font-weight-bold);
}

.mobile-menu__link--login {
    color: var(--ats-secondary);
    font-weight: var(--font-weight-bold);
}

/* ---------- RESPONSIVE: su tablet/mobile niente barra alta e bottoni ---------- */
@media (max-width: 1024px) {
    .header {
        height: var(--header-height-mobile);
    }
    .header__topbar,
    .header__user-buttons {
        display: none;
    }
    .main-content {
        padding-top: var(--header-height-mobile);
    }
}

/* ============================================================= */
/*  HERO — caption per-slide (titolo + testo + bottone)          */
/* ============================================================= */

/* H1 SEO nascosto alla vista ma leggibile da Google/screen reader */
.hero__seo-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* La caption sta dentro ogni .hero__slide: si mostra/nasconde con la slide */
.hero__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16%;
    z-index: 5;
    text-align: center;
    padding: 0 var(--space-6);
    color: var(--text-white);
}

.hero__caption-title {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-extrabold);
    font-size: var(--font-size-5xl);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-white);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
    margin-bottom: var(--space-3);
}

.hero__caption-text {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    max-width: 640px;
    margin: 0 auto var(--space-6);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
    .hero__caption { bottom: 12%; }
    .hero__caption-title { font-size: var(--font-size-3xl); }
    .hero__caption-text { font-size: var(--font-size-base); }
}