/* ============================================
   poroCity — Homepage
   ============================================ */

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    position: relative;
    background: url('../img/hero-cover.jpg') center center / cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.40);
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: clamp(3.5rem, 16vw, 13rem);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.03em;
    line-height: 1;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero__title-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero__by {
    font-weight: 400;
    font-size: clamp(1.2rem, 4.5vw, 3rem);
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.05em;
    line-height: 1;
    margin-top: 0.9em;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.hero__by:hover {
    color: var(--color-accent);
}

.hero__subtitle {
    font-weight: 400;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    margin-top: var(--space-md);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero__scroll {
    position: fixed;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.9;
    animation: hero-bounce 2s ease infinite;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 5;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero__scroll.is-hidden {
    opacity: 0;
}

.hero__scroll-arrow {
    width: 2px;
    height: 32px;
    background: #fff;
    border-radius: 2px;
}

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

/* ---- Hero play button ---- */
.hero__play {
    position: relative;
    z-index: 1;
    margin-top: var(--space-md);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 100px;
    padding: 12px 24px 12px 18px;
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: var(--font-weight-bold);
    font-size: 0.85rem;
    color: var(--color-text);
    letter-spacing: 0.02em;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.hero__play:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
}

.hero__play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    padding-left: 2px; /* ottico per centrare il triangolo */
    flex-shrink: 0;
}

/* ---- Video lightbox ---- */
.video-lightbox {
    border: none;
    background: transparent;
    padding: 0;
    width: min(900px, 90vw);
    max-width: 90vw;
    max-height: 90vh;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.video-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.88);
}

.video-lightbox__close {
    position: fixed;
    top: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10;
}

.video-lightbox__close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.video-lightbox__video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border-radius: var(--radius-sm);
    background: #000;
}

/* ---- Intro ---- */
.intro {
    text-align: center;
}

.intro p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    color: var(--color-text);
    margin: 0 auto;
    max-width: var(--content-narrow);
}

/* ---- Theme Cards ---- */
.theme-cards {
    margin-top: var(--space-lg);
}

.theme-cards .card__number {
    font-family: var(--font-family);
    font-weight: var(--font-weight-bold);
    font-size: 2.4rem;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

/* Card con immagine */
.theme-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.theme-card__img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.theme-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.theme-card:hover .theme-card__img img {
    transform: scale(1.05);
}

.theme-card__body {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.theme-card__body .card__number {
    margin-bottom: 0;
}

.theme-card__body .card__title {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .theme-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .theme-cards {
        grid-template-columns: 1fr !important;
    }
}

/* ---- Event CTA banner ---- */
.home-event-cta {
    background: var(--color-ivory);
}

.home-event-cta__date {
    font-weight: var(--font-weight-bold);
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--color-accent);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.home-event-cta__location {
    margin-top: var(--space-xs);
    font-weight: var(--font-weight-light);
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    color: var(--color-text);
}

.home-event-cta__location strong {
    font-weight: var(--font-weight-bold);
}

.home-event-cta__location a {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.home-event-cta__location a:hover {
    color: var(--color-accent);
}

.home-event-cta__actions {
    margin-top: var(--space-md);
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Carousel ---- */
.carousel {
    overflow: hidden;
    padding: var(--space-lg) 0;
}

.carousel__track {
    display: flex;
    gap: 16px;
    animation: carousel-scroll 44s linear infinite;
    width: max-content;
    will-change: transform;
}

.carousel__track:hover {
    animation-play-state: paused;
}

.carousel__track img {
    height: 320px;
    width: auto;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

@keyframes carousel-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Mobile: swipe nativo con scroll-snap, niente animazione */
@media (max-width: 600px) {
    .carousel {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: var(--space-md) 0;
    }

    .carousel::-webkit-scrollbar {
        display: none;
    }

    .carousel__track {
        animation: none;
        width: max-content;
        padding: 0 var(--space-md);
    }

    .carousel__track img {
        height: 240px;
        scroll-snap-align: center;
    }
}

/* ---- CTA Section ---- */
.cta-section {
    text-align: center;
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}
