/* MAIN CSS - VascheLavaggio.com */
/* Caricato dopo il critical CSS */

/* ========================================
   LAYOUT GENERALE
   ======================================== */

main {
    margin-top: 80px;
}

section {
    padding: 60px 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.header__logo {
    display: flex;
    align-items: center;
}

.header__logo-link {
    display: block;
    text-decoration: none;
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
}

/* Navigation */
.nav {
    display: flex;
    gap: 30px;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav__link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.nav__link:hover,
.nav__link:focus {
    color: var(--primary);
}

.nav__link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Mobile menu toggle */
.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav__toggle-icon {
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    display: block;
    position: relative;
}

.nav__toggle-icon::before,
.nav__toggle-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    left: 0;
}

.nav__toggle-icon::before {
    top: -8px;
}

.nav__toggle-icon::after {
    bottom: -8px;
}

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

.hero__content {
    position: relative;
    z-index: 2;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--bg-white);
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero__cta {
    display: flex;
    gap: 20px;
}

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

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn--primary {
    background-color: var(--accent);
    color: var(--bg-white);
}

.btn--primary:hover,
.btn--primary:focus {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn--secondary {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

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

.btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ========================================
   PRODUCTS GRID
   ======================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

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

.product-card__image-wrapper {
    aspect-ratio: 4 / 3;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-light);
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card__image {
    transform: scale(1.05);
}

.product-card__content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.product-card__description {
    color: var(--text-medium);
    margin-bottom: 20px;
    flex: 1;
}

.product-card__link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.product-card__link:hover,
.product-card__link:focus {
    color: var(--primary-dark);
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: 80px 0;
}

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

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section__subtitle {
    font-size: 20px;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   FEATURES
   ======================================== */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature {
    text-align: center;
}

.feature__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--primary);
}

.feature__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature__description {
    color: var(--text-medium);
}

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

.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 60px 0 30px;
}

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

.footer__section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer__list {
    list-style: none;
}

.footer__list-item {
    margin-bottom: 12px;
}

.footer__link {
    color: var(--bg-white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer__link:hover,
.footer__link:focus {
    opacity: 1;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.7;
}

/* ========================================
   FORMS
   ======================================== */

.form {
    max-width: 600px;
    margin: 0 auto;
}

.form__group {
    margin-bottom: 24px;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form__input.error,
.form__textarea.error {
    border-color: #dc3545;
}

.form__error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 6px;
    display: none;
}

.form__error.visible {
    display: block;
}

.form__textarea {
    min-height: 150px;
    resize: vertical;
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumbs {
    padding: 20px 0;
    background-color: var(--bg-light);
}

.breadcrumbs__list {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs__item:not(:last-child)::after {
    content: '›';
    color: var(--text-medium);
}

.breadcrumbs__link {
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs__link:hover,
.breadcrumbs__link:focus {
    color: var(--primary);
}

.breadcrumbs__current {
    color: var(--text-dark);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (min-width: 768px) {
    .hero__title {
        font-size: 56px;
    }
    
    .section__title {
        font-size: 48px;
    }
}

@media (min-width: 1024px) {
    .hero__title {
        font-size: 64px;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 20px;
    }
    
    .container-wide {
        padding: 0 20px;
    }
    
    .nav__list {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    .nav__list.active {
        display: flex;
    }
    
    .nav__toggle {
        display: block;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero__content {
        height: 500px;
    }
    
    .hero__title {
        font-size: 36px;
    }
    
    .hero__subtitle {
        font-size: 18px;
    }
    
    .hero__cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

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

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ========================================
   GOOGLE MAPS RESPONSIVE
   ======================================== */

.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 767px) {
    .map-container {
        height: 300px;
    }
}
