/* landing.css - Stili specifici per la Splash/Landing Page */

.landing-content {
    /* No padding, let elements control their space */
    padding: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto; /* Center horizontally */
}

/* 1. Hero Section */
.landing-brand-container {
    display: flex;
    flex-direction: row; /* Heart on the left, text on the right */
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 0; /* Removed bottom margin to reduce spacing */
}

.landing-brand-heart img {
    height: 80px; /* Slightly enlarged the heart */
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(236, 72, 153, 0.4));
}

.landing-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Align logo and ITALIA to the left */
    flex: 0 1 auto; /* Overrides the flex: 1 from common.css sidebar layout causing the left bias */
}

.landing-brand-logo {
    height: 44px; /* Slightly enlarged the text logo */
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.landing-brand-city {
    color: #94a3b8;
    font-size: 1.25rem; /* Enlarged ITALIA */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1;
    margin-top: 6px; /* Spacing below the logo */
}

.landing-logo-block {
    padding-top: 1rem; /* Removed bottom padding */
    text-align: center;
}

.landing-hero {
    text-align: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(0, 0, 0, 0.4));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.landing-title {
    font-size: 1.25rem; /* Reduced size compared to logo as requested */
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 3px; /* Slightly wider tracking for a more premium look */
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    text-transform: uppercase;
}

.landing-categories {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.landing-cat {
    color: var(--accent-pink);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.landing-cat:hover {
    color: #fff;
    background-color: var(--accent-pink);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.4);
}

.sep {
    color: rgba(255, 255, 255, 0.2);
}

/* 2. Top Cities Grid */
.landing-cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.landing-city-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.city-photo-link {
    position: relative;
    display: block;
    height: 140px;
    overflow: hidden;
    text-decoration: none;
}

.city-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.city-photo-link:hover .city-photo {
    transform: scale(1.08);
}

.city-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0.75rem 0.5rem 0.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.city-cats-links {
    padding: 0.75rem;
    text-align: center;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.city-cats-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.city-cats-links a:hover {
    color: var(--accent-pink);
}

/* Responsive top grid */
@media (max-width: 1024px) {
    .landing-cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .landing-cities-grid {
        grid-template-columns: 1fr;
    }
    .city-photo-link {
        height: 180px;
    }
}

/* 3. Directory Section */
.landing-directory-container {
    padding: 2rem;
}

.directory-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.directory-col-layout {
    column-count: 4;
    column-gap: 2rem;
}

/* Prevent blocks from splitting across columns */
.directory-region-block {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 2rem;
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.03);
}

.reg-name {
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.directory-prov-item {
    margin-bottom: 0.75rem;
    text-align: center;
}

/* Remove margin from last item to keep boxes tidy */
.directory-prov-item:last-child {
    margin-bottom: 0;
}

.prov-name {
    display: block;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
    margin-bottom: 0.2rem;
}

.prov-name:hover {
    color: var(--accent-pink);
}

.prov-cats-links {
    font-size: 0.7rem;
    display: flex;
    justify-content: center;
    gap: 0.3rem;
}

.prov-cats-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.prov-cats-links a:hover {
    color: var(--accent-pink);
}

/* Directory Responsive */
@media (max-width: 1200px) {
    .directory-col-layout {
        column-count: 3;
    }
}
@media (max-width: 900px) {
    .directory-col-layout {
        column-count: 2;
    }
}
@media (max-width: 600px) {
    .directory-col-layout {
        column-count: 1;
    }
    .landing-hero {
        padding: 1.5rem 0.5rem;
    }
    .landing-title {
        font-size: 1.5rem;
    }
    .landing-directory-container {
        padding: 1rem;
    }
}

/* Ottimizzazioni UI Landing per Mobile */
@media (max-width: 768px) {
    /* Il box intro deve espandersi flush al 100% annullando l'effetto "carta volante" */
    .landing-intro-text {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .landing-intro-text div:first-child {
        border-radius: 0 !important;
    }
    
    /* I restanti blocchi salvaguardano i round-corner distanziandosi dai bordi laterali */
    .landing-banner-wrapper {
        margin-left: 16px !important;
        margin-right: 16px !important;
    }
    .landing-cities-grid {
        padding-left: 16px;
        padding-right: 16px;
    }
}
