/* ============================================
   SO-SYNERGY MAIN STYLESHEET
   Colors: Black (#000), Orange (#FF6600), White (#FFF)
   ============================================ */

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

:root {
    --color-black: #000000;
    --color-orange: #FF6600;
    --color-white: #FFFFFF;
    --color-gray-light: #F5F5F5;
    --color-gray-medium: #CCCCCC;
    --color-gray-dark: #333333;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-headings: 'Montserrat', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --border-radius: 8px;
    --border-radius-lg: 16px;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);

    /* Zoom-stable spacing (100%-200% browser zoom) */
    --spacing-factor-xs: clamp(0.4rem, 1vw, 0.625rem);
    --spacing-factor-sm: clamp(0.75rem, 2vw, 1.25rem);
    --spacing-factor-md: clamp(1.5rem, 3vw, 2.5rem);
    --spacing-factor-lg: clamp(3rem, 5vw, 5rem);
    --spacing-factor-xl: clamp(4.5rem, 7vw, 7.5rem);

    /* Modal constraints (prevents overflow on zoom) */
    --modal-max-width-sm: min(31.25rem, 95vw);
    --modal-max-width-md: min(50rem, 95vw);
    --modal-max-width-lg: min(75rem, 95vw);
    --modal-max-height: min(calc(100vh - 5rem), 100rem);

    /* Container constraints */
    --container-max-width: min(87.5rem, 96vw);

    /* Touch targets WCAG 2.5.5 (minimum 44x44px) */
    --min-touch-target: max(44px, 2.75rem);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

a {
    color: var(--color-orange);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-black);
}

.highlight-orange {
    color: var(--color-orange);
}

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

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

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

.section-dark {
    background-color: var(--color-black);
    color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--color-white);
}

.section-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--spacing-lg);
}

.section-title {
    margin-bottom: var(--spacing-md);
}

/* Nowrap solo su desktop per section-title */
@media (min-width: 768px) {
    .section-title {
        white-space: nowrap;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-orange);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--color-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-orange);
    border: 2px solid var(--color-orange);
}

.btn-secondary:hover {
    background-color: var(--color-orange);
    color: var(--color-white);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* ============================================
   SPLIT LAYOUT
   ============================================ */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

/* ============================================
   WHAT WE DO SECTION
   ============================================ */
#what-we-do {
    background-color: var(--color-gray-light);
}

.intro-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.features-grid .feature-item:nth-child(3) {
    grid-column: span 2;
}

.feature-item {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--spacing-sm);
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-black);
}

.feature-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.sustainability-note {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(255, 102, 0, 0.1);
    border-left: 4px solid var(--color-orange);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
}

.eco-icon {
    font-size: 1.5rem;
}

/* Interactive Gadget */
.interactive-gadget-container {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.gadget-display {
    position: relative;
    cursor: pointer;
    margin: var(--spacing-md) 0;
    transition: var(--transition-medium);
}

.gadget-display:hover {
    transform: scale(1.05);
}

.gadget-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.tap-hint {
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--color-orange);
    font-weight: 600;
}

.gadget-description {
    font-size: 0.95rem;
    color: var(--color-gray-dark);
}

/* ============================================
   HOW WE WORK SECTION
   ============================================ */
#how-we-work {
    position: relative;
    background-image: url('../assets/images/hero/background.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sketch-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10 L90 90 M90 10 L10 90' stroke='%23FFF' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-orange), var(--color-white));
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

.timeline-icon {
    grid-column: 2;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--color-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 10px var(--color-black);
}

.timeline-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.timeline-icon .step-number {
    font-family: var(--font-headings);
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-white);
    line-height: 1;
}

.timeline-content {
    background: var(--color-gray-dark);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 3;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 1;
}

.timeline-content h3 {
    color: var(--color-orange);
    margin-bottom: var(--spacing-sm);
}

.inline-link {
    color: var(--color-orange);
    text-decoration: underline;
    font-weight: 600;
}

.inline-link:hover {
    color: var(--color-white);
}

/* ============================================
   CALL TO ACTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--color-orange) 0%, #FF8833 100%);
    color: var(--color-white);
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

/* Nowrap solo su desktop per cta-title */
@media (min-width: 768px) {
    .cta-title {
        white-space: nowrap;
    }
}

.cta-section .btn-primary {
    background-color: var(--color-black);
}

.cta-section .btn-primary:hover {
    background-color: var(--color-white);
    color: var(--color-orange);
}

/* ============================================
   CLIENTS SECTION
   ============================================ */
.clients-carousel-wrapper {
    overflow: hidden;
    margin-top: var(--spacing-lg);
}

.clients-carousel {
    display: flex;
    gap: var(--spacing-lg);
    animation: scrollCarousel 30s linear infinite;
}

.clients-carousel:hover {
    animation-play-state: paused;
}

.client-logo {
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
}

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

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition-medium);
}

.client-logo:hover img {
    filter: grayscale(0%);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.project-card {
    background: var(--color-gray-dark);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-md);
}

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

.project-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 102, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-medium);
    pointer-events: none;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project {
    color: var(--color-white);
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.125rem;
}

.project-info {
    padding: var(--spacing-md);
}

.project-title {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.project-sector {
    color: var(--color-orange);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.product-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
    display: grid;
    grid-template-columns: 40% 60%;
    align-items: stretch;
}

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

.product-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    background: var(--color-gray-light);
    position: relative;
}

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

/* Caroselli prodotti (Smart Gadget / Totem) */
.product-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.product-slider .slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
}

.product-slider .slider-slide {
    min-width: 100%;
    height: 100%;
}

.product-slider .slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-slider .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s ease;
}

.product-slider .slider-nav:hover {
    background: rgba(0, 0, 0, 0.65);
}

.product-slider .slider-nav.prev {
    left: var(--spacing-xs);
}

.product-slider .slider-nav.next {
    right: var(--spacing-xs);
}

.product-slider .slider-dots {
    position: absolute;
    bottom: var(--spacing-xs);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.product-slider .slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.product-slider .slider-dot.active {
    background: var(--color-orange);
    transform: scale(1.1);
}

.product-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.product-subtitle {
    color: var(--color-orange);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
}

.product-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.product-card .btn-secondary {
    align-self: flex-start;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-header {
    margin-bottom: var(--spacing-lg);
}

/* Info Grid - 3x2 layout for claims and contact info */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg) var(--spacing-xl);
    max-width: 900px;
    margin: var(--spacing-lg) auto;
    padding: 0 var(--spacing-md);
}

.claim-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-weight: 600;
}

.claim-icon {
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-size: 1.125rem;
}

.contact-item a {
    color: var(--color-orange);
    font-weight: 600;
    white-space: nowrap;
}

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

.contact-icon {
    font-size: 1.25rem;
}

/* Forms */
.forms-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.form-box {
    background: var(--color-gray-dark);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-title {
    color: var(--color-white);
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

.form-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-orange);
    background: rgba(255, 255, 255, 0.15);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-white);
    font-weight: 400;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--color-orange);
    text-decoration: underline;
}

/* Form Progress (Quote Form Wizard) */
.form-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.progress-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    transition: var(--transition-medium);
    z-index: 2;
}

.progress-circle.active {
    background: var(--color-orange);
    border-color: var(--color-orange);
    color: var(--color-white);
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.5);
}

.progress-label {
    position: absolute;
    bottom: clamp(-1.75rem, -3vh, -1.25rem);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.7);
}

.progress-circle.active .progress-label {
    color: var(--color-orange);
    font-weight: 700;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.btn-prev,
.btn-next {
    flex: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-logo img {
    max-width: 400px;
}

.footer-text p {
    margin-bottom: var(--spacing-xs);
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-orange);
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    overflow-y: auto;
    padding: var(--spacing-lg) var(--spacing-md);
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.modal-content {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    max-width: var(--modal-max-width-sm);
    width: 100%;
    position: relative;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
    margin: auto;
    max-height: var(--modal-max-height);
    overflow-y: auto;
}

.modal-medium {
    max-width: var(--modal-max-width-md);
}

.modal-large {
    max-width: var(--modal-max-width-lg);
}

.modal-close {
    position: sticky;
    top: var(--spacing-sm);
    float: right;
    margin-bottom: calc(-40px - var(--spacing-sm));
    margin-right: calc(-1 * var(--spacing-sm));
    background: var(--color-orange);
    color: var(--color-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    background: var(--color-black);
    transform: rotate(90deg) scale(1.1);
}

/* Digital Hub Modal - Layout Compatto */
.product-modal .modal-content {
    padding: var(--spacing-md) var(--spacing-lg);
}

.product-modal .product-section {
    margin-bottom: 20px;
}

.product-modal .product-section:last-of-type {
    margin-bottom: var(--spacing-md);
}

.product-modal h2 {
    margin-bottom: 8px;
}

.product-modal .product-tagline {
    margin-bottom: 20px;
}

/* Mini Hub Modal */
.mini-hub-content {
    max-width: min(36.25rem, 95vw);
    width: 100%;
    padding: var(--spacing-xl) var(--spacing-lg);
    display: flex;
    justify-content: center;
}

.phone-mockup {
    background: var(--color-black);
    border-radius: 32px;
    padding: 20px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
    width: 100%;
    max-width: min(30rem, 90vw);
    margin: 0 auto;
    /* Evita scrollbar esterne: lasciamo che il contenuto interno gestisca lo scroll */
    max-height: calc(90vh - 80px);
    overflow: hidden;
}

.phone-screen {
    background: var(--color-white);
    border-radius: 24px;
    padding: var(--spacing-md);
    text-align: center;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-orange) transparent;
    /* Texture di sfondo dedicata al mockup per richiamare l'hub */
    background-image: url('../assets/images/hero/background.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
}

.hub-logo img {
    max-width: 150px;
    margin-bottom: var(--spacing-sm);
}

.phone-screen h3 {
    margin-bottom: var(--spacing-md);
    font-size: 1.375rem;
}

.hub-sound-btn {
    background: var(--color-orange);
    color: var(--color-white);
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    transition: var(--transition-fast);
}

.hub-sound-btn:hover {
    background: var(--color-black);
}

.hub-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.hub-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem var(--spacing-md);
    background: var(--color-gray-light);
    border-radius: var(--border-radius);
    color: var(--color-black);
    text-decoration: none;
    transition: var(--transition-fast);
    justify-content: flex-start;
    white-space: nowrap;
    font-size: 0.95rem;
    width: 100%;
}

.hub-link:hover {
    background: var(--color-orange);
    color: var(--color-white);
}

.hub-icon {
    font-size: 1.25rem;
}

/* Case Study Modal */
.case-study-modal .modal-content {
    background: var(--color-black);
    color: var(--color-white);
    max-width: min(62.5rem, 95vw);
    padding: var(--spacing-xl);
}

.case-study-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.case-study-media {
    position: relative;
    position: sticky;
    top: 0;
}

.case-video,
.case-image {
    width: 100%;
    border-radius: var(--border-radius);
    max-height: 60vh;
    object-fit: cover;
}

.case-study-modal h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.case-sector {
    color: var(--color-orange);
    margin-bottom: var(--spacing-lg);
    font-size: 1.125rem;
    font-weight: 600;
}

.case-section {
    margin-bottom: var(--spacing-lg);
}

.case-section h3 {
    color: var(--color-orange);
    font-size: 1.375rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.case-section p {
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
}

.case-section ul {
    margin-left: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.case-section li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

/* Photo Gallery */
.photo-gallery {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--color-black);
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-image.active {
    opacity: 1;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 102, 0, 0.9);
    color: var(--color-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover {
    background: var(--color-orange);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: clamp(0.5rem, 1.5vw, 1rem);
}

.gallery-next {
    right: clamp(0.5rem, 1.5vw, 1rem);
}

.gallery-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
}

.gallery-current {
    color: var(--color-orange);
}

/* Product Detail Modal */
.product-modal .modal-content {
    background: var(--color-white);
}

.product-detail h2 {
    margin-bottom: var(--spacing-xs);
}

.product-tagline {
    color: var(--color-orange);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.product-section {
    margin-bottom: var(--spacing-md);
}

.product-section h3 {
    color: var(--color-black);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

.product-section ul {
    margin-left: var(--spacing-md);
}

.product-section li {
    margin-bottom: var(--spacing-xs);
}

/* Success Modal */
.success-message {
    text-align: center;
    padding: var(--spacing-md);
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-orange);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto var(--spacing-md);
    animation: successPulse 0.6s ease;
}

.success-message h3 {
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 600;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--color-white);
    border-bottom: 2px solid var(--color-white);
    transform: rotate(45deg);
    margin: var(--spacing-xs) auto 0;
    animation: bounce 2s infinite;
}

/* ============================================
   BADGE CONSIGLIATO PER PRODOTTI
   ============================================ */

.recommended-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) 0;
}

.badge-recommended {
    display: inline-flex;
    align-items: center;
    background: var(--color-orange);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

.inline-link {
    color: var(--color-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.inline-link:hover {
    color: #FF8833;
    text-decoration: underline;
}

.footnote {
    margin-top: var(--spacing-sm);
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.product-section ul li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

/* ============================================
   TAP POWER SECTION
   ============================================ */
#tap-power {
    background-image: url('../assets/images/hero/background.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.tap-content-card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.video-container {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--color-black);
    max-height: 1200px;
    display: flex;
    align-items: center;
}

.tap-video {
    width: 100%;
    height: 100%;
    max-height: 1200px;
    display: block;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
}

.tap-features,
.tap-audience {
    margin-bottom: var(--spacing-lg);
}

.tap-features h3,
.tap-audience h3 {
    font-size: 1.375rem;
    color: var(--color-black);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.feature-list,
.audience-list {
    list-style: none;
    padding-left: 0;
    margin-top: var(--spacing-sm);
}

.feature-list li,
.audience-list li {
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    position: relative;
    line-height: 1.7;
}

.feature-list li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    color: var(--color-orange);
    font-size: 1.125rem;
}

.audience-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-orange);
    font-weight: 700;
    font-size: 1.125rem;
}

.tap-tagline {
    font-size: 1.25rem;
    color: var(--color-orange);
    margin-top: var(--spacing-md);
    text-align: left;
}

/* ============================================
   MARKET STATISTICS SECTION
   ============================================ */
#market-stats {
    background-color: var(--color-gray-light);
}

/* Statistics Grid - 3 columns */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Individual Stat Item */
.stat-item {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

/* Large Number Display */
.stat-number {
    font-family: var(--font-headings);
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--color-orange);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.02em;
}

/* Stat Title (main description) */
.stat-title {
    font-family: var(--font-headings);
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    font-weight: 700;
    color: var(--color-black);
    line-height: 1.3;
    margin-bottom: var(--spacing-xs);
    min-height: 2.6em;
}

/* Stat Subtitle (explanation text) */
.stat-subtitle {
    font-size: clamp(0.875rem, 1.5vw, 0.95rem);
    color: var(--color-gray-dark);
    line-height: 1.6;
    margin-bottom: 0;
    opacity: 0.85;
}

/* Closing Tagline */
.stats-tagline {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-orange) 0%, #FF8833 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.stats-tagline p {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 600;
    color: var(--color-white);
    margin: 0;
    line-height: 1.5;
}

.stats-tagline strong {
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* ============================================
   FAQ SECTION
   ============================================ */

/* Category Filter Buttons */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) auto;
    max-width: 900px;
}

.faq-category-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--color-white);
    font-family: var(--font-headings);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.faq-category-btn:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
    transform: translateY(-2px);
}

.faq-category-btn.active {
    background: var(--color-orange);
    border-color: var(--color-orange);
    color: var(--color-white);
}

/* FAQ Container */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
    margin-top: var(--spacing-lg);
}

/* FAQ Item */
.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    transition: all var(--transition-medium);
    opacity: 1;
    max-height: 2000px;
}

.faq-item.hidden {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    border-width: 0;
    pointer-events: none;
}

.faq-item:hover {
    border-color: var(--color-orange);
    background: rgba(255, 255, 255, 0.08);
}

.faq-item.active {
    border-color: var(--color-orange);
    background: rgba(255, 255, 255, 0.08);
}

/* FAQ Question Button */
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-headings);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-white);
    text-align: left;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    color: var(--color-orange);
}

.faq-item.active .faq-question {
    color: var(--color-orange);
}

.faq-question-text {
    flex: 1;
    padding-right: var(--spacing-md);
}

/* FAQ Icon (Plus/Minus) */
.faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--color-orange);
    transition: transform var(--transition-medium);
    line-height: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium) ease;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
}

.faq-answer-content {
    padding: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.faq-answer-content p {
    margin-bottom: var(--spacing-sm);
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content ul {
    margin: var(--spacing-sm) 0;
    padding-left: var(--spacing-md);
}

.faq-answer-content ul li {
    margin-bottom: var(--spacing-xs);
    list-style-type: disc;
    color: rgba(255, 255, 255, 0.85);
}

/* FAQ CTA */
.faq-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.faq-cta-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Info grid responsive - 2 columns on mobile */
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .faq-categories {
        gap: var(--spacing-xs);
    }

    .faq-category-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.85rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: var(--spacing-sm);
    }

    .faq-question-text {
        padding-right: var(--spacing-sm);
    }

    .faq-icon {
        width: 28px;
        height: 28px;
        font-size: 1.5rem;
    }

    .faq-answer-content {
        padding: 0 var(--spacing-sm) var(--spacing-sm) var(--spacing-sm);
        font-size: 0.95rem;
    }

    .faq-cta-text {
        font-size: 1.1rem;
    }
}
