/* ===========================
   PROMUOVI LA TUA ATTIVITÀ PAGE - Custom Colors
   Override shared styles with inverted color scheme
   Using brand colors: SANDY BROWN (primary) and FROZEN LAKE (secondary)
   =========================== */

:root {
    /* Primary: SANDY BROWN (warm orange) - instead of TECH BLUE */
    --color-primary: #FF9B42;
    
    /* Secondary: FROZEN LAKE (light blue) - instead of MINT LEAF */
    --color-secondary: #6CD4FF;
    
    /* Keep background and text colors the same */
    --color-bg-light: #EEF8FF; /* ALICE BLUE */
    --color-text: #1E1E1E; /* CARBON BLACK */
}

/* Override primary button hover to match SANDY BROWN */
.btn-primary:hover {
    background: #E88730;
    border-color: #E88730;
}

/* Override secondary accents - use FROZEN LAKE for secondary elements */
.stat-icon {
    background: var(--color-secondary);
}

/* Override gradient backgrounds to use new color scheme */
.step-num,
.benefit-icon-circle,
.contact-benefit .benefit-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

/* Override step highlight to use warm colors */
.step-highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

/* Override trust indicators to use new secondary color */
.trust-indicators .trust-item svg {
    stroke: var(--color-secondary);
}

.step-check svg {
    stroke: var(--color-secondary);
}

/* Override feature number boxes */
.feature-number {
    background: rgba(255, 155, 66, 0.12);
    border-color: rgba(255, 155, 66, 0.22);
    color: var(--color-primary);
}

/* Override value icons */
.value-icon {
    background: rgba(108, 212, 255, 0.12);
    border-color: rgba(108, 212, 255, 0.22);
}

/* Override preview bar gradient */
.preview-bar {
    background: linear-gradient(90deg, rgba(255, 155, 66, 0.9), rgba(108, 212, 255, 0.85));
}

/* Override feature box hover border */
.feature-box:hover {
    border-color: rgba(255, 155, 66, 0.35);
}

/* Override step tags */
.step-tags span {
    color: var(--color-primary);
}

/* Override category tags hover */
.category-tag:hover {
    border-color: var(--color-primary);
}

/* Override FAQ active state */
.faq-item.active {
    border-color: var(--color-primary);
}

.faq-item.active .faq-icon {
    color: var(--color-primary);
}

/* Override form focus states */
.contact-form-modern input:focus,
.contact-form-modern select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 155, 66, 0.1);
}

/* Override privacy checkbox */
.privacy-checkbox input[type="checkbox"] {
    accent-color: var(--color-primary);
}

.privacy-checkbox a:hover {
    color: var(--color-secondary);
}

/* Override footer links hover */
.footer-links a:hover {
    color: var(--color-primary);
}

.footer-credit a:hover {
    color: var(--color-secondary);
}

/* Override trust bar icon background on mobile */
@media (max-width: 767px) {
    .trust-bar .trust-icon {
        background: rgba(255, 155, 66, 0.10);
        border-color: rgba(255, 155, 66, 0.18);
        color: var(--color-primary);
    }
}

/* Override trust bar divider color on desktop */
@media (min-width: 768px) {
    .trust-bar .trust-icon {
        color: var(--color-secondary);
    }
}

/* Override metric box background */
.metric-box {
    background: rgba(108, 212, 255, 0.1);
    border-color: rgba(108, 212, 255, 0.18);
}

/* Override feature box highlight background */
.feature-box-highlight {
    background: linear-gradient(180deg, rgba(255, 155, 66, 0.10) 0%, rgba(238, 248, 255, 0.55) 55%, rgba(255, 255, 255, 1) 100%);
    border-color: rgba(255, 155, 66, 0.22);
}

/* Override feature box pseudo-element gradient */
.feature-box::before {
    background: radial-gradient(closest-side, rgba(255, 155, 66, 0.18), rgba(255, 155, 66, 0) 70%);
}

/* Override value section gradient */
.value-section::before {
    background: radial-gradient(closest-side, rgba(255, 155, 66, 0.14), rgba(255, 155, 66, 0) 70%);
}

/* Override autocomplete scrollbar */
.autocomplete-list::-webkit-scrollbar-thumb {
    background: var(--color-primary);
}

.autocomplete-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* Override categories scrollbar on mobile */
@media (max-width: 767px) {
    .categories-tags::-webkit-scrollbar-thumb {
        background: var(--color-primary);
    }
    
    .categories-tags::-webkit-scrollbar-thumb:hover {
        background: var(--color-secondary);
    }
}

/* Override cross-link section for promuovi-la-tua-attivita theme */
.cross-link-box {
    background: linear-gradient(135deg, rgba(255, 155, 66, 0.08) 0%, rgba(238, 248, 255, 0.6) 50%, rgba(255, 255, 255, 1) 100%);
    border-color: rgba(255, 155, 66, 0.2);
}

/* ===========================
   PLATFORM CONTENT LAYOUT
   =========================== */

.platform-content-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Mobile: inverti ordine - carousel prima, features dopo */
@media (max-width: 767px) {
    .features-list-vertical {
        order: 2;
    }
    
    .spaces-carousel-compact {
        order: 1;
    }
}

/* Tablet e Desktop: layout orizzontale (carousel a destra) */
@media (min-width: 768px) {
    .platform-content-layout {
        flex-direction: row;
        gap: 2.5rem;
        align-items: center;
    }
    
    /* Reset order su tablet/desktop */
    .features-list-vertical {
        order: 1;
    }
    
    .spaces-carousel-compact {
        order: 2;
    }
}

.features-list-vertical {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
    flex: 1;
}

@media (min-width: 768px) {
    .features-list-vertical {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
}

@media (min-width: 1024px) {
    .features-list-vertical {
        max-width: 65%;
    }
}

/* Compatta la sezione platform per farla stare nella viewport */
.platform-section {
    padding: clamp(2rem, 1.5rem + 1.5vw, 3rem) 0 !important;
}


.platform-section .section-header-center h2 {
    font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}

.platform-section .section-header-center p {
    font-size: 0.9375rem;
    margin: 0;
}

/* Compatta i feature-box per la sezione platform */
.platform-section .feature-box {
    padding: 0.875rem 0.875rem 0.8rem;
}

.platform-section .feature-box h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
    line-height: 1.3;
}

.platform-section .feature-box p {
    font-size: 0.8125rem;
    line-height: 1.45;
    margin: 0;
}

.platform-section .feature-number {
    font-size: 0.75rem;
    width: 26px;
    height: 26px;
    margin-bottom: 0.625rem;
    line-height: 26px;
}

/* Compatta il carousel compact */
.platform-section .spaces-carousel-compact-container {
    padding: 0.875rem;
}

.platform-section .spaces-compact-image {
    height: 100px;
}

.platform-section .spaces-compact-header {
    padding: 0.75rem 0.75rem 0.5rem;
}

.platform-section .spaces-compact-icon {
    width: 36px;
    height: 36px;
}

.platform-section .spaces-compact-header h4 {
    font-size: 0.875rem;
}

.platform-section .spaces-compact-header p {
    font-size: 0.625rem;
}

.platform-section .spaces-compact-description {
    font-size: 0.6875rem;
    padding: 0 0.75rem;
    margin-bottom: 0.75rem;
}

.platform-section .spaces-compact-stats {
    padding: 0 0.75rem 0.75rem;
    gap: 0.375rem;
}

.platform-section .spaces-compact-stat-row {
    padding: 0.375rem 0.5rem;
}

.platform-section .spaces-compact-stat-label,
.platform-section .spaces-compact-stat-value {
    font-size: 0.625rem;
}

.platform-section .spaces-compact-verified {
    padding: 0.625rem 0.75rem;
    font-size: 0.625rem;
}

.platform-section .spaces-carousel-compact-header {
    margin-bottom: 0.75rem;
}

.platform-section .spaces-carousel-compact-header h3 {
    font-size: 1rem;
}

.platform-section .spaces-carousel-compact-dots {
    margin-top: 0.75rem;
}

/* ===========================
   SPACES CAROUSEL COMPACT - Promuovi la tua attività Theme
   =========================== */

.spaces-carousel-compact {
    flex-shrink: 0;
    width: 100%;
}

/* Tablet e Desktop: carousel a destra con larghezza fissa */
@media (min-width: 768px) {
    .spaces-carousel-compact {
        width: auto;
        max-width: 320px;
        align-self: center;
    }
}

/* Slightly smaller peek on small screens for usability */
@media (max-width: 767px) {
    .spaces-carousel-compact-container {
        --carousel-peek: 24px;
        --carousel-gap: 10px;
    }
}

.spaces-carousel-compact-header {
    margin-bottom: 1rem;
}

.spaces-carousel-compact-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.spaces-carousel-compact-container {
    position: relative;
    overflow: hidden;
    /* Remove outer frame/border; keep only the card itself */
    border-radius: 0;
    background: transparent;
    border: none;
    /* Peek control: how much of adjacent cards you want to see (each side) */
    --carousel-peek: 40px;
    /* Small space between cards */
    --carousel-gap: 14px;
    /* Keep horizontal padding 0 so peek math is consistent; keep a bit of bottom space for dots */
    padding: 0 0 0.75rem;
}

.spaces-carousel-compact-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: var(--carousel-gap);
    will-change: transform;
}

.spaces-carousel-compact-item {
    /* Make each slide slightly narrower than the viewport so adjacent slides peek */
    flex: 0 0 calc(100% - (var(--carousel-peek) * 2));
    width: calc(100% - (var(--carousel-peek) * 2));
    box-sizing: border-box;
    padding: 0;
}

.spaces-carousel-compact-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(255, 155, 66, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--color-primary);
    padding: 0;
}

.spaces-carousel-compact-nav:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 155, 66, 0.35);
}

.spaces-carousel-compact-nav:hover:not(:disabled) {
    background: var(--color-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 155, 66, 0.3);
    border-color: var(--color-primary);
}

.spaces-carousel-compact-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.spaces-carousel-compact-prev {
    left: 0.5rem;
}

.spaces-carousel-compact-next {
    right: 0.5rem;
}

.spaces-carousel-compact-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 1rem;
    padding: 0;
}

.spaces-carousel-compact-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 155, 66, 0.3);
    border: 1px solid rgba(255, 155, 66, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.spaces-carousel-compact-dot.active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 4px;
    border-color: var(--color-primary);
}

.spaces-showcase-compact-card {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 155, 66, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.spaces-showcase-compact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(255, 155, 66, 0.15);
    border-color: rgba(255, 155, 66, 0.3);
}

.spaces-compact-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.spaces-compact-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #f0f0f0;
}

.spaces-compact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spaces-compact-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 0.875rem 0.5rem;
}

.spaces-compact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.spaces-icon-pos {
    background: linear-gradient(135deg, var(--color-primary), #ffb366);
    color: white;
}

.spaces-icon-bancone {
    background: linear-gradient(135deg, var(--color-secondary), #8de0ff);
    color: white;
}

.spaces-icon-wait {
    background: linear-gradient(135deg, var(--color-secondary), #8de0ff);
    color: white;
}

.spaces-icon-window {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
}

.spaces-compact-header h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.125rem 0;
    line-height: 1.2;
}

.spaces-compact-header p {
    font-size: 0.6875rem;
    color: #666;
    margin: 0;
}

.spaces-compact-description {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #555;
    margin: 0 0 0.875rem 0;
    padding: 0 0.875rem;
}

.spaces-compact-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.875rem 0.875rem;
}

.spaces-compact-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.625rem;
    border-radius: 6px;
    background: #f8f9fa;
}

.spaces-compact-stat-highlight {
    background: linear-gradient(90deg, rgba(255, 155, 66, 0.12), rgba(108, 212, 255, 0.12));
    border: 1px solid rgba(255, 155, 66, 0.2);
}

.spaces-compact-stat-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #666;
}

.spaces-compact-stat-value {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--color-text);
}

.spaces-compact-verified {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 0.875rem;
    border-top: 1px solid #e9ecef;
    color: var(--color-secondary);
    font-size: 0.6875rem;
    font-weight: 500;
}

.spaces-compact-verified svg {
    flex-shrink: 0;
}

@media (max-width: 1023px) {
    .spaces-carousel-compact {
        position: static;
        margin-top: 2rem;
    }
    
    .spaces-carousel-compact-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

