/* Hydrobud - Premium CSS Stylesheet */

/* ----------------------------------------------------
   1. Design Tokens & CSS Variables
   ---------------------------------------------------- */
:root {
    --bg-dark: #070b13;
    --bg-card: rgba(13, 22, 38, 0.7);
    --bg-card-hover: rgba(20, 32, 54, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow-blue: rgba(0, 102, 204, 0.35);
    --border-glow-green: rgba(114, 176, 46, 0.35);
    
    --color-blue: #0066cc;
    --color-blue-hover: #0052a3;
    --color-blue-light: #3399ff;
    --color-green: #72b02e;
    --color-green-hover: #5a8d24;
    --color-green-light: #94e04f;
    
    --text-main: #f8fafc;
    --text-muted: #b4bfd0;
    --text-dark: #1f2937;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    --shadow-blue: 0 0 20px rgba(0, 102, 204, 0.45);
    --shadow-green: 0 0 20px rgba(114, 176, 46, 0.45);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------------------
   2. Reset & Base Styles
   ---------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

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

/* ----------------------------------------------------
   3. Typography & Titles
   ---------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-green-light);
    margin-bottom: 12px;
    position: relative;
    padding-left: 16px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--color-blue);
    border-radius: 50%;
}

.section-tag.blue::before {
    background-color: var(--color-green);
}

.section-tag.blue {
    color: var(--color-blue-light);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.section-title.text-left {
    text-align: left;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ----------------------------------------------------
   4. Buttons & UI Elements
   ---------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-blue), var(--color-blue-light));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-green), var(--color-green-light));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(114, 176, 46, 0.25);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

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

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.badge {
    display: inline-flex;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    background-color: rgba(114, 176, 46, 0.1);
    color: var(--color-green-light);
    border: 1px solid rgba(114, 176, 46, 0.2);
    margin-bottom: 20px;
}

/* ----------------------------------------------------
   5. Header & Navigation (Stacked Logo)
   ---------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 135px;
    z-index: 1000;
    background-color: rgba(7, 11, 19, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    border-radius: 4px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 0.95;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-hydro {
    color: #0066cc;
}

.logo-bud {
    color: #7eb83d;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-green));
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-cta {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition-smooth);
    background-color: #ffffff;
    border-radius: 2px;
}

/* ----------------------------------------------------
   6. Hero Section (Visual Impact)
   ---------------------------------------------------- */
.hero {
    position: relative;
    min-height: 80vh;
    padding-top: 135px;
    display: flex;
    align-items: center;
    background-image: url('assets/hero_background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(7, 11, 19, 0.2) 0%, rgba(7, 11, 19, 0.9) 80%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
}

.hero-content .badge {
    position: relative;
    top: -50px;
    margin-bottom: -30px; /* Compensa lo spazio vuoto lasciato dal badge spostato */
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    color: #ffffff;
}

.hero-title span {
    background: linear-gradient(135deg, var(--color-blue-light), var(--color-green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    stroke: var(--text-muted);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* ----------------------------------------------------
   7. About / Method Section
   ---------------------------------------------------- */
.about {
    padding: 46px 0;
    background-color: var(--bg-dark);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.about-card:hover {
    transform: translateY(-5px);
    background-color: var(--bg-card-hover);
    border-color: var(--border-glow-blue);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
}

.about-card.highlighted {
    border-color: var(--border-glow-green);
}

.about-card.highlighted:hover {
    border-color: var(--color-green-light);
    box-shadow: 0 10px 30px rgba(114, 176, 46, 0.15);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--color-blue-light);
    margin-bottom: 24px;
}

.about-card.highlighted .card-icon {
    background-color: rgba(114, 176, 46, 0.1);
    color: var(--color-green-light);
}

.about-card h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    color: #ffffff;
}

.about-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ----------------------------------------------------
   8. 3D Scrolling & Hover Card Section
   ---------------------------------------------------- */
.km0-section {
    padding: 46px 0;
    background-color: #090e18;
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

.km0-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.km0-info {
    max-width: 500px;
}

.km0-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rounded-image {
    border-radius: 20px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.shadow-effect {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ----------------------------------------------------
   9. Deep Cultivation System Section
   ---------------------------------------------------- */
.cultivation-system {
    padding: 46px 0;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.process-step {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px 24px;
    border-radius: 16px;
    position: relative;
    transition: var(--transition-smooth);
}

.process-step:hover {
    transform: translateY(-5px);
    background-color: var(--bg-card-hover);
    border-color: rgba(255,255,255,0.15);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-blue-light), var(--color-green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    line-height: 1;
}

.process-step h3 {
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.process-step.has-image .step-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step-img {
    margin-top: 15px;
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.process-step:hover .step-img {
    border-color: var(--color-blue-light);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* ----------------------------------------------------
   10. Nutraceutical Section (Bioactive Compounds)
   ---------------------------------------------------- */
.nutraceutical {
    padding: 46px 0;
    background: radial-gradient(circle at 90% 10%, rgba(114, 176, 46, 0.05) 0%, transparent 40%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.nutra-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.nutra-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    transition: var(--transition-smooth);
}

.nutra-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-glow-blue);
}

.nutra-card.special {
    border-color: var(--border-glow-green);
    box-shadow: 0 10px 30px rgba(114, 176, 46, 0.05);
}

.nutra-card.special:hover {
    border-color: var(--color-green-light);
}

.nutra-badge, .nutra-badge-glow {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 6px;
}

.nutra-badge {
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--color-blue-light);
}

.nutra-badge-glow {
    background-color: rgba(114, 176, 46, 0.1);
    color: var(--color-green-light);
    box-shadow: var(--shadow-green);
}

.nutra-card h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 16px;
    padding-right: 80px; /* Leave space for badge */
}

.nutra-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* ----------------------------------------------------
   11. Sustainability Slider (Interactive)
   ---------------------------------------------------- */
.sustainability {
    padding: 46px 0;
    background: radial-gradient(circle at 10% 20%, rgba(0, 102, 204, 0.05) 0%, transparent 40%);
}

.sustainability-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.slider-container {
    margin-top: 40px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.slider-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-green-light);
    text-shadow: 0 0 8px rgba(114, 176, 46, 0.2);
}

/* Slider Track Styling */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    margin-bottom: 8px;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-blue-light), var(--color-green-light));
    cursor: pointer;
    box-shadow: 0 0 10px rgba(114, 176, 46, 0.5);
    transition: var(--transition-smooth);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sustainability-metrics {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Availability Disclaimer */
.availability-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: rgba(255, 165, 0, 0.05);
    border: 1px solid rgba(255, 165, 0, 0.3);
    padding: 24px 30px;
    border-radius: 12px;
    margin: 80px auto 20px auto;
    max-width: 900px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.disclaimer-icon {
    flex-shrink: 0;
    color: rgba(255, 165, 0, 0.8);
    margin-top: 2px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px 30px;
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.metric-card:hover {
    background-color: var(--bg-card-hover);
    transform: translateX(5px);
}

.metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.metric-icon.blue-neon {
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--color-blue-light);
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.2);
}

.metric-icon.green-neon {
    background-color: rgba(114, 176, 46, 0.1);
    color: var(--color-green-light);
    box-shadow: 0 0 10px rgba(114, 176, 46, 0.2);
}

.metric-icon.blue-neon-secondary {
    background-color: rgba(51, 153, 255, 0.1);
    color: #3399ff;
    box-shadow: 0 0 10px rgba(51, 153, 255, 0.2);
}

.metric-num {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

.metric-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ----------------------------------------------------
   12. Products Preview Section (Home)
   ---------------------------------------------------- */
.products-preview {
    padding: 100px 0;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
}

.product-grid-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.preview-cta-wrapper {
    text-align: center;
}

.btn-detail-trigger-fake {
    color: var(--color-blue-light);
    font-weight: 600;
    font-size: 0.88rem;
}

.btn-detail-trigger-fake::after {
    content: ' →';
}

/* ----------------------------------------------------
   13. Contact Preview Section (Home)
   ---------------------------------------------------- */
.contact-preview {
    padding: 46px 0;
    background-color: #05080e;
    border-top: 1px solid var(--border-color);
}

.home-cta-card {
    background: linear-gradient(135deg, rgba(13, 22, 38, 0.8), rgba(7, 11, 19, 0.9));
    border: 1px solid var(--border-color);
    padding: 60px 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.home-cta-card h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.home-cta-card p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.home-cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-quick-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

/* ----------------------------------------------------
   14. Products Catalog Page Styles
   ---------------------------------------------------- */
.products-hero {
    padding: 165px 0 35px 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(13, 22, 38, 0.5) 0%, var(--bg-dark) 100%);
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 14px;
    color: #ffffff;
}

.page-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.products-catalog-section {
    padding: 28px 0 44px 0;
}

/* Filters Menu */
.product-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.filter-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--color-blue), var(--color-green));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.15);
}

/* Products Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    background-color: var(--bg-card-hover);
    border-color: var(--border-glow-blue);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.15);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    background-color: #0b1119;
    overflow: hidden;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-img.secondary {
    opacity: 0;
}

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

.product-card:hover .product-img.primary {
    opacity: 0;
}

.product-card:hover .product-img.secondary {
    opacity: 1;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    background-color: var(--color-blue);
    color: #ffffff;
}

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

.product-cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-green-light);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-info h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.product-pitch {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    margin-top: auto;
}

.product-status {
    font-size: 0.8rem;
    font-weight: 600;
}

.status-green {
    color: var(--color-green-light);
}

.status-orange {
    color: #ff9933;
}

.btn-detail-trigger {
    background: transparent;
    border: none;
    color: var(--color-blue-light);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    padding: 4px 0;
    position: relative;
}

.btn-detail-trigger::after {
    content: ' →';
    transition: var(--transition-smooth);
}

.btn-detail-trigger:hover::after {
    padding-left: 4px;
}

/* Products CTA Page */
.products-info-cta {
    padding: 40px 0 46px 0;
    background-color: var(--bg-dark);
}

.info-cta-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 36px 24px;
    border-radius: 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.info-cta-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 14px;
}

.info-cta-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 22px;
}

.info-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ----------------------------------------------------
   15. Product Modal Detail (Glassmorphic Window)
   ---------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 11, 19, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
}

.modal-product-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.modal-product-img {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.modal-product-img img.main-modal-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.modal-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.modal-thumb:hover {
    opacity: 0.9;
}

.modal-thumb.active {
    opacity: 1;
    border-color: var(--primary);
}

.gallery-nav-overlay {
    position: absolute;
    top: 0;
    width: 50%;
    height: calc(100% - 15px); /* Cover the image height, excluding bottom margin */
    cursor: pointer;
    z-index: 5;
}

.prev-overlay {
    left: 0;
}

.next-overlay {
    right: 0;
}

.gallery-nav-btn {
    position: absolute;
    top: calc(50% - 47px - 20px); /* rough center of main image */
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0; /* Hidden by default */
}

/* Show arrows on hovering the modal gallery container */
.modal-gallery-container:hover .gallery-nav-btn {
    opacity: 1;
}

.gallery-nav-btn:hover {
    background: var(--primary);
    color: var(--background);
}

.gallery-nav-btn.prev {
    left: 10px;
}

.gallery-nav-btn.next {
    right: 10px;
}

.modal-product-cat {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-green-light);
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.modal-product-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.modal-product-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-blue-light);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.meta-value {
    font-size: 0.95rem;
    color: #ffffff;
}

.modal-actions {
    display: flex;
    gap: 16px;
}

/* ----------------------------------------------------
   16. Contact Page Styles
   ---------------------------------------------------- */
.contacts-hero {
    padding: 165px 0 35px 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(13, 22, 38, 0.5) 0%, var(--bg-dark) 100%);
    border-bottom: 1px solid var(--border-color);
}

.contact-page-section {
    padding: 44px 0 46px 0;
}

.contact-page-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 28px;
}

.info-item {
    display: flex;
    align-items: start;
    gap: 20px;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--color-blue-light);
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 6px;
}

.info-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Styled Google Maps iframe */
.google-map-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Contact Tabbed Forms styling */
.contact-page-form-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
}

.form-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    gap: 16px;
}

.form-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 10px 15px 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.form-tab-btn:hover {
    color: #ffffff;
}

.form-tab-btn.active {
    color: var(--color-blue-light);
}

.form-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-blue-light);
    transition: var(--transition-smooth);
}

.form-tab-btn.active::after {
    width: 100%;
}

.form-content {
    display: none;
}

.form-content.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.form-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Form Fields */
.form-group {
    margin-bottom: 20px;
}

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

label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(7, 11, 19, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-blue-light);
    box-shadow: 0 0 8px rgba(0, 102, 204, 0.2);
}

/* Dropdown Arrow Styling helper */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* Form success panel */
.form-success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0;
    animation: fadeIn 0.4s ease forwards;
}

.form-success-message.active {
    display: flex;
}

.success-icon {
    margin-bottom: 20px;
    color: var(--color-green-light);
    animation: scaleUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleUp {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.form-success-message h4 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.form-success-message p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 320px;
}

/* ----------------------------------------------------
   16.5 FAQ Section (Domande Frequenti)
   ---------------------------------------------------- */
.faq-section {
    padding: 90px 0 70px 0;
    position: relative;
    background: linear-gradient(180deg, rgba(7, 11, 19, 0) 0%, rgba(13, 22, 38, 0.45) 50%, rgba(4, 7, 12, 0.95) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-accordion {
    max-width: 920px;
    margin: 0 auto 46px auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: rgba(114, 176, 46, 0.35);
    background: var(--bg-card-hover);
}

.faq-item.active {
    border-color: rgba(114, 176, 46, 0.55);
    background: rgba(16, 28, 48, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 25px rgba(114, 176, 46, 0.12);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    transition: var(--transition-smooth);
}

.faq-question:focus-visible {
    outline: 2px solid var(--color-green-light);
    outline-offset: -2px;
}

.faq-q-number {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-green-light);
    letter-spacing: 1px;
    padding: 4px 10px;
    background: rgba(114, 176, 46, 0.12);
    border: 1px solid rgba(114, 176, 46, 0.25);
    border-radius: 6px;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.faq-item.active .faq-q-number {
    background: var(--color-green);
    color: #ffffff;
    border-color: var(--color-green-light);
}

.faq-q-text {
    flex-grow: 1;
    letter-spacing: 0.2px;
}

.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, color 0.3s ease;
}

.faq-item:hover .faq-icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background: rgba(114, 176, 46, 0.2);
    border-color: rgba(114, 176, 46, 0.4);
    color: var(--color-green-light);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
    overflow: hidden;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
    opacity: 1;
}

.faq-answer-inner {
    min-height: 0;
    padding: 0 28px 24px 28px;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4px;
    padding-top: 18px;
}

.faq-answer-inner strong {
    color: #ffffff;
    font-weight: 600;
}

.faq-answer-inner a {
    color: var(--color-green-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.faq-answer-inner a:hover {
    color: #ffffff;
}

.faq-list {
    margin: 12px 0 0 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-list li {
    line-height: 1.6;
}

/* FAQ Support Box */
.faq-support-box {
    max-width: 920px;
    margin: 0 auto;
    padding: 28px 34px;
    background: linear-gradient(135deg, rgba(13, 22, 38, 0.85) 0%, rgba(7, 14, 25, 0.95) 100%);
    border: 1px solid rgba(0, 102, 204, 0.3);
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.faq-support-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.faq-support-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(0, 102, 204, 0.15);
    border: 1px solid rgba(0, 102, 204, 0.35);
    color: var(--color-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-support-text h4 {
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 6px;
}

.faq-support-text p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.faq-support-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.faq-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #0b141a;
    border: none;
    font-weight: 700;
}

.faq-wa-btn:hover {
    background: #20bd5a;
    color: #000000;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.45);
    transform: translateY(-2px);
}

/* ----------------------------------------------------
   17. Footer
   ---------------------------------------------------- */
.footer {
    background-color: #04070c;
    border-top: 1px solid var(--border-color);
    padding: 70px 0 35px 0;
    font-family: var(--font-body);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 45px;
    align-items: start;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-logo img {
    border-radius: 4px;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    font-family: var(--font-body);
    max-width: 380px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4, 
.footer-social h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-social {
    display: flex;
    flex-direction: column;
}

.social-icons {
    display: flex;
    gap: 14px;
    align-items: center;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.social-icons a:hover {
    color: #ffffff;
    background-color: var(--color-blue);
    border-color: var(--color-blue-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-blue);
}

.social-icons a.social-wa:hover {
    background-color: #25D366;
    border-color: #25D366;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.45);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 28px;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(156, 163, 175, 0.6);
    font-family: var(--font-body);
    line-height: 1.6;
}

/* ----------------------------------------------------
   18. Responsive Layout (Pervasive Mobile Compatibility)
   ---------------------------------------------------- */
@media (max-width: 1024px) {
    .sustainability-layout,
    .km0-layout,
    .contact-page-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid-preview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .3d-image-viewport {
        padding: 20px 0;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .faq-support-box {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }

    .faq-support-content {
        flex-direction: column;
        text-align: center;
    }

    .faq-support-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .header {
        height: 70px;
    }
    
    .logo-text {
        font-size: 1.15rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(7, 11, 19, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: var(--transition-smooth);
        padding: 60px 24px;
        gap: 36px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.5);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.15rem;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .nutra-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-product-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .modal-body {
        padding: 30px 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .footer-brand .footer-logo {
        justify-content: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .social-icons {
        justify-content: center;
    }

    .faq-section {
        padding: 60px 0 50px 0;
    }

    .faq-question {
        padding: 16px 18px;
        gap: 12px;
        font-size: 0.96rem;
    }

    .faq-q-number {
        font-size: 0.82rem;
        padding: 2px 7px;
    }

    .faq-answer-inner {
        padding: 0 18px 18px 18px;
        font-size: 0.92rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid-preview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .home-cta-card {
        padding: 40px 20px;
    }
    
    .home-cta-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .label-tech-line {
        font-size: 0.68rem;
        padding: 4px 10px;
    }
}

/* ----------------------------------------------------
   19. Custom Chef Collaboration Section
   ---------------------------------------------------- */
.chef-collaboration {
    padding: 46px 0;
    background: radial-gradient(circle at 50% 50%, rgba(114, 176, 46, 0.05) 0%, transparent 60%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.collaboration-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.collaboration-info .section-desc {
    margin-bottom: 20px;
}

.collaboration-graphic-container {
    width: 100%;
    height: 380px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(114, 176, 46, 0.1));
    border: 2px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.collaboration-graphic-container:hover {
    border-color: rgba(114, 176, 46, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.collaboration-graphic-placeholder span {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Override Footer Social Alignment */
.footer-social {
    text-align: center;
}

.social-icons {
    justify-content: center;
}

@media (max-width: 1024px) {
    .collaboration-layout {
        grid-template-columns: 1fr;
    }
    .collaboration-graphic-container {
        height: 300px;
    }
}

/* Contact Info SVG Styling */
.contact-quick-info span {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.contact-icon {
    color: var(--color-blue-light);
    flex-shrink: 0;
}


/* ----------------------------------------------------
   Km 0 Number Styling Fix
   ---------------------------------------------------- */
.km-zero {
    font-family: var(--font-body) !important;
    font-weight: 700;
    font-size: 1.05em;
    letter-spacing: -0.5px;
    display: inline-block;
}

/* ----------------------------------------------------
   Restaurant Partner Feed Banner / Slider
   ---------------------------------------------------- */
.restaurant-feed-section {
    padding: 70px 0;
    background: linear-gradient(180deg, rgba(7, 11, 19, 0.6) 0%, rgba(13, 22, 38, 0.85) 50%, rgba(7, 11, 19, 0.6) 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.restaurant-feed-section.prodotti-top-banner {
    padding: 40px 0 55px 0;
    border-top: none;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(13, 22, 38, 0.6) 0%, rgba(7, 11, 19, 0.95) 100%);
}

.feed-section-header {
    margin-bottom: 35px;
    text-align: center;
}

.feed-slider-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 45px;
    position: relative;
}

.feed-slider-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 18px;
    position: relative;
}

.feed-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
    padding: 6px 0;
}

/* 4 card visibili contemporaneamente su desktop */
.feed-card {
    flex: 0 0 calc((100% - 60px) / 4);
    width: calc((100% - 60px) / 4);
    box-sizing: border-box;
    user-select: none;
}

.feed-card-inner {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #0b111e;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.feed-card-inner:hover {
    transform: translateY(-5px);
    border-color: rgba(114, 176, 46, 0.5);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(114, 176, 46, 0.25);
}

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

.feed-card-inner:hover .feed-card-img {
    transform: scale(1.04);
}

.feed-card-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(7, 11, 19, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.feed-chef-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-dish-tag {
    font-size: 0.72rem;
    color: var(--color-green-light);
    font-weight: 600;
    background: rgba(114, 176, 46, 0.16);
    border: 1px solid rgba(114, 176, 46, 0.3);
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.feed-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(7, 11, 19, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.feed-slider-btn.prev {
    left: 0;
}

.feed-slider-btn.next {
    right: 0;
}

.feed-slider-btn:hover {
    background: var(--color-blue);
    border-color: var(--color-blue-light);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.6);
}

@media (max-width: 1024px) {
    .feed-slider-container {
        padding: 0 30px;
    }
    .feed-card {
        flex: 0 0 calc((100% - 20px) / 2);
        width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 600px) {
    .feed-slider-container {
        padding: 0 15px;
    }
    .feed-card {
        flex: 0 0 85%;
        width: 85%;
    }
    .feed-slider-btn {
        display: none;
    }
}


/* Km 0: stesso carattere del titolo, con cifre "lining" cosi' lo 0 e' un vero zero */
.km-zero {
    font-family: inherit;
    font-weight: inherit;
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
    white-space: nowrap;
}

/* Banner feed: spazi ridotti e CTA */
.restaurant-feed-section { padding: 38px 0; }
.feed-cta-wrapper { text-align: center; margin-top: 24px; }
.section-header { margin-bottom: 26px; }

/* Banner feed in pagina prodotti: libera la fascia fissa in alto */
.restaurant-feed-section.prodotti-top-banner { 
    padding: 175px 0 30px 0; 
    border-bottom: 1px solid var(--border-color);
}
.prodotti-top-banner + .products-hero {
    padding: 32px 0 24px 0;
}
@media (max-width: 768px) {
    .restaurant-feed-section.prodotti-top-banner { padding-top: 145px; padding-bottom: 25px; }
    .prodotti-top-banner + .products-hero { padding: 24px 0 20px 0; }
    .contacts-hero { padding: 135px 0 25px 0; }
    .contact-page-section { padding: 30px 0; }
    .products-catalog-section { padding: 20px 0 30px 0; }
    .products-info-cta { padding: 30px 0; }
    .chef-collaboration { padding: 32px 0; }
}
