/* ============================================
   G.U.S.T.O. WEB APP - STILI PRINCIPALI
   Usa le variabili da /css/style.css
   ============================================ */

/* === FORZA LIGHT MODE === */
:root {
    color-scheme: light only;
}

/* === BASE === */
body.webapp {
    background: var(--bg-sito);
    font-family: 'Poppins', sans-serif;
    color: var(--marrone-terra);
}

/* === HERO SECTION === */
.hero-gusto {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-sito) 0%, var(--bg-sito-chiaro) 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 20px 60px;
}

/* Bolle animate di sfondo - PIÙ VISIBILI */
.hero-gusto::before,
.hero-gusto::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.hero-gusto::before {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--rosa-guida-hover) 0%, transparent 70%);
    top: -80px;
    left: -80px;
}

.hero-gusto::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--azzurro-oss-hover) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-30px) translateX(20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.logo-gusto {
    font-family: 'Merriweather', serif;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--terracotta) 0%, var(--oro-miele) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: 8px;
}

.tagline {
    font-family: 'Satisfy', cursive;
    font-size: 1.8rem;
    color: var(--marrone-medio);
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--marrone-terra);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* === PILASTRI CARDS - PIÙ GENTILI E ARMONIOSE === */
.pillars-section {
    padding: 60px 20px;
    background: var(--bg-sito-chiaro);
}

.pillar-card {
    background: white;
    border-radius: 15px;
    padding: 30px 25px;
    margin-bottom: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: width 0.3s ease;
}

.pillar-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.pillar-card:hover::before {
    width: 8px;
}

.pillar-card.guida { border-left-color: var(--rosa-guida-text); }
.pillar-card.guida::before { background: var(--rosa-guida-text); }

.pillar-card.udire { border-left-color: var(--verde-udire-text); }
.pillar-card.udire::before { background: var(--verde-udire-text); }

.pillar-card.sperim { border-left-color: var(--giallo-sperim-text); }
.pillar-card.sperim::before { background: var(--giallo-sperim-text); }

.pillar-card.tempo { border-left-color: var(--viola-tempo-text); }
.pillar-card.tempo::before { background: var(--viola-tempo-text); }

.pillar-card.osserva { border-left-color: var(--azzurro-oss-text); }
.pillar-card.osserva::before { background: var(--azzurro-oss-text); }

.pillar-icon {
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

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

.pillar-card:hover .pillar-icon {
    transform: scale(1.1);
}

/* Icone nel percorso */
.journey-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 8px;
}

.pillar-letter {
    font-family: 'Merriweather', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.pillar-card.guida .pillar-letter { color: var(--rosa-guida-text); }
.pillar-card.udire .pillar-letter { color: var(--verde-udire-text); }
.pillar-card.sperim .pillar-letter { color: var(--giallo-sperim-text); }
.pillar-card.tempo .pillar-letter { color: var(--viola-tempo-text); }
.pillar-card.osserva .pillar-letter { color: var(--azzurro-oss-text); }

.pillar-title {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--marrone-terra);
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 2;
}

.pillar-description {
    color: var(--marrone-medio);
    line-height: 1.6;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* === HERO BUTTONS CONTAINER === */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* === CTA BUTTONS - PIÙ VISIBILI E GENTILI === */
.btn-gusto-primary {
    background: var(--bg-sito-chiaro);
    color: var(--terracotta-cotto);
    border: 2px solid var(--iuta-scuro);
    padding: 16px 45px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: none;
}

.btn-gusto-primary:hover {
    background: var(--iuta-chiaro);
    border-color: var(--terracotta-cotto);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 117, 87, 0.2);
    color: var(--terracotta-scuro);
}

.btn-gusto-secondary {
    background: var(--bg-sito-chiaro);
    color: var(--terracotta-cotto);
    border: 2px solid var(--terracotta-cotto);
    padding: 16px 45px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: 30px;
}

.btn-gusto-secondary:hover {
    background: var(--iuta-chiaro);
    color: var(--terracotta-scuro);
    border-color: var(--terracotta-cotto);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(193, 117, 87, 0.15);
}

/* === JOURNEY PREVIEW === */
.journey-section {
    padding: 80px 20px;
    background: var(--bg-sito);
}

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

.journey-step {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border-left: 5px solid;
    transition: all 0.3s ease;
}

.journey-step:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.journey-step.fase-1 { border-left-color: var(--rosa-guida-text); }
.journey-step.fase-2 { border-left-color: var(--verde-udire-text); }
.journey-step.fase-3 { border-left-color: var(--azzurro-oss-text); }

.journey-week {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--marrone-chiaro);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.journey-title {
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    color: var(--marrone-terra);
    margin-bottom: 0.8rem;
}

.journey-description {
    color: var(--marrone-medio);
    line-height: 1.6;
}

/* === FLOATING ELEMENTS - ICONE PERSONALIZZATE === */
.floating-icon {
    position: absolute;
    opacity: 0.35;
    animation: floatIcon 15s infinite ease-in-out;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.1));
    z-index: 1;
}

.floating-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.icon-1 { top: 15%; left: 12%; animation-delay: 0s; }
.icon-2 { top: 50%; right: 5%; animation-delay: 3s; }
.icon-3 { bottom: 25%; left: 8%; animation-delay: 6s; }
.icon-4 { top: 12%; left: 55%; animation-delay: 4.5s; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .logo-gusto {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .tagline {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 15px;
    }

    .btn-gusto-primary {
        width: 100%;
        max-width: 300px;
    }

    .btn-gusto-secondary {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
        max-width: 300px;
        display: block;
    }

    .pillar-letter {
        font-size: 1.8rem;
    }

    .pillar-icon img {
        width: 50px;
        height: 50px;
    }

    .journey-icon {
        width: 28px;
        height: 28px;
    }

    .pillar-card {
        padding: 25px 20px;
    }

    .floating-icon {
        opacity: 0.2;
    }

    .floating-icon img {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   DASHBOARD STYLES
   ============================================ */

.dashboard-wrapper {
    min-height: 100vh;
    background: var(--bg-sito);
    padding: 30px 15px;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    text-align: center;
}

.dashboard-header h1 {
    font-family: 'Merriweather', serif;
    color: var(--marrone-terra);
    font-size: 2rem;
    margin-bottom: 10px;
}

.dashboard-subtitle {
    font-family: 'Satisfy', cursive;
    font-size: 1.3rem;
    color: var(--marrone-medio);
}

/* Card G.U.S.T.O. Dashboard */
.gusto-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border-top: 4px solid;
}

.gusto-card.g-card { border-top-color: var(--rosa-guida-hover); }
.gusto-card.u-card { border-top-color: var(--verde-udire-hover); }
.gusto-card.s-card { border-top-color: var(--giallo-sperim-hover); }
.gusto-card.t-card { border-top-color: var(--viola-tempo-hover); }
.gusto-card.o-card { border-top-color: var(--azzurro-oss-hover); }

.gusto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gusto-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.gusto-card-icon {
    font-size: 2.5rem;
    margin-right: 15px;
}

.gusto-card-title {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    color: var(--marrone-terra);
    margin: 0;
}

.gusto-card-letter {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    font-weight: 900;
    margin-right: 10px;
}

.g-card .gusto-card-letter { color: var(--rosa-guida-text); }
.u-card .gusto-card-letter { color: var(--verde-udire-text); }
.s-card .gusto-card-letter { color: var(--giallo-sperim-text); }
.t-card .gusto-card-letter { color: var(--viola-tempo-text); }
.o-card .gusto-card-letter { color: var(--azzurro-oss-text); }

/* Progress Tracker */
.progress-tracker {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    gap: 10px;
}

.progress-item {
    text-align: center;
    flex: 1;
}

.progress-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.progress-circle.completed {
    background: var(--oro-miele);
    color: white;
}

.progress-circle.pending {
    background: var(--iuta-chiaro);
    color: var(--marrone-chiaro);
}

.progress-circle:hover {
    transform: scale(1.1);
}

.progress-label {
    font-size: 0.75rem;
    color: var(--marrone-medio);
    font-weight: 600;
    text-transform: uppercase;
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-gusto {
    background: var(--bg-sito-chiaro);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.form-gusto label {
    font-weight: 600;
    color: var(--marrone-terra);
    margin-bottom: 8px;
    display: block;
}

.form-gusto input,
.form-gusto textarea,
.form-gusto select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--iuta-scuro);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-gusto input:focus,
.form-gusto textarea:focus,
.form-gusto select:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(193, 117, 87, 0.1);
}

.form-gusto textarea {
    min-height: 120px;
    resize: vertical;
}

/* Emoji Selector */
.emoji-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.emoji-btn {
    font-size: 3rem;
    background: none;
    border: 3px solid transparent;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.emoji-btn:hover {
    transform: scale(1.2);
    border-color: var(--oro-miele);
}

.emoji-btn.selected {
    border-color: var(--terracotta);
    background: var(--iuta-chiaro);
}

/* ============================================
   UTILITIES
   ============================================ */

.text-terracotta { color: var(--terracotta); }
.text-oro { color: var(--oro-miele); }
.text-marrone { color: var(--marrone-terra); }

.bg-rosa-guida { background: var(--rosa-guida); }
.bg-verde-udire { background: var(--verde-udire); }
.bg-giallo-sperim { background: var(--giallo-sperim); }
.bg-viola-tempo { background: var(--viola-tempo); }
.bg-azzurro-oss { background: var(--azzurro-oss); }

.font-satisfy { font-family: 'Satisfy', cursive; }
.font-merriweather { font-family: 'Merriweather', serif; }

/* ============================================
   ANIMAZIONI
   ============================================ */

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-right {
    animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   TIMER 5 SECONDI
   ============================================ */

.timer-5-container {
    text-align: center;
    padding: 40px;
}

.timer-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--terracotta), var(--oro-miele));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 900;
    color: white;
    box-shadow: 0 20px 60px rgba(193, 117, 87, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.timer-circle:hover {
    transform: scale(1.05);
}

.timer-circle.counting {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
