/* CITY GUIDE PAGE - Stili specifici */

/* Fix scroll offset for navbar */
section[id],
.article-item[data-article-id] {
    scroll-margin-top: 80px;
}

/* Hero ridotto per pagina guida città */
.hero-small {
    min-height: 35vh; /* Ridotto da 60vh */
    padding: 80px 0 40px; /* Ridotto padding */
}

.hero-small .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-small .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* City Guide Section */
.city-guide-section {
    padding: 60px 0;
    background: #f8f9fa;
}

/* Tabs */
.city-guide-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
}

.tab-button {
    flex: 1;
    padding: 15px 30px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button:hover {
    color: #2c5f7c;
    background: rgba(44, 95, 124, 0.05);
}

.tab-button.active {
    color: #2c5f7c;
    border-bottom-color: #2c5f7c;
    background: white;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Articles Container */
.articles-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Empty Content */
.empty-content,
.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1rem;
    font-style: italic;
}

/* Article Item */
.article-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s;
}

.article-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Article Header (clickable) */
.article-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: white;
    transition: background 0.2s;
}

.article-header:hover {
    background: #f8f9fa;
}

.article-item.expanded .article-header {
    background: #f0f4f7;
}

/* Article Title & Date container */
.article-header > div {
    flex: 1;
}

.article-header h3 {
    margin: 0 0 5px 0;
    color: #2c5f7c;
    font-size: 1.3rem;
}

/* Article Date */
.article-date {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

/* Article Toggle Arrow */
.article-toggle {
    color: #2c5f7c;
    font-size: 1.2rem;
    transition: transform 0.3s;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.article-item.expanded .article-toggle {
    transform: rotate(180deg);
}

/* Article Content - CONTIENE sia preview che full */
.article-content {
    overflow: hidden;
}

/* Article Preview (sempre visibile) */
.article-preview {
    padding: 0 25px 20px;
    color: #555;
    line-height: 1.6;
}

/* Article Full (nascosto, si espande con click) */
.article-full {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.article-item.expanded .article-full {
    max-height: 10000px; /* Valore alto per contenuti lunghi */
    transition: max-height 0.8s ease-in;
}

.article-full > * {
    padding: 0 25px 25px;
    border-top: 1px solid #e0e0e0;
}

/* Stili per contenuto articolo */
.article-full p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 15px;
}

.article-full h4 {
    color: #2c5f7c;
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

.article-full ul,
.article-full ol {
    margin: 15px 0;
    padding-left: 25px;
    color: #333;
}

.article-full li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-full img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Booking Button dentro articoli */
.booking-button {
    display: inline-block;
    margin: 20px 0;
    padding: 12px 24px;
    background: #2c5f7c;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s;
}

.booking-button:hover {
    background: #1f4456;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-small {
        min-height: 30vh;
        padding: 70px 0 30px;
    }
    
    .hero-small .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-small .subtitle {
        font-size: 1rem;
    }
    
    .city-guide-section {
        padding: 40px 0;
    }
    
    .tab-button {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .article-header h3 {
        font-size: 1.1rem;
    }
    
    .article-header,
    .article-preview,
    .article-full > * {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-small {
        min-height: 25vh;
        padding: 60px 0 25px;
    }
    
    .hero-small .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .tab-button {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
    
    .article-header h3 {
        font-size: 1rem;
    }
}
