/* Landing Page Styles - Complete version */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    scroll-snap-align: start;
    position: relative;
    text-align: center;
}

/* Progress Indicator */
.progress-indicator {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.progress-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Section 1: Hero */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-content {
    max-width: 350px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.2em;
    margin-bottom: 15px;
    opacity: 0.9;
}

.hero .organizer {
    font-size: 1em;
    margin-bottom: 40px;
    opacity: 0.8;
}

.cta-button {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 0.9em;
    animation: bounce 2s infinite;
}

/* Section 2: Date & Location */
.date-location {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #333;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 350px;
    width: 100%;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease;
}

.info-card.animate {
    transform: translateY(0);
    opacity: 1;
}

.info-card .icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.info-card h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.info-card p {
    color: #666;
    line-height: 1.5;
}

/* Section 3: Benefits */
.benefits {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.benefits h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
    font-weight: 700;
}

.benefit-list {
    max-width: 350px;
    width: 100%;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.6s ease;
}

.benefit-item.animate {
    transform: translateX(0);
    opacity: 1;
}

.benefit-icon {
    font-size: 1.5em;
    margin-right: 15px;
    min-width: 40px;
}

.benefit-text {
    font-size: 1.1em;
    text-align: left;
}

/* Section 4: Program */
.program {
    background: #f8f9fa;
    color: #333;
    padding: 40px 20px;
}

.program h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
    color: #667eea;
    font-weight: 700;
}

.timeline {
    max-width: 350px;
    width: 100%;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #667eea;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 60px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s ease;
}

.timeline-item.animate {
    transform: translateY(0);
    opacity: 1;
}

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #667eea;
}

.timeline-time {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.timeline-desc {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Section 5: Speaker */
.speaker {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.speaker-content {
    max-width: 350px;
    width: 100%;
}

.speaker h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
    font-weight: 700;
}

.speaker-card {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.6s ease;
}

.speaker-card.animate {
    transform: scale(1);
    opacity: 1;
}

.speaker-name {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 10px;
}

.speaker-title {
    font-size: 1.1em;
    margin-bottom: 20px;
    opacity: 0.9;
}

.speaker-bio {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 20px;
}

.speaker-quote {
    font-style: italic;
    font-size: 1.1em;
    opacity: 0.9;
    border-left: 3px solid rgba(255,255,255,0.5);
    padding-left: 15px;
}

/* Section 6: Registration */
.registration {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
}

.registration-content {
    max-width: 350px;
    width: 100%;
}

.registration h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.registration .subtitle {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.registration-cta {
    background: white;
    color: #dc3545;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 1s ease-out 0.5s forwards;
}

.registration-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.contact-info {
    margin-top: 30px;
    font-size: 0.9em;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

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

/* Mobile responsiveness */
@media screen and (max-width: 480px) {
    .section {
        padding: 15px;
    }
    
    .hero h1 {
        font-size: 2em;
    }
    
    .hero .subtitle {
        font-size: 1.1em;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .timeline {
        max-width: 280px;
    }
    
    .progress-indicator {
        right: 15px;
    }
    
    .program h2,
    .benefits h2,
    .speaker h2 {
        font-size: 2em;
    }
    
    .registration h2 {
        font-size: 2.2em;
    }
    
    .registration-cta {
        font-size: 1.1em;
        padding: 15px 30px;
    }
}

/* NUOVA SEZIONE: Terms & Conditions */
.terms {
    background: #f8f9fa;
    color: #333;
    padding: 40px 20px;
}

.terms-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.terms h2 {
    font-size: 2.2em;
    margin-bottom: 30px;
    color: #667eea;
    font-weight: 700;
    text-align: center;
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.term-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.term-item.animate {
    transform: translateY(0);
    opacity: 1;
}

.term-item.highlight {
    border: 2px solid #ffc107;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    animation: highlightPulse 2s infinite;
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(255, 193, 7, 0.5);
    }
}

.term-icon {
    font-size: 2em;
    min-width: 50px;
    margin-top: 5px;
}

.term-content h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.term-content p {
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
}

.term-warning {
    color: #856404;
    font-weight: 600;
    font-size: 0.9em;
    background: rgba(255, 193, 7, 0.2);
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 10px;
}

/* AGGIORNAMENTI per la sezione Registration */
.registration .refund-notice {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    backdrop-filter: blur(10px);
    text-align: center;
}

.registration .refund-notice p {
    margin: 5px 0;
    font-size: 0.9em;
}

.registration .refund-notice .warning-text {
    color: #ffc107;
    font-weight: 600;
    font-size: 1em;
}

/* Aggiornamento progress indicator per la nuova sezione */
.progress-indicator {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Ridotto per 7 sezioni */
}

.progress-dot {
    width: 10px; /* Leggermente più piccolo */
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.progress-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Mobile responsiveness per la sezione terms */
@media screen and (max-width: 768px) {
    .terms {
        padding: 30px 15px;
    }
    
    .terms-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .term-item {
        padding: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .term-icon {
        margin-top: 0;
        margin-bottom: 10px;
    }
    
    .registration .refund-notice {
        margin: 20px 0;
        padding: 15px;
    }
    
    .registration .refund-notice p {
        font-size: 0.85em;
    }
    
    .progress-indicator {
        right: 10px;
        gap: 6px;
    }
    
    .progress-dot {
        width: 8px;
        height: 8px;
    }
}

/* Animazioni per la nuova sezione */
.terms-content {
    animation: fadeInUp 0.8s ease-out;
}

.term-item:nth-child(1) {
    animation-delay: 0.2s;
}

.term-item:nth-child(2) {
    animation-delay: 0.4s;
}

.term-item:nth-child(3) {
    animation-delay: 0.6s;
}

.term-item:nth-child(4) {
    animation-delay: 0.8s;
}

/* Stili aggiuntivi per evidenziare la policy rimborsi */
.highlight-refund {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7) !important;
    border: 2px solid #ffc107 !important;
    position: relative;
}

.highlight-refund::before {
    content: "IMPORTANTE";
    position: absolute;
    top: -10px;
    left: 20px;
    background: #ffc107;
    color: #856404;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.email {
    background: #ea4335;
}

.share-btn.sms {
    background: #007aff;
}

/* Hero logo styling */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container img {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
}

/* Mobile responsiveness for logo */
@media screen and (max-width: 480px) {
    .logo-container img {
        max-width: 120px;
    }
}