/**
 * LiveGrado Theme - Main Styles
 * 
 * Stili specifici per header, footer, single hotel e homepage
 * Compatibile con shortcodes plugin (usa prefisso .lg-* per evitare conflitti)
 */

/* ============================================
   HEADER
   ============================================ */

.site-header {
    background: var(--bianco);
    border-bottom: 1px solid var(--grigio-chiaro);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.site-branding {
    flex-shrink: 0;
}

.site-logo-text {
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-live {
    color: var(--nero);
}

.logo-grado {
    color: var(--rosso-livegrado);
}

.custom-logo-link img {
    max-height: 50px;
    width: auto;
}

/* Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.primary-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.primary-menu-list li a {
    font-weight: 600;
    font-size: 15px;
    color: var(--nero);
    text-decoration: none;
    transition: color 0.3s;
    padding: 8px 0;
    display: block;
}

.primary-menu-list li a:hover,
.primary-menu-list li.current-menu-item a {
    color: var(--blu-livegrado);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 2px solid var(--grigio-chiaro);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.lang-button:hover {
    border-color: var(--blu-livegrado);
}

.flag-icon {
    font-size: 18px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 2px solid var(--grigio-chiaro);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    min-width: 120px;
}

.language-selector:hover .lang-dropdown {
    display: block;
}

.lang-option {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--nero);
    font-weight: 600;
    transition: background 0.2s;
}

.lang-option:hover {
    background: #f3f4f6;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .primary-menu-list {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .primary-menu-list.is-active {
        display: flex;
    }
    
    .primary-menu-list li {
        width: 100%;
        border-bottom: 1px solid var(--grigio-chiaro);
    }
    
    .primary-menu-list li:last-child {
        border-bottom: none;
    }
    
    .primary-menu-list li a {
        padding: 15px 0;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: #1f2937;
    color: white;
    margin-top: 60px;
}

.footer-widgets {
    padding: 60px 0 40px;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-widget-column {
    color: rgba(255,255,255,0.9);
}

.footer-widget-column .widget-title {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-widget-column a {
    color: rgba(255,255,255,0.8);
}

.footer-widget-column a:hover {
    color: white;
}

.site-info {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 30px 0;
}

.site-info-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright p {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.footer-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.footer-menu li a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.footer-menu li a:hover {
    color: white;
}

@media (max-width: 768px) {
    .footer-widgets-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .site-info-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================
   SINGLE HOTEL
   ============================================ */

.hotel-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.hotel-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotel-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 40px 0 30px;
}

.hotel-hero .hotel-title {
    color: white;
    margin: 0;
    font-size: 2.5rem;
}

.hotel-hero .hotel-stars {
    font-size: 20px;
    margin-top: 10px;
}

.hotel-hero-simple {
    background: linear-gradient(135deg, var(--blu-livegrado), #003366);
    color: white;
    padding: 60px 0 40px;
}

.hotel-hero-simple .hotel-title {
    color: white;
    margin: 0;
}

.hotel-hero-simple .hotel-stars {
    font-size: 20px;
    margin-top: 10px;
}

.hotel-content-wrapper {
    padding: 60px 0;
}

.hotel-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.hotel-main-content {
    min-width: 0;
}

.hotel-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hotel-section .section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--nero);
}

.hotel-description-content {
    line-height: 1.8;
    color: var(--grigio);
}

/* Rooms Grid */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.room-card {
    background: #f9fafb;
    border: 2px solid var(--grigio-chiaro);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: var(--blu-livegrado);
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.room-type {
    font-size: 18px;
    font-weight: 700;
    color: var(--nero);
    margin: 0;
}

.room-number {
    font-size: 12px;
    font-weight: 600;
    color: var(--grigio);
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
}

.room-description {
    font-size: 14px;
    color: var(--grigio);
    line-height: 1.6;
    margin-bottom: 12px;
}

.room-guests {
    font-size: 14px;
    font-weight: 600;
    color: var(--blu-livegrado);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Hotel Sidebar */
.hotel-sidebar {
    position: sticky;
    top: 100px;
}

.hotel-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--nero);
}

.contact-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--grigio-chiaro);
}

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

.contact-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.contact-content strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--grigio);
    margin-bottom: 5px;
}

.contact-content p {
    margin: 0;
    font-weight: 600;
}

.contact-content a {
    color: var(--blu-livegrado);
    text-decoration: none;
}

.contact-content a:hover {
    text-decoration: underline;
}

.contact-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--grigio-chiaro);
}

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

.info-label {
    font-weight: 600;
    color: var(--grigio);
}

.info-value {
    font-weight: 700;
    color: var(--nero);
}

.info-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.info-badge-success {
    background: #d1fae5;
    color: #065f46;
}

.hotel-map {
    height: 300px;
    background: #f3f4f6;
    border-radius: 8px;
    margin-bottom: 15px;
}

@media (max-width: 1024px) {
    .hotel-grid {
        grid-template-columns: 1fr;
    }
    
    .hotel-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .hotel-hero {
        height: 300px;
    }
    
    .hotel-hero .hotel-title {
        font-size: 2rem;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   HOMEPAGE
   ============================================ */

.homepage-hero {
    background: linear-gradient(135deg, var(--blu-livegrado), #003366);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.hero-content {
    margin-bottom: 40px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 16px;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.homepage-eventi {
    background: #f9fafb;
    padding: 30px 0;
    text-align: center;
}

.btn-eventi {
    font-size: 20px;
    padding: 18px 40px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--grigio);
    margin-bottom: 40px;
}

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

.why-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.why-item:hover {
    transform: translateY(-8px);
}

.why-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.why-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.why-item p {
    color: var(--grigio);
    margin: 0;
}

.homepage-cta {
    background: linear-gradient(135deg, var(--rosso-livegrado), #CC0007);
    color: white;
}

.cta-box {
    text-align: center;
    padding: 40px 20px;
}

.cta-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 30px;
}

.cta-box .btn-livegrado {
    font-size: 18px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
}
