body {
    font-family: 'Inter', sans-serif;
}

.gradient-bg {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #4F46E5 0%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.frame-shadow {
    box-shadow:
        0 0 0 8px #8b7355,
        0 0 0 9px #6d5b47,
        0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

@keyframes soundWave {

    0%,
    100% {
        height: 4px;
    }

    50% {
        height: 16px;
    }
}

.sound-bar {
    width: 3px;
    height: 12px;
    background-color: white;
    border-radius: 2px;
    animation: soundWave 1.2s ease-in-out infinite;
}

/* Delay diversi per rendere l'onda asimmetrica */
.bar-1 {
    animation-delay: 0.1s;
}

.bar-2 {
    animation-delay: 0.3s;
}

.bar-3 {
    animation-delay: 0.6s;
}

.bar-4 {
    animation-delay: 0.2s;
}

.bar-5 {
    animation-delay: 0.4s;
}

@media (max-width: 640px) {
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* --- STILI CUSTOM PLAYER AGGIUNTI (da audio_player_or_activation.html) --- */

.container {
    /* Larghezza massima per dispositivi mobili/tablet, centrato */
    max-width: 480px;
    padding: 24px;
}

/* Stile uniforme per tutte le card (più arrotondate e con ombra morbida) */
.fs-card {
    background-color: #ffffff;
    border-radius: 1.5rem;
    /* Molto arrotondato (rounded-3xl) */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Stile pulsante primario ARANCIONE, come da screenshot */
.btn-primary {
    background-color: #FF9900;
    /* Arancione FrameSoul */
    color: #ffffff;
    font-weight: 700;
    transition: background-color 0.15s ease-in-out, transform 0.1s ease;
}

.btn-primary:hover {
    background-color: #e58800;
    /* Arancione leggermente più scuro al passaggio del mouse */
}

.btn-primary:active {
    transform: scale(0.99);
}

/* Stile per i campi di input */
.input-field {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    /* gray-200, molto sottile */
    border-radius: 0.75rem;
    /* rounded-xl */
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: #FF9900;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.2);
}

/* Stile per il Player Audio (L'originale è rimosso, ma manteniamo la regola per precauzione) */
#audio-player {
    width: 100%;
    margin-top: 1.5rem;
    border-radius: 0.75rem;
    /* rounded-xl */
    background-color: #f1f3f4;
}

/* Stile specifico per il file input per simulare un look pulito */
.file-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: #ffffff;
    height: 44px;
    /* Altezza fissa per allinearsi agli altri input */
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-label {
    background-color: #f3f4f6;
    color: #4b5563;
    /* gray-600 */
    padding: 12px 16px;
    border-right: 1px solid #e5e7eb;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
}

.file-name {
    padding: 0 16px;
    flex-grow: 1;
    color: #9ca3af;
    /* gray-400 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- STILI CUSTOM PLAYER AGGIUNTI --- */
.fs-play-button {
    width: 90px;
    height: 90px;
    background-color: #FF9900;
    /* Arancione FrameSoul */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 153, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 10;
}

.fs-play-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #FF9900;
    opacity: 0.5;
    z-index: -1;
    animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    70% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}


.fs-play-button:hover {
    background-color: #e58800;
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(255, 153, 0, 0.5);
}

.fs-play-button.playing {
    /* Stile per indicare la riproduzione in corso */
    background-color: #10b981;
    /* Verde per indicare l'azione */
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.fs-play-button.playing::before {
    background-color: #10b981;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    70% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}


.fs-play-icon {
    /* Icona Play (Triangolo) */
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 26px solid #ffffff;
    /* Triangolo bianco */
    margin-left: 4px;
    /* Sposta leggermente per centrarlo */
    transition: all 0.2s ease;
}

.fs-play-button.playing .fs-play-icon {
    /* Nasconde il triangolo Play */
    border: none !important;
    width: 0;
    height: 0;
    background-color: transparent !important;
    margin-left: 0;
    /* Aggiunge i due pseudo-elementi per le barrette Pausa */
    position: relative;
    width: 24px;
    height: 28px;
}

.fs-play-button.playing .fs-play-icon::before,
.fs-play-button.playing .fs-play-icon::after {
    content: '';
    position: absolute;
    top: 0;
    width: 6px;
    /* Larghezza della barretta */
    height: 100%;
    /* Altezza delle barrette */
    background-color: #ffffff;
    border-radius: 4px;
}

.fs-play-button.playing .fs-play-icon::before {
    left: 0;
    /* Posiziona la prima barretta a sinistra */
}

.fs-play-button.playing .fs-play-icon::after {
    right: 0;
    /* Posiziona la seconda barretta a destra */
}

/* Progress Bar Styles */
.fs-progress-container {
    width: 100%;
    height: 6px;
    background-color: #f3f4f6;
    border-radius: 9999px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.fs-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF9900 0%, #ff5e62 100%);
    width: 0%;
    border-radius: 9999px;
    transition: width 0.1s linear;
}

.fs-time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    padding: 0 4px;
}

/* --- FINE STILI CUSTOM PLAYER --- */

/* --- STILI FAQ --- */
summary {
    cursor: pointer;
    list-style: none; /* Rimuove il triangolo predefinito in alcuni browser */
}
summary::-webkit-details-marker {
    display: none; /* Rimuove il triangolo in Webkit (Chrome, Safari) */
}

details[open] summary ~ * {
    animation: sweep .5s ease-in-out;
}

@keyframes sweep {
    0%    {opacity: 0; transform: translateY(-10px)}
    100%  {opacity: 1; transform: translateY(0)}
}

details[open] .details-icon {
    transform: rotate(180deg);
}