/* Wrapper che dà spazio allo scroll per il pin */
.hero-pin-wrapper {
    height: 400vh;
    position: relative;
    background: var(--hero-bg);
}

.kvs-hero {
    position: sticky;
    top: 0;
    height: 100dvh;
    min-height: 600px;
    background: var(--hero-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#ambientCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-brand-text {
    position: relative;
    z-index: 3;
    text-align: center;
    margin-top: 40px;
    opacity: 0;
}

.hero-brand-text h1 {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--text-hero);
    letter-spacing: 2px;
}

.hero-brand-text p {
    font-family: 'Nunito', sans-serif;
    font-size: 0.8rem;
    color: var(--text-hero-dim);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-top: 8px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
}

.hero-scroll-line {
    width: 1px;
    height: 48px;
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--arancione), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { top: -100%; }
    100% { top: 100%; }
}

.hero-gradient-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--hero-bg));
    z-index: 2;
    pointer-events: none;
}

.home-section {
    padding: 100px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* ─── Blob organici decorativi ─── */
@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}
@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-25px, 25px) scale(1.08); }
    66% { transform: translate(15px, -10px) scale(0.92); }
}

.home-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
    opacity: 0;
    animation: blobFloat 20s ease-in-out infinite;
}
.home-section > * { position: relative; z-index: 1; }

/* Blob alternati per sezione */
#prodottiSection::after {
    opacity: 1;
    background: radial-gradient(circle, rgba(245,166,35,0.15) 0%, transparent 70%);
    top: -100px;
    right: -150px;
}
#serviziSection::after {
    opacity: 1;
    background: radial-gradient(circle, rgba(242,140,40,0.10) 0%, transparent 70%);
    bottom: -80px;
    left: -120px;
    animation-name: blobFloat2;
    animation-duration: 25s;
}
#galleriaSection::after {
    opacity: 1;
    background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 70%);
    top: 50%;
    right: -180px;
    transform: translateY(-50%);
    animation-duration: 22s;
}

.home-testimonials {
    overflow: hidden;
    position: relative;
}
.home-testimonials::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(70px);
    background: radial-gradient(circle, rgba(242,140,40,0.10) 0%, transparent 70%);
    bottom: -60px;
    right: -100px;
    animation: blobFloat2 24s ease-in-out infinite;
}
.home-testimonials > * { position: relative; z-index: 1; }

/* Divisori decorativi arancio tra sezioni chiare */
.home-section + .home-section::before,
.home-testimonials::before {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--arancione), var(--ambra));
    border-radius: 2px;
    margin: 0 auto 60px;
}
.home-testimonials::before {
    margin-top: 0;
    margin-bottom: 48px;
}

.editorial-panel {
    padding: 120px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.editorial-panel::after {
    content: '';
    position: absolute;
    inset: -20%;
    background: url('/assets/img/filosofia.jpg') center/cover no-repeat;
    z-index: 0;
    will-change: transform;
}
.editorial-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.editorial-panel .section-label {
    color: var(--arancione);
}
.editorial-panel-inner {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.editorial-quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 600;
    font-style: italic;
    line-height: 1.45;
    color: #fff;
    margin: 28px 0;
    border: none;
    padding: 0;
}

.editorial-quote em {
    font-family: 'Caveat', cursive;
    font-size: 2em;
    color: var(--arancione);
    font-style: normal;
    font-weight: 700;
}

.editorial-author {
    font-family: 'Nunito', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 4px;
}

.editorial-panel-dark {
    background: var(--text);
    margin: 0;
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

#ctaCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.editorial-panel-dark .editorial-panel-inner {
    position: relative;
    z-index: 2;
}

.editorial-panel-dark .editorial-big-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-hero);
    margin-bottom: 32px;
}

.cta-em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 600;
    color: var(--arancione);
}

.cta-caveat {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    color: var(--ambra);
    font-size: 1.1em;
}

.journey-title { font-family: 'Playfair Display', serif; }

.journey-em {
    font-style: italic;
    color: var(--arancione);
}

.journey-caveat {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    color: var(--ambra);
    font-size: 1.05em;
}

.editorial-panel-dark .btn-primary {
    background: var(--arancione);
    color: #fff;
}

.editorial-panel-dark .btn-primary:hover {
    background: #C93A15;
    box-shadow: 0 8px 30px rgba(242,140,40,0.4);
}

.journey-section {
    padding: 100px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.journey-header {
    margin-bottom: 80px;
}

.journey-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .journey-track {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
}

.journey-step {
    padding: 40px 32px;
    border-radius: var(--raggio-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transizione);
    box-shadow: var(--ombra);
}

.journey-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--ombra-lg);
    border-color: var(--arancione);
}

.journey-number {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--arancione);
    line-height: 1;
    display: block;
    margin-bottom: 24px;
}

.journey-step h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

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

.products-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 56px;
}

@media (min-width: 768px) {
    .products-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.see-all {
    color: var(--arancione);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s ease;
}

.see-all:hover {
    gap: 8px;
}

.products-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 16px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.products-scroll::-webkit-scrollbar { display: none; }

.product-card {
    scroll-snap-align: start;
    flex: 0 0 240px;
    background: var(--bg-card);
    border-radius: var(--raggio);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: all var(--transizione);
    border: 1px solid var(--border);
    box-shadow: var(--ombra);
}


.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(242,140,40,0.1), 0 4px 12px rgba(0,0,0,0.06);
    border-color: rgba(242,140,40,0.2);
}

.product-card-img {
    aspect-ratio: 1;
    background: var(--bg);
    border-radius: var(--raggio-sm);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.placeholder-icon {
    font-size: 2.5rem;
    opacity: 0.35;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--arancione);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-card-info {
    padding: 0 6px 6px;
}

.product-card-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
}

.product-card-price {
    font-weight: 700;
    color: var(--arancione);
    font-size: 1.05rem;
}

.bento-header {
    margin-bottom: 56px;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .bento-large { min-height: 420px; }
    .bento-col {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .bento-item { flex: 1; }
}

.bento-item {
    background: var(--bg-card);
    border-radius: var(--raggio-lg);
    padding: 40px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    transition: all var(--transizione);
    box-shadow: var(--ombra);
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--ombra-lg);
    border-color: var(--arancione);
}

.bento-icon {
    font-size: 2rem;
    margin-bottom: 28px;
    background: var(--bg);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--raggio-sm);
}

.bento-content h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
}

.bento-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.bento-blue { background: linear-gradient(145deg, #2C3E7A 0%, #1a2650 100%); }
.bento-blue .bento-content h3,
.bento-blue .bento-content p { color: var(--text-hero); }
.bento-blue .bento-content p { opacity: 0.7; }
.bento-blue .bento-icon { background: rgba(255,255,255,0.15); }
.bento-blue:hover { border-color: var(--ambra); }

.bento-orange { background: linear-gradient(145deg, var(--arancione), #C93A15); }
.bento-orange .bento-content h3,
.bento-orange .bento-content p { color: #fff; }
.bento-orange .bento-content p { opacity: 0.8; }
.bento-orange .bento-icon { background: rgba(255,255,255,0.2); }

.bento-pink { background: linear-gradient(145deg, #F5A623, #F28C28); }
.bento-pink .bento-content h3,
.bento-pink .bento-content p { color: #fff; }
.bento-pink .bento-content p { opacity: 0.8; }
.bento-pink .bento-icon { background: rgba(255,255,255,0.2); }

.bento-amber { background: var(--bg-card); }

.bento-outline {
    background: transparent;
    border: 2px dashed var(--border-hover);
    justify-content: center;
    align-items: center;
    text-align: center;
}

.bento-outline:hover {
    border-color: var(--arancione);
    background: rgba(242,140,40,0.03);
}

.bento-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    font-size: 1.4rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
    color: inherit;
}

.bento-item:hover .bento-arrow {
    opacity: 1;
    transform: translateX(0);
}

.marquee-section {
    padding: 40px 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marqueeScroll 35s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.review-pill {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--raggio);
    width: 300px;
    flex-shrink: 0;
    box-shadow: var(--ombra);
}

.review-stars {
    color: var(--ambra);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.5;
}

.review-author {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-section {
    padding: 80px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.social-row {
    display: flex;
    gap: 16px;
    margin-top: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    min-width: 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1.5px solid var(--border-hover);
    background: var(--bg-card);
    color: var(--text);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--ombra-lg);
    border-color: var(--arancione);
    color: var(--arancione);
}

.google-bar {
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.google-bar strong { color: var(--text); }

.mouse-parallax {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ─── Hero overlay (scroll-driven) ────────────────────── */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    background: url('/assets/img/hero.jpg') center/cover no-repeat;
}
.hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 1;
}
.hero-overlay.active { pointer-events: all; }
.hero-overlay-particles { position: absolute; inset: 0; pointer-events: none; }
.hero-overlay-particle {
    position: absolute;
    background: var(--arancione);
    border-radius: 50%;
    opacity: 0.2;
}
.hero-overlay-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1rem;
    max-width: 80rem;
}
.hero-overlay-content h2 {
    font-family: 'Caveat', cursive;
    font-size: clamp(3rem, 9vw, 7rem);
    color: var(--arancione);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}
.hero-overlay-content h2 span { color: var(--arancione); }
.hero-overlay-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255,255,255,0.8);
    max-width: 48rem;
    margin: 0 auto 2.5rem;
}
.hero-overlay-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-overlay-buttons .btn-primary {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    box-shadow: 0 10px 40px rgba(242,140,40,0.3);
}
.hero-overlay-buttons .btn-hero-outline {
    padding: 1rem 2rem;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 9999px;
    font-family: 'Nunito', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}
.hero-overlay-buttons .btn-hero-outline:hover {
    background: #fff;
    color: var(--hero-bg);
}

/* ─── Sezione Come Lavoriamo ──────────────────────────── */
.section-header-center {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header-center .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 42rem;
    margin: 0 auto;
}
/* Come Lavoriamo — sfondo fotografico */
#journeySection {
    position: relative;
    max-width: 100%;
    padding: 100px 24px;
    background: url('/assets/img/index.jpg') center/cover no-repeat fixed;
}
#journeySection::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 0;
}
#journeySection > * { position: relative; z-index: 1; }
#journeySection .section-title { color: var(--arancione); }
#journeySection .section-subtitle { color: #fff; }
#journeySection .section-label { color: #fff; }
#journeySection .journey-step { background: rgba(0,0,0,0.55); border-color: rgba(255,255,255,0.15); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#journeySection .journey-step h3 { color: #fff; }
#journeySection .journey-step p { color: rgba(255,255,255,0.75); }

.home-journey-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}
@media (min-width: 768px) {
    .home-journey-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Categorie grid stile anteprima ──────────────────── */
.home-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .home-categories-grid { grid-template-columns: repeat(4, 1fr); }
}
.home-category-card {
    background: var(--bg-card);
    border-radius: var(--raggio-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--ombra);
    transition: transform var(--transizione), box-shadow var(--transizione);
    cursor: pointer;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
}
.home-category-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: var(--ombra-lg);
    border-color: var(--arancione);
}
.home-category-icon {
    width: 5rem; height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}
.home-category-card:hover .home-category-icon { transform: scale(1.1); }
.home-category-card h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
}

/* ─── Prodotti in evidenza scroll ─────────────────────── */
.home-products-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--arancione) transparent;
}
.home-products-scroll::-webkit-scrollbar { height: 6px; }
.home-products-scroll::-webkit-scrollbar-thumb { background: var(--arancione); border-radius: 3px; }
.home-product-card {
    min-width: 240px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: var(--bg-card);
    border-radius: var(--raggio);
    overflow: hidden;
    transition: transform var(--transizione), box-shadow var(--transizione);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    display: block;
}
.home-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ombra-lg);
    border-color: rgba(242,140,40,0.2);
}
.home-product-card .product-thumb {
    height: 200px;
    background: var(--bg);
    overflow: hidden;
}
.home-product-card .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.home-product-card:hover .product-thumb img { transform: scale(1.06); }
.home-product-card h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-product-card .product-cat {
    padding: 0 1rem 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ─── Servizi grid home ───────────────────────────────── */
.home-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .home-services-grid { grid-template-columns: repeat(3, 1fr); }
}
.home-service-card {
    position: relative;
    height: 16rem;
    border-radius: var(--raggio-lg);
    overflow: hidden;
    box-shadow: var(--ombra-lg);
    transition: transform var(--transizione), box-shadow var(--transizione);
    display: block;
    text-decoration: none;
}
.home-service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.18); }
.home-service-card .service-bg { position: absolute; inset: 0; transition: transform 0.5s; }
.home-service-card:hover .service-bg { transform: scale(1.05); }
.home-service-card .service-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.2); transition: background 0.3s; }
.home-service-card:hover .service-overlay { background: rgba(0,0,0,0.4); }
.home-service-card .service-content {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; padding: 1.5rem;
}
.home-service-card .service-icon { margin-bottom: 1rem; transition: transform 0.3s; }
.home-service-card:hover .service-icon { transform: scale(1.1); }
.home-service-card h3 { font-family: 'Caveat', cursive; font-size: 1.7rem; text-align: center; }

/* ─── Galleria grid home ──────────────────────────────── */
/* Layout uniforme: tutti i tile sono quadrati (aspect-ratio 1/1) → nessun crop irregolare */
.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: var(--max-width);
    margin: 0 auto;
}
@media (min-width: 768px) {
    .home-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    /* Rimuove le eccezioni span:2 della vecchia bento — tutti gli item stessa dimensione */
    .home-gallery-grid.gallery-8 .gallery-item:nth-child(1),
    .home-gallery-grid.gallery-8 .gallery-item:nth-child(6) {
        grid-column: auto;
    }
}
.gallery-item {
    border-radius: var(--raggio);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s;
    box-shadow: var(--ombra);
    display: block;
    text-decoration: none;
    aspect-ratio: 1 / 1;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover { transform: none; }
.gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    font-weight: 700;
    z-index: 2;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
}
.gallery-item:hover .gallery-label { opacity: 1; transform: translateY(0); }
.gallery-item .gallery-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.3s; z-index: 1; }
.gallery-item:hover .gallery-overlay { background: rgba(0,0,0,0.15); }

/* Su touch (nessun hover): mostra sempre la label — l'utente non ha stato hover */
@media (hover: none), (pointer: coarse) {
    .gallery-label {
        opacity: 1;
        transform: translateY(0);
        padding: 1.5rem 0.8rem 0.6rem;
        font-size: 1.15rem;
    }
}

/* ─── Perché sceglierci grid home ─────────────────────── */
.home-why-section {
    position: relative;
    padding: 100px 24px;
    background: url('/assets/img/gallery-7.jpg') center/cover no-repeat;
    color: #fff;
}
.home-why-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 0;
}
.home-why-section > * { position: relative; z-index: 1; }
.home-why-section .section-title { color: #fff; }
.home-why-section .section-label { color: rgba(255,255,255,0.7); }
.home-why-section .section-subtitle { color: rgba(255,255,255,0.6); }
.home-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}
@media (min-width: 768px) {
    .home-why-grid { grid-template-columns: repeat(4, 1fr); }
}
.home-why-item .why-icon {
    width: 6rem; height: 6rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
    background: rgba(242,140,40,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
}
.home-why-item:hover .why-icon { transform: scale(1.1) rotate(5deg); }
.home-why-item h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.75rem; color: #fff; }
.home-why-item p { color: rgba(255,255,255,0.65); font-size: 0.95rem; }

/* Contatori animati */
.home-counters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 4rem auto 0;
    text-align: center;
}
@media (min-width: 768px) {
    .home-counters { grid-template-columns: repeat(4, 1fr); }
}
.home-counter {
    padding: 2rem 1rem;
    border-radius: var(--raggio-lg);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
}
.counter-value {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--arancione);
    line-height: 1;
}
.counter-plus {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--arancione);
}
.counter-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.55);
    font-weight: 600;
}

/* ─── Testimonials home ───────────────────────────────── */
.home-testimonials {
    padding: 100px 24px;
    background: linear-gradient(180deg, #FFECD2 0%, #FFF2E0 40%, #FFF8F0 100%);
}
.home-testimonials .section-title { color: #222; }
.home-testimonials .section-label { color: var(--arancione); }
.home-testimonials .section-subtitle { color: #555; }
.home-testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}
@media (min-width: 768px) {
    .home-testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}
.home-testimonial-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    border-radius: var(--raggio-lg);
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid rgba(242,140,40,0.08);
    transition: box-shadow var(--transizione), transform var(--transizione);
}
.home-testimonial-card:hover { box-shadow: 0 12px 40px rgba(242,140,40,0.1); transform: translateY(-4px); }
.home-testimonial-stars { display: flex; gap: 0.25rem; margin-bottom: 1rem; }
.home-testimonial-text { font-style: italic; margin-bottom: 1.5rem; line-height: 1.7; color: #3a3a3a; }
.home-testimonial-author { border-top: 1px solid rgba(242,140,40,0.1); padding-top: 1rem; }
.home-testimonial-author strong { display: block; font-weight: 600; color: #222; }

.home-google-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    padding: 1.5rem 2rem;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    max-width: 32rem;
    margin: 2rem auto 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(242,140,40,0.08);
}
.home-google-bar .google-logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; color: #222; }
.home-google-bar .google-stars { display: flex; gap: 0.15rem; }
.home-google-bar .google-score { font-weight: 700; color: #555; }

/* ─── Marquee dark ────────────────────────────────────── */
.home-marquee {
    padding: 1.5rem 0;
    overflow: hidden;
    background: var(--hero-bg);
}
.home-marquee .marquee-track {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
}
.home-marquee .marquee-track:hover { animation-play-state: paused; }
.home-marquee .marquee-track span {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* ─── Instagram home ──────────────────────────────────── */
.home-instagram { padding: 100px 24px; background: var(--bg); }
.home-insta-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.home-insta-title-row .section-title { margin-bottom: 0; }
.home-insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: var(--max-width);
    margin: 0 auto 2rem;
}
@media (min-width: 768px) {
    .home-insta-grid { grid-template-columns: repeat(6, 1fr); }
}
.home-insta-item {
    aspect-ratio: 1;
    border-radius: var(--raggio);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: var(--ombra);
    transition: transform 0.3s;
    display: block;
}
.home-insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home-insta-item:hover { transform: scale(1.05); }
.home-insta-item .insta-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0); transition: background 0.3s; color: #fff;
}
.home-insta-item .insta-overlay svg { opacity: 0; transition: opacity 0.3s; }
.home-insta-item:hover .insta-overlay { background: rgba(0,0,0,0.3); }
.home-insta-item:hover .insta-overlay svg { opacity: 1; }
.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 28px;
    background: linear-gradient(90deg, #7c3aed, #db2777, #ea580c);
    color: #fff;
    border: none;
    border-radius: 9999px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(124,58,237,0.3);
    transition: transform 0.2s, box-shadow 0.3s;
}
.btn-instagram:hover { transform: scale(1.05); box-shadow: 0 15px 40px rgba(124,58,237,0.4); }

/* ─── Final CTA home ─────────────────────────────────── */
.home-final-cta {
    position: relative;
    padding: 8rem 1rem;
    overflow: hidden;
}
.home-final-cta .final-cta-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--arancione) 0%, var(--ambra) 50%, var(--blu) 100%);
}
.home-final-cta .final-cta-bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.home-final-cta .final-cta-bubble { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.1); width: 8rem; height: 8rem; }
.home-final-cta .final-cta-content {
    position: relative; z-index: 2; text-align: center;
    max-width: 64rem; margin: 0 auto;
}
.home-final-cta .final-cta-content h2 {
    font-family: 'Caveat', cursive;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    color: #fff; margin-bottom: 1.5rem;
}
.home-final-cta .final-cta-content > p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255,255,255,0.9); margin-bottom: 3rem;
    max-width: 48rem; margin-left: auto; margin-right: auto;
}
.home-final-cta .final-cta-buttons {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; align-items: center;
}
.btn-white {
    padding: 1rem 2rem; background: #fff; color: var(--arancione);
    border: none; border-radius: 9999px; font-weight: 700; font-size: 1.05rem;
    text-decoration: none; display: inline-flex; align-items: center; gap: 0.75rem;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.btn-white:hover { transform: scale(1.05); box-shadow: 0 15px 50px rgba(0,0,0,0.3); }
.btn-ghost {
    padding: 1rem 2rem; background: transparent; color: #fff;
    border: 2px solid #fff; border-radius: 9999px; font-weight: 700; font-size: 1.05rem;
    text-decoration: none; display: inline-flex; align-items: center; gap: 0.75rem;
    transition: all 0.3s;
}
.btn-ghost:hover { background: #fff; color: var(--arancione); }
.home-final-cta .final-cta-social {
    display: flex; gap: 2rem; justify-content: center; margin-top: 2rem;
}
.home-final-cta .final-cta-social a {
    color: rgba(255,255,255,0.9); text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-weight: 600; transition: color 0.3s;
}
.home-final-cta .final-cta-social a:hover { color: #fff; }
.home-final-cta .final-cta-info { margin-top: 2rem; color: rgba(255,255,255,0.8); }
.home-final-cta .final-cta-info p { font-size: 1rem; }
.home-final-cta .final-cta-info p:last-child { font-size: 0.85rem; margin-top: 0.5rem; }

@media (max-width: 768px) {
    .home-final-cta .final-cta-buttons { flex-direction: column; align-items: center; }
    .home-insta-title-row { flex-direction: column; gap: 0.5rem; }
    .home-google-bar { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════
   MOBILE — breakpoint principale ≤ 600px
   ═══════════════════════════════════════ */
@media (max-width: 600px) {

    /* ═════════════════════════════════════════════════════
       HERO MOBILE DEDICATO
       Sostituisce completamente l'hero 3D desktop:
       - Foto full-screen con effetto Ken Burns (zoom/pan 20s loop)
       - Overlay scuro editoriale a gradiente verticale
       - Particelle luminose CSS fluttuanti (ambient warm)
       - Titolo Caveat + sub + 2 CTA compatti
       - Scroll hint animato
       ═════════════════════════════════════════════════════ */
    .hero-pin-wrapper {
        height: auto;
        background: #080604;
    }
    .kvs-hero {
        position: relative;
        height: 100dvh;
        min-height: 560px;
        overflow: hidden;
        background: #080604;
    }
    /* Nasconde il canvas 3D fallback (usiamo overlay + immagine) */
    #ambientCanvas {
        opacity: 0;
    }
    /* Overlay diventa il contenitore principale del contenuto */
    .hero-overlay {
        position: absolute;
        inset: 0;
        opacity: 1;
        pointer-events: auto;
        background: none;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        z-index: 3;
    }
    /* Sfondo foto con Ken Burns lento */
    .hero-overlay::after {
        content: '';
        position: absolute;
        inset: -8%;
        background: url('/assets/img/hero.jpg') center/cover no-repeat;
        z-index: 0;
        animation: heroMobileKenBurns 24s ease-in-out infinite alternate;
        transform-origin: center center;
    }
    /* Overlay scuro editoriale */
    .hero-overlay::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
            radial-gradient(ellipse 80% 60% at 50% 40%, rgba(232,68,26,0.25) 0%, transparent 60%),
            linear-gradient(180deg, rgba(8,6,4,0.45) 0%, rgba(8,6,4,0.65) 55%, rgba(8,6,4,0.92) 100%);
        z-index: 1;
    }
    /* Particelle CSS ambient */
    .hero-overlay-particles {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        overflow: hidden;
    }
    .hero-overlay-particle {
        position: absolute;
        background: radial-gradient(circle, rgba(245,166,35,0.9), rgba(245,166,35,0));
        border-radius: 50%;
        opacity: 0;
        animation: heroMobileFloat linear infinite;
    }
    .hero-overlay-particle:nth-child(1)  { left:  8%; top: 90%; width: 6px; height: 6px; animation-duration: 14s; animation-delay: 0s; }
    .hero-overlay-particle:nth-child(2)  { left: 22%; top: 85%; width: 4px; height: 4px; animation-duration: 18s; animation-delay: 2s; }
    .hero-overlay-particle:nth-child(3)  { left: 38%; top: 92%; width: 8px; height: 8px; animation-duration: 20s; animation-delay: 1s; }
    .hero-overlay-particle:nth-child(4)  { left: 55%; top: 88%; width: 5px; height: 5px; animation-duration: 16s; animation-delay: 3s; }
    .hero-overlay-particle:nth-child(5)  { left: 72%; top: 95%; width: 7px; height: 7px; animation-duration: 22s; animation-delay: 5s; }
    .hero-overlay-particle:nth-child(6)  { left: 88%; top: 82%; width: 4px; height: 4px; animation-duration: 15s; animation-delay: 4s; }
    .hero-overlay-particle:nth-child(7)  { left: 15%; top: 96%; width: 5px; height: 5px; animation-duration: 19s; animation-delay: 6s; }
    .hero-overlay-particle:nth-child(8)  { left: 46%; top: 98%; width: 6px; height: 6px; animation-duration: 17s; animation-delay: 7s; }

    /* Contenuto centrale */
    .hero-overlay-content {
        position: relative;
        z-index: 3;
        max-width: 88vw;
        text-align: center;
        padding: 0 20px;
        animation: heroMobileFadeUp 1s 0.3s cubic-bezier(0.16,1,0.3,1) both;
    }
    .hero-overlay-content h2 {
        font-family: 'Caveat', cursive;
        font-size: clamp(2.6rem, 10vw, 3.6rem);
        line-height: 1.05;
        color: var(--text-hero);
        margin-bottom: 1rem;
        text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    }
    .hero-overlay-content h2 span {
        color: var(--arancione);
        font-style: italic;
    }
    .hero-overlay-content p {
        font-family: 'Nunito', sans-serif;
        font-size: 1rem;
        line-height: 1.55;
        color: rgba(249,248,246,0.88);
        margin-bottom: 1.8rem;
        text-shadow: 0 1px 6px rgba(0,0,0,0.35);
    }
    .hero-overlay-content p br { display: none; }

    /* CTA compatte, full-width impilate */
    .hero-overlay-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        padding: 0 12px;
    }
    .hero-overlay-content .btn-primary,
    .hero-overlay-content .btn-hero-outline {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 14px 20px;
        border-radius: 999px;
        touch-action: manipulation;
    }
    .hero-overlay-content .btn-hero-outline {
        background: rgba(255,255,255,0.08);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255,255,255,0.25);
        color: var(--text-hero);
    }

    /* Scroll indicator ben visibile in fondo */
    .hero-scroll-indicator {
        opacity: 1;
        bottom: 24px;
        z-index: 4;
    }
    .hero-scroll-line {
        height: 40px;
    }

    /* Fade in basso più marcato per passare dolcemente alla sezione dopo */
    .hero-gradient-fade {
        height: 140px;
        background: linear-gradient(to bottom, transparent, var(--hero-bg) 85%);
        z-index: 3;
    }

    /* Sezioni home: padding verticale ridotto */
    .home-section          { padding: 56px 20px; }
    .journey-section       { padding: 56px 20px; }
    .home-why-section      { padding: 56px 20px; }
    .home-testimonials     { padding: 56px 20px; }
    .home-instagram        { padding: 56px 20px; }
    .social-section        { padding: 48px 20px; }
    .editorial-panel       { padding: 56px 20px; }
    .editorial-panel-dark  { padding: 56px 20px; }
    .home-final-cta        { padding: 56px 20px; }

    /* Journey section: disabilita background-attachment:fixed (non funziona su iOS) */
    #journeySection {
        background-attachment: scroll;
        padding: 56px 20px;
    }

    /* Journey steps: padding compatto */
    .journey-step { padding: 24px 18px; }

    /* Bento cards: padding compatto */
    .bento-item { padding: 24px 20px; }

    /* Contatori: font ridotto */
    .counter-value { font-size: 2.2rem; }
    .counter-plus  { font-size: 1.6rem; }

    /* Galleria home: 2 colonne compatte (griglia più densa e uniforme) */
    .home-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    /* Testimonial: testo più piccolo */
    .home-testimonial-text { font-size: 0.88rem; }

    /* Google bar: layout compatto */
    .home-google-bar {
        padding: 1rem 1.25rem;
        gap: 0.5rem;
    }

    /* Final CTA: bottoni full-width */
    .btn-white, .btn-ghost {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
        padding: 0.9rem 1.5rem;
    }
}

/* ═════ Keyframes hero mobile ═════ */
@keyframes heroMobileKenBurns {
    0%   { transform: scale(1.05) translate(0, 0); }
    50%  { transform: scale(1.14) translate(-2%, -1.5%); }
    100% { transform: scale(1.08) translate(1.5%, 1%); }
}
@keyframes heroMobileFloat {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    12%  { opacity: 0.95; }
    88%  { opacity: 0.85; }
    100% { transform: translateY(-110vh) translateX(20px); opacity: 0; }
}
@keyframes heroMobileFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-overlay::after,
    .hero-overlay-particle,
    .hero-overlay-content { animation: none !important; }
    .hero-overlay-particles { display: none !important; }
}
 piccolo */
    .home-testimonial-text { font-size: 0.88rem; }

    /* Google bar: layout compatto */
    .home-google-bar {
        padding: 1rem 1.25rem;
        gap: 0.5rem;
    }

    /* Final CTA: bottoni full-width */
    .btn-white, .btn-ghost {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
        padding: 0.9rem 1.5rem;
    }
}
