/* Landing Fiera Ferroviaria CSS */

/* CSS Variables - Main Colors */
:root {
    --primary-color: #FFEB00;
    --secondary-color: #1c1c1c;
    --accent-color: #333;
    --text-primary: #1c1c1c;
    --text-secondary: #666;
    --text-light: #444;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --border-color: #ddd;
    --border-dark: #444;
    --shadow-light: rgba(0,0,0,0.1);
    --shadow-medium: rgba(0,0,0,0.3);
    --shadow-heavy: rgba(0,0,0,0.5);
    --overlay-light: rgba(255,255,255,0.1);
    --success-color: #28a745;
    --danger-color: #dc3545;
}

h2 {
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    color: white;
    padding: 35px 0;
    position: relative;
    overflow: hidden;
    background-image: url(/images/fiere/fiera-ferroviaria.webp);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 474px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    /* max-width: 600px; */
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.1;
    color: var(--primary-color);
    text-shadow: 
        2px 2px 8px rgba(0, 30, 60, 0.9), 
        0px 0px 4px rgba(0, 0, 0, 0.8),
        0px 0px 2px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0 0 30px 0;
    color: white;
    text-shadow: 
        2px 2px 8px rgba(0, 30, 60, 0.95), 
        0px 0px 6px rgba(0, 0, 0, 0.8),
        0px 0px 2px rgba(0, 0, 0, 0.9);
}

.hero-date {
    font-size: 1.5rem;
    margin: 0 0 20px 0;
    color: var(--primary-color);
    font-weight: bold;
    text-shadow: 
        2px 2px 8px rgba(0, 30, 60, 0.9), 
        0px 0px 4px rgba(0, 0, 0, 0.8),
        0px 0px 2px rgba(0, 0, 0, 0.9);
}

.hero-date-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0 0 20px 0;
    color: white;
    text-shadow: 
        2px 2px 8px rgba(0, 30, 60, 0.95), 
        0px 0px 6px rgba(0, 0, 0, 0.8),
        0px 0px 2px rgba(0, 0, 0, 0.9);
}

.hero-date-subtitle strong {
    font-weight: bold;
}

.hero-cta {
    margin-top: 40px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px var(--shadow-medium);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: all 0.4s ease;
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), #333, var(--secondary-color));
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: var(--primary-color);
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 235, 0, 0.4);
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:active {
    transform: scale(1.02) translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 235, 0, 0.3) !important;
    
    color: var(--primary-color) !important;
    border-color: var(--secondary-color) !important;
    background-color: var(--secondary-color) !important;
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    display: inline-block;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), #fff700, var(--primary-color));
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover {
    color: var(--secondary-color);
    border-color: var(--primary-color);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 235, 0, 0.4);
    background-color: var(--primary-color);
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-secondary:active {
    transform: scale(1.02) translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 235, 0, 0.3);

    color: var(--secondary-color) !important;
    border-color: var(--primary-color) !important;
    background-color: var(--primary-color) !important;
}

/* Info Section */
.info-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--background-light) 0%, #f0f4f8 50%, var(--background-light) 100%);
    position: relative;
    overflow: hidden;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFEB00' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    z-index: 0;
}

.info-section .container-landing {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    color: var(--text-primary);
    padding: 0;
    position: relative;
    text-align: left;
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin: 20px 0 50px 0;
    font-weight: 300;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
    perspective: 1000px;
}

.info-item {
    text-align: center;
    padding: 35px 35px;
    background: var(--background-white);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 235, 0, 0.1);
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #fff700, var(--primary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.info-item:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border-color: rgba(255, 235, 0, 0.3);
}

.info-item:hover::before {
    transform: scaleX(1);
}

.info-label {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--background-white);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    padding: 12px 20px;
    border-radius: 25px;
    display: inline-block;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.info-item:hover .info-label {
    background: linear-gradient(135deg, var(--primary-color), #fff700);
    color: var(--secondary-color);
    transform: scale(1.05);
}

.info-value {
    font-size: 1.2rem;
    color: var(--accent-color);
    line-height: 1.8;
    font-weight: 500;
    margin-top: 15px;
}

.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.highlight-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--background-white);
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 235, 0, 0.1);
}

.highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 235, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.highlight-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 235, 0, 0.2);
    border-color: rgba(255, 235, 0, 0.3);
}

.highlight-item:hover::before {
    left: 100%;
}

.highlight-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
}

.highlight-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.highlight-item:hover .highlight-title::after {
    width: 50px;
}

.highlight-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 10px;
}

.cta-section {
    text-align: center;
    margin-top: 60px;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 235, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* Theme Section */
.theme-section {
    padding: 70px 0;
    background: var(--background-white);
}

.theme-content {
    max-width: 850px;
    margin: 0 auto;
}

.theme-intro {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 35px;
    line-height: 1.6;
}

.theme-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
    padding-left: 20px;
    border-left: 3px solid var(--primary-color);
    white-space: normal;
}

.theme-highlight {
    background: linear-gradient(135deg, var(--primary-color), #fff700);
    color: var(--secondary-color);
    padding: 25px 30px;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 6px 20px rgba(255, 235, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: max-content;
    margin: 45px auto auto auto;
    display: block;
}

.theme-highlight:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 235, 0, 0.35);
}

/* Speakers Section */
.speakers-section {
    padding: 80px 0;
    background: var(--background-light);
}

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

.speaker-card {
    background: var(--background-white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: transform 0.3s ease;
}

.speaker-card:hover {
    transform: translateY(-10px);
}

.speaker-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
}

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

.speaker-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0 0 10px 0;
}

.speaker-role {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* About Section */
.about-section {
    padding: 10px 0 70px 0;
    background: var(--background-white);
    position: relative;
}

.about-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 0;
}

.about-content .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.2;
    text-align: left;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
    text-align: left;
    margin: 0;
}

.about-text ul {
    margin: 30px 0;
    padding-left: 0;
    list-style: none;
    background: var(--background-light);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all .3s;
}

.about-text ul:hover {
    border-left: 6px solid var(--primary-color);
}

.about-text li {
    position: relative;
    padding: 8px 0 8px 25px;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.about-text li:before {
    content: "→";
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.about-text li:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
}

.about-text li:hover:before {
    color: var(--primary-color);
    transform: scale(1.3);
}

/* Registration Section */
.registration-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: white;
}

.registration-description {
    color: white;
}

.registration-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-top: 40px;
}

.registration-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.event-details {
    margin-bottom: 40px;
}

.detail-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
}

.detail-item:last-child {
    border-bottom: none;
}

.pricing h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.price-value {
    color: var(--primary-color);
    font-weight: bold;
}

/* Form Styles */
.contact-form {
    background: var(--overlay-light);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    background: var(--background-white);
    color: var(--accent-color);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 235, 0, 0.3);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.checkbox-group label {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.checkbox-group a {
    color: var(--primary-color);
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background: var(--background-light);
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 30px 0 40px 0;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
}

.contact-link i {
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--background-white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (min-width: 769px) and (max-width: 1145px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .highlights {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .speakers-grid {
        grid-template-columns: 1fr;
    }
    
    .registration-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .theme-intro {
        font-size: 1.25rem;
    }
    
    .theme-description {
        font-size: 1.1rem;
        padding-left: 15px;
    }
    
    .theme-highlight {
        padding: 20px 25px;
        font-size: 1.2rem;
    }

    .about-section {
        padding: 60px 0;
    }
    
    .about-content .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .about-text {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    .about-text ul {
        padding: 25px 20px;
        margin: 25px 0;
    }
    
    .about-text li {
        padding-left: 20px;
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .info-section,
    .theme-section,
    .speakers-section,
    .about-section,
    .registration-section {
        padding: 50px 0;
    }

    .hero-section {
        height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .theme-intro {
        font-size: 1.2rem;
    }
    
    .theme-description {
        font-size: 1rem;
        padding-left: 12px;
    }
    
    .theme-highlight {
        padding: 18px 20px;
        font-size: 1.1rem;
    }
    
    .about-content .section-title {
        font-size: 1.8rem;
    }
    
    .about-text {
        font-size: 1rem;
    }
    
    .about-text ul {
        padding: 20px 15px;
    }
    
    .about-text li {
        padding-left: 18px;
        font-size: 1rem;
    }
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 235, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 235, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 235, 0, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.hero-text,
.hero-image {
    animation: fadeInUp 0.8s ease-out;
}

.info-item,
.highlight-item,
.speaker-card {
    animation: fadeInUp 0.6s ease-out;
}

.btn-primary:focus,
.btn-secondary:focus {
    animation: pulse 2s infinite;
    outline: none;
}

.btn-shimmer {
    background: linear-gradient(
        90deg,
        var(--primary-color) 0%,
        #fff700 50%,
        var(--primary-color) 100%
    );
    background-size: 400% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* Utility Classes */
.container-landing {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.invalid-feedback {
    top: 50px;
    left: 2px;
}

.checkbox-group .invalid-feedback {
    top: 20px;
}

.error-placeholder {
    position: relative;
    padding-bottom: 10px;
}

.yellow-background.margin-top {
    margin-top: 0;
}