/* ===================================
   ECCELLENZE SICILIANE — MAIN CSS
   =================================== */

:root {
    --primary: #C8652A;
    --primary-dark: #A0501F;
    --primary-light: #E8845A;
    --text: #1a1a1a;
    --text-muted: #666;
    --text-light: #999;
    --bg: #ffffff;
    --bg-light: #f8f5f0;
    --bg-dark: #1e1b16;
    --border: #e5e0d8;
    --shadow: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 40px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Lato', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    height: 64px;
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.1rem;
}

.nav-logo { font-size: 1.3rem; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text);
    transition: color 0.2s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-link.nav-admin { color: var(--primary); font-weight: 700; }
.nav-link.nav-admin::after { background: var(--primary); transform: scaleX(1); }

.nav-cart {
    position: relative;
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.nav-cart:hover { background: var(--primary-dark); transform: scale(1.05); }

.cart-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: #333;
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.5) 100%);
}

.hero.loaded .hero-bg { transform: scale(1); }

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 700px;
    padding: 0 24px;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    letter-spacing: 0.25em;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.3s forwards;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.5s forwards;
}

.hero-title em { font-style: italic; display: block; }

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    max-width: 500px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.7s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    opacity: 0.6;
    animation: bounce 2s infinite;
    font-size: 1.5rem;
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
    text-align: center;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 48px;
    color: var(--text);
}

/* ===== MAP ===== */
.map-section { background: var(--bg-light); }

.map-header {
    margin-bottom: 20px;
}

.map-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    display: block;
    margin-bottom: 4px;
}

.map-header h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
}

#map {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ===== SEARCH & FILTERS ===== */
.search-section { padding: 40px 0 0; }

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto 24px;
}

.search-box input {
    width: 100%;
    padding: 12px 48px 12px 44px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--font-sans);
    outline: none;
    background: white;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(200,101,42,0.12);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 7px 20px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: white;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ===== COMPANY CARDS ===== */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.company-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    display: block;
}

.company-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.company-card:hover .card-image img { transform: scale(1.05); }

.card-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
}

.card-logo {
    position: absolute;
    bottom: -20px;
    left: 16px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 2px solid white;
    object-fit: cover;
    box-shadow: var(--shadow);
    background: white;
}

.card-body {
    padding: 28px 16px 16px;
}

.card-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.83rem;
    color: var(--text-muted);
}

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

.card-reviews {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 8px;
}

/* ===== COMPANY DETAIL ===== */
.company-hero {
    position: relative;
    height: 320px;
    overflow: hidden;
    margin-top: 64px;
}

.company-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 220px;
    pointer-events: none;
    background: linear-gradient(to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.6) 55%,
        rgba(255,255,255,1) 100%);
}

/* Sposta il container della pagina azienda verso l'alto per sovrapporlo alla cover */
.container.company-overlap {
    margin-top: -140px;
    position: relative;
    z-index: 5;
    padding-top: 8px; /* evita che il contenuto aderisca troppo */
}

@media (max-width: 900px) {
    .container.company-overlap { margin-top: -100px; }
}

@media (max-width: 480px) {
    .container.company-overlap { margin-top: -60px; }
}

.company-header {
    padding: 32px 0 40px;
    /* border-bottom: 1px solid var(--border); */
    margin-bottom: 48px;
}

.company-header-inner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.company-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
    background: var(--bg-light);
}

.company-logo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    background: var(--bg-light);
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.company-title-group { flex: 1; }

.company-category-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 50px;
    margin-bottom: 8px;
}

.company-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 8px;
}

.company-subtitle {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.company-subtitle span { display: flex; align-items: center; gap: 4px; }

/* ===== CONTENT SECTIONS ===== */
.content-section { margin-bottom: 56px; }

.content-section h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.content-section p {
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 720px;
}

/* ===== PRODUCTS ===== */
.products-list { display: flex; flex-direction: column; gap: 48px; }

.product-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.product-item:nth-child(even) { direction: rtl; }
.product-item:nth-child(even) > * { direction: ltr; }

.product-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-light);
}

.product-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-image:hover img { transform: scale(1.05); }

.product-info h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.product-info p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.product-specs {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.product-specs strong {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.product-meta span { display: flex; align-items: center; gap: 5px; }
.product-award { color: var(--primary) !important; }

.product-price {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.btn-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cart:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

/* ===== CONTACTS ===== */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    color: currentColor;
}

.icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.nav-logo,
.footer-logo span,
.newsletter-icon,
.empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-logo,
.footer-logo span {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    /* background: var(--bg-light); */
}

.footer-logo span {
    background: none;
}

.newsletter-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(200, 101, 42, 0.12);
    color: var(--primary);
    margin-bottom: 16px;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--bg-light);
    opacity: 0.85;
}

.empty-state-icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 2.2;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}

.card-meta span svg {
    width: 16px;
    height: 16px;
}

.card-meta span:last-child { margin-left: 12px; }

.contact-icon svg,
.newsletter-icon svg {
    width: 22px;
    height: 22px;
}

.icon--brand svg {
    width: 22px;
    height: 22px;
}

.icon--location svg,
.icon--phone svg,
.icon--email svg,
.icon--web svg,
.icon--instagram svg {
    width: 20px;
    height: 20px;
}

.icon--cart svg {
    width: 26px;
    height: 26px;
}

.icon--newsletter svg {
    width: 26px;
    height: 26px;
}

.icon--edit svg,
.icon--delete svg,
.icon--view svg {
    width: 16px;
    height: 16px;
}

.contact-item .value a:hover { color: var(--primary); }

.contact-item a:hover { color: var(--primary); }

.contact-item .label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 2px;
}

.contact-item .value {
    font-size: 0.95rem;
    color: var(--text);
}

.contact-item a:hover { color: var(--primary); }

/* ===== REVIEWS ===== */
.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.reviews-header h2 { font-family: var(--font-serif); font-size: 1.8rem; }

.btn-review {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: white;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
}

.btn-review:hover { background: var(--primary-dark); }

.reviews-empty {
    text-align: center;
    padding: 48px;
    color: var(--text-muted);
    font-size: 0.95rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.review-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.review-stars { color: #f5a623; margin-bottom: 8px; }

.review-text { color: var(--text-muted); margin-bottom: 10px; line-height: 1.6; }

.review-author { font-size: 0.85rem; font-weight: 700; }

.review-date { font-size: 0.8rem; color: var(--text-light); }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 480px;
    width: 100%;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal h3 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 20px; }

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(200,101,42,0.1);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.stars-input { display: flex; gap: 4px; }

.stars-input label {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--border);
    transition: color 0.15s;
}

.stars-input input[type="radio"] { display: none; }
.stars-input label:hover,
.stars-input label.selected { color: #f5a623; }

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.75);
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px 48px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.footer-logo span { font-size: 1.3rem; }

.footer-brand p { font-size: 0.9rem; line-height: 1.7; }

.footer-col h4 {
    font-family: var(--font-serif);
    color: white;
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col a { font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary-light); }
.footer-col address { font-size: 0.9rem; line-height: 1.8; }

.footer-newsletter {
    background: rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 48px 24px;
    text-align: center;
}

.newsletter-icon {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.footer-newsletter h3 {
    font-family: var(--font-serif);
    color: white;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.footer-newsletter p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 11px 16px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: white;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form input:focus { border-color: var(--primary-light); }

.newsletter-msg { font-size: 0.85rem; min-height: 20px; }
.newsletter-msg.success { color: #6fcf97; }
.newsletter-msg.error { color: #eb5757; }

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 11px 24px;
    border-radius: var(--radius);
    border: none;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary:hover { background: var(--primary-dark); }

.footer-copy {
    text-align: center;
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.83rem;
    color: rgba(255,255,255,0.4);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-left.visible { opacity: 1; transform: translateX(0); }

.slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-right.visible { opacity: 1; transform: translateX(0); }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); }

.lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--text);
    color: white;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    z-index: 4000;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
    max-width: 320px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: #27ae60; }
.toast.error { background: #e74c3c; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    /* border-bottom: 1px solid var(--border); */
    margin-bottom: 0;
}

.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

.empty-state-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.4; }
.empty-state p { font-size: 1rem; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .product-item { grid-template-columns: 1fr; direction: ltr; }
    .product-item:nth-child(even) { direction: ltr; }
}

@media (max-width: 680px) {
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: white; padding: 16px 24px; flex-direction: column; gap: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .footer-main { grid-template-columns: 1fr; gap: 32px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form .btn-primary { width: 100%; }
    .companies-grid { grid-template-columns: 1fr; }
    .company-header-inner { flex-direction: column; }
}

/* ===== AZIENDE PAGE ===== */
.page-hero {
    margin-top: 64px;
    padding: 64px 0 40px;
    background: var(--bg-light);
    text-align: center;
}

.page-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 12px;
}

.page-hero p { color: var(--text-muted); font-size: 1.05rem; }

/* ===== NO RESULTS ===== */
#noResults {
    display: none;
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
}
