/* ============================================
   OTTICA ZANETTI - MAIN STYLESHEET
   ============================================ */

/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

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

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

/* HEADER & NAVIGATION */
.header {
    background-color: var(--color-primary);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    margin: 0;
    color: white;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.nav-menu a:hover {
    border-bottom-color: var(--color-accent);
    color: white;
}

.language-selector select {
    padding: 0.5rem;
    border: 1px solid white;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.language-selector select:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* SECTIONS */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

/* CONTACT SECTION */
.contact-section {
    background-color: var(--color-bg-light);
}

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

.contact-info {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.contact-info h3 {
    color: var(--color-primary);
}

.contact-info p {
    color: var(--color-text-light);
}

.phone-link, .email-link {
    color: var(--color-secondary);
    font-weight: 500;
}

.contact-note {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* PRODUCTS SECTION */
.products-section {
    background-color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--color-bg-light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--color-accent);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.product-card h3 {
    color: var(--color-primary);
}

.product-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.product-description {
    color: var(--color-text-light);
    font-size: 0.95rem;
    white-space: pre-line;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* OFFERS SECTION */
.offers-section {
    background-color: var(--color-bg-light);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.offer-card {
    background: linear-gradient(135deg, white 0%, var(--color-bg-light) 100%);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-8px);
}

.offer-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.offer-badge.discount {
    background-color: var(--color-secondary);
}

.offer-card h3 {
    color: var(--color-primary);
    margin-top: 0;
}

.offer-card p {
    color: var(--color-text-light);
}

/* BRANDS SECTION */
.brands-section {
    background-color: white;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    align-items: center;
}

.brand-card {
    background-color: var(--color-bg-light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.brand-logo {
    max-width: 100%;
    height: auto;
    max-height: 150px;
}

/* ABOUT SECTION */
.about-section {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

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

.manager-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.about-text h3 {
    color: var(--color-primary);
}

.about-text p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.skills-list {
    list-style: none;
    margin-top: 1.5rem;
}

.skills-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--color-text);
}

.skills-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

/* FORM SECTION */
.form-section {
    background-color: var(--color-bg-light);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
}

/* BUTTONS */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* COOKIE BAR */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-bar.hidden {
    display: none;
}

.cookie-bar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    padding: 0 20px;
    width: 100%;
}

.cookie-bar p {
    margin: 0;
    font-size: 0.95rem;
}

.cookie-button {
    padding: 0.75rem 1.5rem;
    background-color: var(--color-accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.cookie-button:hover {
    background-color: var(--color-secondary);
}

/* FOOTER */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
    color: white;
}

.design-note {
    font-size: 0.85rem;
    opacity: 0.9;
}

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

/* TABLET */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .hero {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-menu li {
        font-size: 0.95rem;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-primary);
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .header {
        position: relative;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map-container iframe {
        height: 300px !important;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .offers-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .btn-primary {
        padding: 1rem;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }

    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .skills-list li {
        padding-left: 1.5rem;
        font-size: 0.95rem;
    }

    .cookie-bar-container {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-bar p {
        text-align: center;
        font-size: 0.9rem;
    }

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

/* SMALL MOBILE */
@media (max-width: 400px) {
    .container {
        padding: 0 15px;
    }

    h1 { font-size: 1.3rem; }
    h2 { font-size: 1.1rem; }
    h3 { font-size: 1rem; }

    .logo {
        font-size: 1.1rem;
    }

    .hero {
        padding: 1.5rem 0;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .product-card,
    .offer-card {
        padding: 1.5rem;
    }

    .product-icon {
        font-size: 2.5rem;
    }

    .contact-form {
        padding: 1rem;
    }
}
