/*
Theme Name: Signor Gusto - Food & Wine Marketing
Theme URI: https://signorgusto.it
Author: Signor Gusto Team
Description: Tema premium per agenzia marketing verticale Food & Wine
Version: 2.0
License: GPL v2 or later
*/

/* ==================== RESET E VARIABILI ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette Signor Gusto */
    --primary: #c9230c;
    --primary-dark: #a60f08;
    --accent: #f9a823;

    --dark-bg: #121212;
    --dark-secondary: #1e1e1e;
    --light: #ffffff;
    --gray: #a1a1aa;
    --gray-light: #e4e4e7;

    --font-main: 'Segoe UI', 'Helvetica Neue', sans-serif;
    --font-title: 'Poppins', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow: 0 20px 60px rgba(201, 35, 12, 0.15);
}

html, body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--light);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== ANIMAZIONI ==================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33%       { transform: translateY(-18px) rotate(3deg); }
    66%       { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33%       { transform: translateY(12px) rotate(-4deg); }
    66%       { transform: translateY(5px) rotate(2deg); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    50%       { transform: translateY(-22px) rotate(6deg) scale(1.05); }
}

@keyframes spinDrift {
    0%   { transform: translateY(0px) rotate(0deg); }
    25%  { transform: translateY(-10px) rotate(90deg); }
    50%  { transform: translateY(-18px) rotate(180deg); }
    75%  { transform: translateY(-8px) rotate(270deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

@keyframes revealLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes revealRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.7) rotate(-5deg); }
    to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes bounceIn {
    0%   { opacity: 0; transform: scale(0.3) translateY(20px); }
    50%  { opacity: 1; transform: scale(1.05) translateY(-5px); }
    70%  { transform: scale(0.97) translateY(2px); }
    100% { transform: scale(1) translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201,35,12,0); }
    50%       { box-shadow: 0 0 20px 6px rgba(201,35,12,0.25); }
}

@keyframes drawLine {
    from { width: 0; }
    to   { width: 100%; }
}

@keyframes particleDrift {
    0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0.6; }
    25%  { transform: translateY(-30px) translateX(15px) rotate(90deg); opacity: 0.9; }
    50%  { transform: translateY(-55px) translateX(-10px) rotate(180deg); opacity: 0.5; }
    75%  { transform: translateY(-80px) translateX(20px) rotate(270deg); opacity: 0.8; }
    100% { transform: translateY(-110px) translateX(0) rotate(360deg); opacity: 0; }
}

/* ==================== SCROLL REVEAL CLASSES ==================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.reveal-left {
    transform: translateX(-40px);
}
.reveal.reveal-right {
    transform: translateX(40px);
}
.reveal.reveal-scale {
    transform: scale(0.85) translateY(20px);
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ==================== SCROLL PROGRESS BAR ==================== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ==================== FLOATING FOOD ICONS (HERO) ==================== */
.food-floats {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.food-float {
    position: absolute;
    font-size: 28px;
    opacity: 0.08;
    user-select: none;
    line-height: 1;
    filter: grayscale(1) brightness(10) blur(0.5px);
}

.food-float:nth-child(1)  { top: 12%; left: 6%;   font-size: 36px; animation: float 7s ease-in-out infinite; animation-delay: 0s; }
.food-float:nth-child(2)  { top: 22%; left: 88%;  font-size: 24px; animation: floatReverse 9s ease-in-out infinite; animation-delay: 1s; }
.food-float:nth-child(3)  { top: 65%; left: 4%;   font-size: 32px; animation: floatSlow 11s ease-in-out infinite; animation-delay: 2s; }
.food-float:nth-child(4)  { top: 75%; left: 90%;  font-size: 40px; animation: float 8s ease-in-out infinite; animation-delay: 0.5s; }
.food-float:nth-child(5)  { top: 42%; left: 92%;  font-size: 20px; animation: floatReverse 6s ease-in-out infinite; animation-delay: 3s; }
.food-float:nth-child(6)  { top: 85%; left: 50%;  font-size: 28px; animation: float 10s ease-in-out infinite; animation-delay: 1.5s; }
.food-float:nth-child(7)  { top: 8%;  left: 45%;  font-size: 22px; animation: floatSlow 12s ease-in-out infinite; animation-delay: 4s; }
.food-float:nth-child(8)  { top: 50%; left: 2%;   font-size: 30px; animation: floatReverse 8s ease-in-out infinite; animation-delay: 2.5s; }
.food-float:nth-child(9)  { top: 30%; left: 15%;  font-size: 18px; animation: float 9s ease-in-out infinite; animation-delay: 5s; }
.food-float:nth-child(10) { top: 90%; left: 15%;  font-size: 26px; animation: floatReverse 7s ease-in-out infinite; animation-delay: 0.8s; }
.food-float:nth-child(11) { top: 20%; left: 70%;  font-size: 22px; animation: floatSlow 13s ease-in-out infinite; animation-delay: 3.5s; }
.food-float:nth-child(12) { top: 55%; left: 75%;  font-size: 34px; animation: float 8s ease-in-out infinite; animation-delay: 6s; }

/* ==================== SECTION DIVIDERS ==================== */
.section-divider {
    position: relative;
    height: 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg);
}

.section-divider-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0.18;
}

.section-divider-icons span {
    font-size: 20px;
    display: inline-block;
    animation: float 4s ease-in-out infinite;
}
.section-divider-icons span:nth-child(2) { animation-delay: 0.3s; font-size: 16px; }
.section-divider-icons span:nth-child(3) { animation-delay: 0.6s; font-size: 22px; }
.section-divider-icons span:nth-child(4) { animation-delay: 0.9s; font-size: 16px; }
.section-divider-icons span:nth-child(5) { animation-delay: 1.2s; font-size: 20px; }
.section-divider-icons span:nth-child(6) { animation-delay: 1.5s; font-size: 18px; }
.section-divider-icons span:nth-child(7) { animation-delay: 1.8s; font-size: 16px; }

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,35,12,0.3), transparent);
}

/* ==================== DECORATIVE ICONS IN SECTIONS ==================== */
.deco-icon {
    position: absolute;
    font-size: 80px;
    opacity: 0.04;
    pointer-events: none;
    user-select: none;
    font-style: normal;
    line-height: 1;
    filter: blur(1px);
}

/* About section decos */
.about { position: relative; }
.about .deco-icon-1 { top: 20px;  right: 20px; font-size: 120px; opacity: 0.03; animation: floatSlow 14s ease-in-out infinite; }
.about .deco-icon-2 { bottom: 30px; left: 30px; font-size: 90px; opacity: 0.04; animation: float 10s ease-in-out infinite; animation-delay: 2s; }

/* Services section decos */
.services { position: relative; overflow: hidden; }
.services .deco-bg-icon {
    position: absolute;
    font-size: 200px;
    opacity: 0.025;
    pointer-events: none;
    line-height: 1;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    animation: floatSlow 18s ease-in-out infinite;
}

/* Features section decos */
.features-section { position: relative; overflow: hidden; }
.features-section .deco-bg-icon {
    position: absolute;
    font-size: 180px;
    opacity: 0.025;
    pointer-events: none;
    bottom: 20px;
    left: -20px;
    animation: floatReverse 16s ease-in-out infinite;
}

/* Contact section decos */
.contact { position: relative; overflow: hidden; }
.contact .deco-bg-icon {
    position: absolute;
    font-size: 160px;
    opacity: 0.03;
    pointer-events: none;
    top: 30px;
    right: 5%;
    animation: float 20s ease-in-out infinite;
}

/* ==================== ICON ORBITS (Chi Siamo) ==================== */
.icon-orbit-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.orbit-icon {
    position: absolute;
    font-size: 26px;
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 2px 8px rgba(201,35,12,0.5));
}
.orbit-icon:nth-child(1) { top: 8%;  right: 8%;  animation: float 6s ease-in-out infinite; animation-delay: 0s; }
.orbit-icon:nth-child(2) { top: 38%; right: 2%;  animation: floatReverse 8s ease-in-out infinite; animation-delay: 1s; }
.orbit-icon:nth-child(3) { bottom: 15%; right: 12%; animation: float 7s ease-in-out infinite; animation-delay: 2s; }
.orbit-icon:nth-child(4) { bottom: 8%;  left: 8%;  animation: floatSlow 9s ease-in-out infinite; animation-delay: 0.5s; }
.orbit-icon:nth-child(5) { top: 15%; left: 5%;   animation: floatReverse 5s ease-in-out infinite; animation-delay: 3s; }

/* ==================== COUNTER ANIMATION ==================== */
.stat-number {
    font-family: var(--font-title);
    font-size: 52px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: block;
}

/* ==================== STATS STRIP ==================== */
.stats-strip {
    background: var(--dark-bg);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.stats-strip::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-dark), var(--accent), var(--primary-dark), transparent);
}
.stats-strip::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-dark), var(--accent), var(--primary-dark), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray);
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 6px;
    display: block;
    animation: float 5s ease-in-out infinite;
}
.stat-item:nth-child(2) .stat-icon { animation-delay: 0.6s; }
.stat-item:nth-child(3) .stat-icon { animation-delay: 1.2s; }
.stat-item:nth-child(4) .stat-icon { animation-delay: 1.8s; }

/* ==================== ENHANCED HERO ==================== */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201,35,12,0.12);
    border: 1px solid rgba(201,35,12,0.3);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease both;
}

/* ==================== SECTION TITLE UNDERLINE ==================== */
.section-title-wrap {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.section-title-underline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 18px;
    opacity: 0.4;
}

/* ==================== SERVICE CARD ENHANCED ==================== */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover::after {
    transform: scaleX(1);
}

/* ==================== CURSOR TRAIL ==================== */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    mix-blend-mode: screen;
}

/* ==================== SMOOTH SECTION TRANSITIONS ==================== */
section {
    will-change: auto;
}

/* ==================== PILL HOVER PARTICLES ==================== */
@keyframes particlePop {
    0%   { transform: translate(0,0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: rgba(30, 30, 30, 0.95);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--primary-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 95%;
    margin: 0 auto;
}

.branding {
    display: flex;
    align-items: center;
    margin-left: 10px;
    gap: 15px;
    text-decoration: none;
    transition: var(--transition);
}
.branding:hover { opacity: 0.9; }

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    background-color: var(--light);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-title);
    font-size: 26px;
    font-weight: 800;
    color: var(--light);
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
}
.logo-text span { color: var(--primary); }

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}
.nav-menu a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
}
.nav-menu a:hover { color: var(--accent); }

.btn-nav {
    background: var(--primary);
    color: var(--light) !important;
    padding: 10px 25px !important;
    border-radius: 4px;
    transition: var(--transition);
    margin-right: 0;
}
.btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(166, 15, 8, 0.4);
}

/* ── HAMBURGER ── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 10px 10px;
    cursor: pointer;
    margin-right: 10px;
    transition: var(--transition);
}
.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--light);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── MOBILE MENU ── */
.mobile-menu {
    display: flex;
    flex-direction: column;
    background: var(--dark-secondary);
    border-top: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    padding: 8px 0 20px;
}
.mobile-menu a {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-light);
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-10px);
    transition: color 0.3s ease, background 0.3s ease,
                opacity 0.35s ease, transform 0.35s ease;
}
.mobile-menu.open a {
    opacity: 1;
    transform: translateX(0);
}
.mobile-menu.open a:nth-child(1) { transition-delay: 0.07s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.13s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.19s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.31s; }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent); background: rgba(255,255,255,0.03); }

/* ── NAV RIGHT (btn + toggle desktop) ── */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── LANGUAGE TOGGLE ── */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 4px 6px;
    flex-shrink: 0;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--gray);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    gap: 4px;
}
.lang-btn:hover {
    color: var(--accent);
    background: rgba(249,168,35,0.08);
}
.lang-btn.active {
    background: var(--primary);
    color: var(--light);
}

/* ── MOBILE NAV CONTROLS (hamburger + flags) ── */
.mobile-nav-controls {
    display: none;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
}

/* Mobile toggle: flags only, compact */
.lang-toggle-mobile {
    padding: 3px 5px;
    gap: 1px;
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
}
.lang-toggle-mobile .lang-btn {
    padding: 4px 5px;
    font-size: 18px;
}

/* On desktop, hide the mobile toggle */
@media (min-width: 769px) {
    .lang-toggle-mobile { display: none; }
    .mobile-nav-controls { display: none; }
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #2a0505 0%, var(--dark-bg) 100%);
    position: relative;
    padding: 80px 20px;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 2;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--light);
}
.hero-title span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--gray);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 16px 35px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--light);
    box-shadow: 0 10px 25px rgba(201, 35, 12, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(201, 35, 12, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--accent);
}
.btn-secondary:hover {
    background: var(--accent);
    color: var(--dark-bg);
}

/* ==================== SERVICES ==================== */
.services {
    padding: 100px 0;
    background: var(--dark-secondary);
}

.section-title {
    font-family: var(--font-title);
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
    color: var(--light);
}

.section-subtitle {
    text-align: center;
    color: var(--accent);
    font-size: 18px;
    margin-bottom: 70px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: var(--transition);
}
.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    background: rgba(166, 15, 8, 0.1);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 25px;
    color: var(--accent);
}

.service-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--light);
}

.service-description {
    color: var(--gray);
    font-size: 15px;
}

/* ==================== PORTFOLIO ==================== */
.portfolio {
    padding: 100px 0;
    background: var(--dark-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(166, 15, 8, 0.9) 0%, rgba(201, 35, 12, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: var(--transition);
}

.portfolio-title {
    color: var(--light);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.portfolio-category {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
}

/* ==================== FEATURES ==================== */
.features-section {
    padding: 100px 0;
    background: var(--dark-bg);
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    flex: 1 1 350px;
    max-width: 380px;
    position: relative;
    padding: 35px;
    border-radius: 15px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    font-size: 32px;
    line-height: 1;
}

.feature-title {
    font-family: var(--font-title);
    color: var(--light);
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.feature-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

.card-rosso {
    background: linear-gradient(135deg, rgba(166,15,8,0.22) 0%, rgba(30,30,30,0.7) 100%);
    border-color: rgba(166,15,8,0.3);
}
.card-oro {
    background: linear-gradient(135deg, rgba(249,168,35,0.12) 0%, rgba(30,30,30,0.7) 100%);
    border-color: rgba(249,168,35,0.2);
}
.card-mix {
    background: linear-gradient(135deg, rgba(166,15,8,0.14) 0%, rgba(249,168,35,0.07) 100%);
}

/* ==================== PARTNER CAROUSEL ==================== */
@keyframes carouselScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partners-section {
    padding: 56px 0;
    background: var(--dark-secondary);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

.partners-label {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 30px;
}

.carousel-mask {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.carousel-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: carouselScroll 28s linear infinite;
}
.carousel-track:hover { animation-play-state: paused; }

.partner-card {
    width: 220px;
    height: 100px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}
.partner-card:hover {
    border-color: rgba(249,168,35,0.45);
    transform: scale(1.04);
}
.partner-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px 8px;
    filter: brightness(1) opacity(1);
    transition: var(--transition);
}
.partner-card:hover img {
    filter: brightness(1.1) opacity(1);
}

/* ==================== SETTORI ==================== */
@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sectors-section {
    padding: 100px 0;
    background: var(--dark-secondary);
}

.sector-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 44px;
}

.stab {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 800;
    color: var(--gray-light);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 10px 22px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.stab:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.stab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--light);
}

.area-panel { display: none; }
.area-panel.active {
    display: block;
    animation: panelFadeIn 0.35s ease both;
}

.area-intro {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 26px 30px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    margin-bottom: 32px;
}
.area-icon { font-size: 46px; line-height: 1; flex-shrink: 0; }
.area-intro h3 {
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 800;
    color: var(--light);
    margin-bottom: 8px;
}
.area-intro p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.65;
    max-width: 680px;
}

.kw-group { margin-bottom: 26px; }
.kw-group-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.kw-group-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(249,168,35,0.2);
}

.kw-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.kw-pill {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-light);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 9px 17px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.kw-pill:hover {
    background: rgba(249,168,35,0.1);
    border-color: rgba(249,168,35,0.5);
    color: var(--light);
    transform: translateY(-2px);
}
.kw-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--light);
}

/* ==================== POPUP MODAL ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: #1c1c1c;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px 20px 0 0;
    padding: 30px 28px 40px;
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(40px);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}
.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-drag-handle {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    margin: 0 auto 22px;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--gray);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.modal-close:hover { background: var(--primary); color: var(--light); border-color: var(--primary); }

.m-icon  { font-size: 44px; margin-bottom: 10px; line-height: 1; }
.m-cat   { font-size: 10px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.m-title { font-family: var(--font-title); font-size: 24px; font-weight: 800; color: var(--light); margin-bottom: 12px; }
.m-desc  { font-size: 15px; color: var(--gray); line-height: 1.7; margin-bottom: 22px; }
.m-tags  { display: flex; flex-wrap: wrap; gap: 8px; }
.m-tag {
    font-size: 13px;
    font-weight: 600;
    color: var(--light);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.m-tag::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ==================== CONTACT / FORM ==================== */
.contact {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--dark-secondary) 0%, var(--dark-bg) 100%);
}

.contact input, .contact textarea, .contact select {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    border-radius: 4px;
    font-family: inherit;
    margin-bottom: 0;
    transition: var(--transition);
    font-size: 15px;
}
.contact input::placeholder,
.contact textarea::placeholder { color: var(--gray); }
.contact select option { background: var(--dark-secondary); }
.contact input:focus, .contact textarea:focus, .contact select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

/* ==================== FOOTER ==================== */
.footer {
    background: #0a0a0a;
    padding: 80px 0 30px;
    border-top: 2px solid var(--primary-dark);
}

.footer h3 {
    color: var(--light);
    margin-bottom: 25px;
    font-size: 18px;
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 15px; }

.footer a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}
.footer a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid #222;
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    color: #555;
    font-size: 14px;
}
/* ==================== POPUP SUCCESSO FORM ==================== */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.success-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.success-box {
    background: #1a1a1a;
    border: 1px solid rgba(201, 35, 12, 0.4);
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 460px;
    width: 90%;
    text-align: center;
    transform: scale(0.85) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 80px rgba(201, 35, 12, 0.25);
}
.success-overlay.open .success-box {
    transform: scale(1) translateY(0);
}
.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
    animation: float 3s ease-in-out infinite;
}
.success-title {
    font-family: var(--font-title);
    font-size: 30px;
    font-weight: 800;
    color: var(--light);
    margin-bottom: 15px;
}
.success-msg {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}
.success-msg strong {
    color: var(--accent);
}
/* ============================================================
   MEDIA QUERIES - DEVONO RIMANERE QUI IN FONDO
   ============================================================ */

@media (max-width: 768px) {
    /* Navbar */
    .nav-menu { display: none; }
    .hamburger { display: flex; }
    .mobile-nav-controls { display: flex; }
    .lang-label { display: none; }
    .lang-toggle:not(.lang-toggle-mobile) { display: none; }

    /* Navbar container — logo a sinistra, controlli a destra ben spaziati */
    .navbar .container {
        max-width: 100%;
        padding: 0 14px 0 10px;
        gap: 0;
    }
    .branding {
        margin-left: 0;
        gap: 10px;
        flex: 1;
    }
    .logo-img {
        width: 44px;
        height: 44px;
    }
    .logo-text {
        font-size: 20px;
    }
    .mobile-nav-controls {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-right: 0;
        flex-shrink: 0;
    }
    .lang-toggle-mobile {
        padding: 3px 6px;
        gap: 2px;
    }
    .lang-toggle-mobile .lang-btn {
        padding: 5px 6px;
        font-size: 20px;
    }
    .hamburger {
        margin-right: 0;
        padding: 9px 9px;
        gap: 5px;
    }
    .hamburger span {
        width: 22px;
    }

    /* Hero */
    .hero-title { font-size: 65px; } 
    .hero-subtitle { font-size: 18px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 320px; text-align: center; }

    /* About */
    .about .container { flex-direction: column !important; }

    /* Services */
    .section-title { font-size: 34px; }
    .services-grid { grid-template-columns: 1fr; }

    /* Features */
    .feature-item { max-width: 100%; flex: 1 1 100%; }

    /* Sectors */
    .stab { padding: 9px 15px; font-size: 20px; }
    .area-intro { flex-direction: column; gap: 10px; padding: 20px 18px; }
    .area-intro p { font-size: 18px; }

    /* Modal */
    .modal-box { padding: 26px 18px 36px; max-height: 88vh; }

    /* Stats */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .stat-number { font-size: 40px; }

    /* Floating food icons - less on mobile */
    .food-float:nth-child(n+7) { display: none; }
    .food-float { opacity: 0.05; }

    /* Cursor dot - hide on touch */
    .cursor-dot { display: none; }
}

@media (max-width: 480px) {
    /* Smartphone in verticale */
    .hero-title { font-size: 32px; }
    .section-title { font-size: 28px; }
    .section-subtitle { font-size: 14px; margin-bottom: 40px; }
    .kw-pill { font-size: 14px; padding: 6px 9px; }
    .partner-card { width: 180px; height: 84px; }
    .btn { padding: 14px 24px; font-size: 14px; }
    .stab { padding: 8px 12px; font-size: 14px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-number { font-size: 32px; }
    .section-divider { height: 50px; }
    .deco-icon, .deco-bg-icon { display: none; }
}