/* ===================================
   SOTTOSOPRA NEXT - HOMEPAGE STYLES
   =================================== */

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4F46E5;
    --primary-dark: #3730A3;
    --secondary: #10B981;
    --accent: #F59E0B;
    --dark: #1F2937;
    --gray: #6B7280;
    --light-gray: #F3F4F6;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

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

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 30px;
}

.logos {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.logo-partner {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

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

.header-title {
    flex: 0 0 auto;
}

.logo-text {
    height: 70px;
    width: auto;
}

.nav {
    display: flex;
    gap: 32px;
    flex-shrink: 0;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: all 0.3s;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(31, 41, 55, 0.85) 0%, 
        rgba(79, 70, 229, 0.7) 50%,
        rgba(31, 41, 55, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-tagline {
    font-size: 1.3rem;
    font-weight: 500;
    color: #F59E0B;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 50px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    color: var(--white);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--white);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--white);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--white);
}

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

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* SECTIONS */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
}

/* ABOUT SECTION */
.about {
    background: var(--white);
    position: relative;
}

.about-image-bg {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    height: 80%;
    background-size: cover;
    background-position: center;
    border-radius: 20px 0 0 20px;
    opacity: 0.15;
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text .lead {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.about-text p {
    margin-bottom: 16px;
    color: var(--gray);
    line-height: 1.8;
}

.about-features {
    display: grid;
    gap: 24px;
}

.feature-card {
    background: var(--light-gray);
    padding: 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* COMUNI SECTION */
.comuni {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
}

.map-container {
    margin-bottom: 60px;
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.map-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    align-items: start;
}

.map-embed {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-embed iframe {
    display: block;
    width: 100%;
    min-height: 500px;
}

.map-info {
    padding: 20px;
}

.map-legend {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 12px;
}

.map-legend h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--gray);
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--white);
}

.legend-dot.active {
    background: var(--secondary);
}

.legend-dot.coming {
    background: var(--gray);
}

.comuni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.comune-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.comune-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.comune-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.comune-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.comune-card:hover .comune-image img {
    transform: scale(1.1);
}

.comune-image.placeholder {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 5rem;
    opacity: 0.5;
}

.comune-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.badge-active {
    background: rgba(16, 185, 129, 0.9);
    color: var(--white);
}

.badge-coming {
    background: rgba(107, 114, 128, 0.9);
    color: var(--white);
}

.comune-content {
    padding: 32px;
}

.comune-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.comune-description {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 24px;
}

.comune-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
}

.stat {
    flex: 1;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 4px;
}

/* VALUES SECTION */
.values {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}

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

.value-card {
    text-align: center;
    padding: 40px 32px;
    background: var(--light-gray);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.value-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.value-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.value-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.value-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* RASSEGNA STAMPA SECTION */
.rassegna {
    background: var(--white);
    padding: 100px 0;
}

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

.rassegna-card {
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.rassegna-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.rassegna-type {
    margin-bottom: 16px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-articolo {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge-video {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-materiale {
    background: #D1FAE5;
    color: #065F46;
}

.badge-universita {
    background: #E0E7FF;
    color: #3730A3;
}

.rassegna-source {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.rassegna-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.rassegna-excerpt {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.rassegna-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

.rassegna-date {
    font-size: 0.9rem;
    color: var(--gray);
}

.rassegna-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

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

.rassegna-placeholder {
    border: 2px dashed #D1D5DB;
    background: var(--light-gray);
}

.rassegna-placeholder:hover {
    transform: none;
    box-shadow: none;
    border-color: #D1D5DB;
}

.placeholder-content {
    text-align: center;
    padding: 20px;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.rassegna-placeholder h3 {
    color: var(--gray);
    font-size: 1.1rem;
}

.rassegna-placeholder p {
    color: var(--gray);
    font-size: 0.9rem;
}

.rassegna-cta {
    text-align: center;
    padding: 40px;
    background: var(--light-gray);
    border-radius: 12px;
}

.rassegna-cta p {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 20px;
    font-weight: 500;
}

/* FOOTER */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 16px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-section h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s;
}

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

.partner-logo {
    height: 50px;
    width: auto;
    margin-bottom: 12px;
}

.partner-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 12px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--white);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .header-title {
        order: -1;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .logo-text {
        height: 30px;
    }
    
    .nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .map-wrapper {
        flex-direction: column;
    }
    
    .comuni-grid {
        grid-template-columns: 1fr;
    }
    
    .map-wrapper {
        grid-template-columns: 1fr;
    }
    
    .map-embed iframe {
        min-height: 400px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logos {
        flex-direction: column;
        gap: 8px;
    }
    
    .logo-main {
        height: 50px;
    }
    
    .logo-partner {
        height: 35px;
    }
    
    .separator {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
    
    .btn {
        width: 100%;
    }
}
