/* ========================================
   BOOKING PAGE - Prenota Call
   Design minimalista con sfondo nero
   ======================================== */

/* ========================================
   HERO SECTION
   ======================================== */

.booking-hero {
    min-height: 100vh;
    background: #000000;
    padding: 140px 20px 60px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

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

/* ========================================
   HEADER
   ======================================== */

.booking-header {
    text-align: center;
    margin-bottom: 0;
}

.booking-headline {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.booking-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 400;
}

/* ========================================
   FULLWIDTH CAL.COM EMBED
   ======================================== */

.booking-calendar-fullwidth {
    background: transparent;
    border-radius: 16px;
    overflow: visible;
    width: 100%;
    min-height: 800px;
    max-width: 100%;
    margin-top: -60px;
    margin-bottom: 0;
    padding: 0;
}

.booking-calendar-fullwidth > div {
    width: 100%;
    height: 100%;
    min-height: 800px;
    background: transparent;
    margin: 0;
    padding: 0;
}

/* Rimuovi margin/padding dal contenuto interno di Cal.com */
#my-cal-inline-audit {
    margin: 0 !important;
    padding: 0 !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .booking-hero {
        padding: 100px 16px 60px;
    }

    .booking-headline {
        font-size: 36px;
    }

    .booking-header {
        margin-bottom: 32px;
    }

    .booking-calendar-fullwidth {
        min-height: 700px;
        border-radius: 12px;
    }

    .booking-calendar-fullwidth > div {
        min-height: 700px;
    }
}

@media (max-width: 480px) {
    .booking-headline {
        font-size: 32px;
    }

    .booking-calendar-fullwidth {
        min-height: 650px;
    }

    .booking-calendar-fullwidth > div {
        min-height: 650px;
    }
}

/* ========================================
   TRUST BAR - PARTNER TECNOLOGICI
   ======================================== */

.trust-bar-booking {
    margin-top: -60px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    background: transparent;
    border-radius: 8px;
    padding: 12px 0;
}

/* Testo introduttivo */
.trust-bar-text {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    white-space: nowrap;
}

/* Track container per animazione infinita */
.trust-bar-track {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
}

/* Contenitore loghi - duplicato per effetto seamless */
.trust-bar-logos {
    display: flex;
    align-items: center;
    gap: 80px;
    padding-right: 80px;
    animation: scrollLogos 35s linear infinite;
    flex-shrink: 0;
}

/* Animazione scroll infinito */
@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Singolo logo */
.trust-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
}

.trust-logo svg {
    height: 100%;
    width: auto;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.trust-logo:hover svg {
    color: rgba(255, 255, 255, 0.9);
}

/* Pausa animazione on hover */
.trust-bar-track:hover .trust-bar-logos {
    animation-play-state: paused;
}

/* ========================================
   QUOTE SECTION
   ======================================== */

.booking-quote-section {
    margin-top: 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.booking-quote {
    position: relative;
    font-size: 32px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    max-width: 800px;
    padding: 24px 32px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.booking-quote::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.quote-highlight {
    color: #ffffff;
    font-weight: 600;
    font-style: italic;
}

/* ========================================
   CTA BUTTON - Stesso stile della home
   ======================================== */

.booking-cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.booking-cta {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 12px 24px 12px 12px;
    gap: 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #FFFFFF;
    border: 1px solid transparent;
}

.cta-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.cta-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cta-main {
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cta-main svg {
    width: 16px;
    height: 16px;
}

.cta-subtitle {
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* Bordo animato - Punto luminoso con scia */
.booking-cta::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    padding: 2px;
    background: conic-gradient(
        from var(--angle),
        transparent 0%,
        transparent 85%,
        rgba(255, 255, 255, 0.1) 88%,
        rgba(255, 255, 255, 0.2) 91%,
        rgba(255, 255, 255, 0.4) 94%,
        rgba(255, 255, 255, 0.7) 97%,
        rgba(255, 255, 255, 1) 99%,
        rgba(255, 255, 255, 0.7) 99.5%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderRotate 4s linear infinite;
    pointer-events: none;
}

@keyframes borderRotate {
    0% {
        --angle: 0deg;
    }
    100% {
        --angle: 360deg;
    }
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.booking-cta:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
}

.booking-cta:active {
    transform: translateY(0);
}

/* ========================================
   CAL.COM CUSTOM STYLING OVERRIDES
   (Per integrare meglio con il design)
   ======================================== */

/* Nascondi scrollbar se necessario */
#my-cal-inline-audit::-webkit-scrollbar {
    width: 8px;
}

#my-cal-inline-audit::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#my-cal-inline-audit::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#my-cal-inline-audit::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}
