/* ============================
   PASOLLI - Palette dal logo
   Rosso #E03236 + Azzurro #5BC5F2
   ============================ */

:root {
    --red: #E03236;
    --red-dark: #c42a2e;
    --red-light: #f04448;
    --sky: #5BC5F2;
    --sky-dark: #2a9fd4;
    --sky-light: #d6f0fb;
    --navy: #1a3a5c;
    --navy-light: #24516e;
    --primary: #E03236;
    --primary-light: #f04448;
    --primary-dark: #c42a2e;
    --accent: #5BC5F2;
    --accent-hover: #2a9fd4;
    --white: #ffffff;
    --bg-cream: #f8fbfd;
    --gray-light: #f4f7f9;
    --gray-mid: #dde4e8;
    --gray-text: #5a6670;
    --gray-dark: #2c3e50;
    --footer-dark: #1a3a5c;
    --shadow: 0 2px 20px rgba(26,58,92,0.08);
    --shadow-lg: 0 8px 40px rgba(26,58,92,0.12);
    --transition: 0.3s ease;
    --radius: 10px;
    --radius-lg: 16px;
    --container: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }

a { color: var(--sky-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- HEADER ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-mid);
    transition: all var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 55px;
    width: auto;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary);
    letter-spacing: 3px;
    line-height: 1;
}

.main-nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-dark);
    border-radius: 6px;
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--sky-dark);
    background: rgba(91, 197, 242, 0.1);
}

.nav-link.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--sky) 0%, var(--sky-dark) 100%);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    display: flex;
    gap: 4px;
    background: var(--gray-light);
    border-radius: 6px;
    padding: 2px;
}

.lang-btn {
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-text);
    border-radius: 4px;
    transition: all var(--transition);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--sky) 0%, var(--sky-dark) 100%);
    color: var(--white);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- HERO SECTION ---- */
.hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--navy);
    color: var(--white);
    overflow: hidden;
    margin-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.7;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,58,92,0.55) 0%, rgba(26,58,92,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 60px 20px;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--red-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 50, 54, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
    border-color: var(--white);
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--sky);
}

.btn-outline:hover {
    background: var(--sky);
    color: var(--white);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ---- SECTIONS ---- */
.section {
    padding: 100px 0;
}

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

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

.section-title h2 {
    margin-bottom: 16px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- ABOUT BLOCK (2 colonne alternato) ---- */
.about-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-block.reverse .about-image { order: -1; }

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    background: var(--gray-mid);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 24px;
    color: var(--gray-text);
    font-size: 1.05rem;
}

/* ---- CATEGORIES GRID (5 colonne come Pregis) ---- */
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.category-card {
    width: 200px;
    flex-shrink: 0;
}

.category-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--white);
    border: 1px solid var(--gray-mid);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card::before {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 2.5rem;
    color: var(--gray-mid);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -65%);
    z-index: 0;
}

.category-card.has-icon::before {
    display: none !important;
}

.category-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--sky-light);
    color: var(--sky-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    transition: all var(--transition);
}

.category-icon svg {
    width: auto;
    height: auto;
    max-width: 64px;
    max-height: 64px;
    display: block;
}

.category-card:hover .category-icon {
    background: rgba(224, 50, 54, 0.1);
    color: var(--red);
    transform: scale(1.08);
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--sky);
    box-shadow: var(--shadow-lg);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    transition: transform var(--transition);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    z-index: 2;
}

.category-card:hover .category-card-overlay {
    background: transparent;
}

.category-card-overlay h3 {
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
}

.category-card:hover .category-card-overlay h3 {
    color: var(--red);
}

.category-card-overlay .cat-count {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-text);
    margin-top: 6px;
}

.category-card:hover .category-card-overlay .cat-count {
    color: var(--sky-dark);
}

/* ---- STATISTICS COUNTERS ---- */
.stats-section {
    background: var(--navy);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255,255,255,0.15);
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    color: rgba(255,255,255,0.15);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

/* ---- CTA SECTION ---- */
.section-cta {
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: var(--white);
    background: var(--navy);
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: url('') center/cover;
    opacity: 0.15;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 32px;
}

/* ---- TIMELINE (Azienda) ---- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--sky);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 60px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--red);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--red);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-content {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    color: var(--red);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.timeline-content p {
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* ---- PRODUCTS LIST ---- */
.products-toolbar {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 2px solid var(--gray-mid);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--sky);
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-text);
}

.filter-select {
    padding: 14px 20px;
    border: 2px solid var(--gray-mid);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    cursor: pointer;
    min-width: 220px;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.product-card {
    width: 260px;
    flex-shrink: 0;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

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

.product-card-image {
    height: 180px;
    background: var(--gray-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.product-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card-image .no-image {
    font-size: 3rem;
    color: var(--gray-mid);
}

.product-card-body {
    padding: 20px;
}

.product-card-code {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 4px;
}

.product-modal-code {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 4px;
}

.product-card-body h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--gray-text);
}

.product-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(91, 197, 242, 0.15);
    color: var(--sky-dark);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 20px;
    margin-top: 12px;
}

/* ---- PRODUCT MODAL ---- */
.product-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.product-modal-overlay.active {
    display: flex;
}
.product-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.product-modal-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-text);
    cursor: pointer;
    z-index: 2;
    line-height: 1;
}
.product-modal-close:hover {
    color: var(--red);
}
.product-modal-header {
    padding: 20px 30px 0;
}
.product-modal-logo {
    height: 40px;
    width: auto;
}
.product-modal-body {
    display: flex;
    gap: 30px;
    padding: 20px 30px 30px;
}
.product-modal-image {
    flex: 0 0 45%;
    background: var(--gray-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 280px;
}
.product-modal-image img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
}
.product-modal-image .no-image {
    font-size: 5rem;
    color: var(--gray-mid);
}
.product-modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.product-modal-info h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
    color: var(--gray-dark);
}
.product-modal-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product-modal-detail {
    font-size: 0.95rem;
    color: var(--gray-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-modal-detail i {
    color: var(--sky-dark);
    width: 20px;
    text-align: center;
}
@media (max-width: 640px) {
    .product-modal-body {
        flex-direction: column;
        gap: 16px;
        padding: 16px 20px 24px;
    }
    .product-modal-image {
        flex: none;
        min-height: 200px;
    }
    .product-modal-header {
        padding: 16px 20px 0;
    }
}

/* ---- PAGINATION ---- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all var(--transition);
}

.pagination a {
    background: var(--white);
    color: var(--gray-dark);
    border: 1px solid var(--gray-mid);
}

.pagination a:hover {
    background: var(--sky);
    color: var(--white);
    border-color: var(--sky);
}

.pagination .current {
    background: var(--red);
    color: var(--white);
    border: 1px solid var(--red);
}

/* ---- PARTNER GRID ---- */
.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.partner-logo {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 130px;
    transition: all var(--transition);
}

.partner-logo:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.partner-logo img {
    max-height: 60px;
    object-fit: contain;
    transition: all var(--transition);
}

.partner-logo:hover img {
    transform: scale(1.05);
}

/* ---- CONTACT ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-mid);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition);
}

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

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-info-card {
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-info-card h3 {
    color: var(--white);
    margin-bottom: 24px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-item i {
    font-size: 1.2rem;
    color: var(--sky);
    margin-top: 4px;
}

.contact-info-item p {
    opacity: 0.9;
    line-height: 1.6;
}

.contact-info-item a {
    color: var(--white);
    opacity: 0.9;
}

.contact-info-item a:hover {
    opacity: 1;
    color: var(--sky);
}

.contact-map {
    margin-top: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
}

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

/* ---- PAGE HERO (pagine interne) ---- */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 60px 0 50px;
    text-align: center;
    margin-top: 80px;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 12px;
}

.page-hero p {
    opacity: 0.8;
    font-size: 1.1rem;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 16px 0;
    font-size: 0.9rem;
    color: var(--gray-text);
}

.breadcrumb a { color: var(--primary-light); }
.breadcrumb span { color: var(--gray-text); }

/* ---- FOOTER ---- */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 12px;
    color: var(--white);
}

.footer-brand p {
    color: var(--gray-mid);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-mid);
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--red);
    color: var(--white);
}

.footer-col h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--gray-mid);
    font-size: 0.9rem;
    padding: 4px 0;
}

.footer-col a:hover { color: var(--sky); }

.footer-col p {
    font-size: 0.9rem;
    color: var(--gray-mid);
    margin-bottom: 8px;
}

.footer-col p i {
    width: 20px;
    color: var(--sky);
    margin-right: 8px;
}

.footer-piva {
    margin-top: 16px;
    font-size: 0.85rem !important;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    margin: 0 -20px;
    padding: 16px 20px;
    text-align: center;
    margin-top: 40px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--white);
}

/* ---- LOADING ---- */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.loading-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-mid);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- ANIMATE ON SCROLL ---- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 980px) {
    .hamburger { display: flex; }

    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: transform var(--transition);
    }

    .main-nav.open {
        transform: translateY(0);
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 1.1rem;
    }

    .about-block { grid-template-columns: 1fr; gap: 30px; }
    .about-block.reverse .about-image { order: 0; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .stat-item:not(:last-child)::after { display: none; }

    .footer-top { grid-template-columns: 1fr 1fr; }

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

    .timeline::before { left: 20px; }
    .timeline-item { width: 100%; left: 0 !important; padding-left: 50px; padding-right: 0; text-align: left !important; }
    .timeline-dot { left: 12px !important; right: auto !important; }

    .hero { min-height: 70vh; }
}

@media (max-width: 600px) {
    .section { padding: 60px 0; }
    .hero { min-height: 60vh; }
    .hero-content p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: 1fr 1fr; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .products-toolbar { flex-direction: column; }
    .filter-select { width: 100%; }
}

/* ---- COOKIE BANNER ---- */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    background: var(--navy);
    color: var(--white);
    z-index: 10000;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.cookie-banner-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-banner-inner p {
    flex: 1;
    font-size: 0.9rem;
    margin: 0;
    min-width: 250px;
}
.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-banner .btn-outline {
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    padding: 8px 16px;
}
.cookie-banner .btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}
.cookie-banner .btn-primary {
    font-size: 0.85rem;
    padding: 8px 20px;
}

/* ---- LEGAL PAGES ---- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}
.legal-content h2 {
    font-size: 1.3rem;
    margin: 32px 0 12px;
    color: var(--navy);
}
.legal-content h3 {
    font-size: 1.1rem;
    margin: 24px 0 8px;
    color: var(--gray-dark);
}
.legal-content p, .legal-content li {
    font-size: 0.95rem;
    color: var(--gray-text);
    line-height: 1.7;
}
.legal-content ul {
    padding-left: 24px;
    margin: 8px 0 16px;
}
.legal-content a {
    color: var(--sky-dark);
}
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 24px;
    font-size: 0.9rem;
}
.cookie-table th, .cookie-table td {
    border: 1px solid var(--gray-mid);
    padding: 10px 14px;
    text-align: left;
}
.cookie-table th {
    background: var(--gray-light);
    font-weight: 600;
    color: var(--gray-dark);
}
.cookie-table td {
    color: var(--gray-text);
}
