/*
Theme Name: Villa Maila Theme
Description: Tema custom per B&B Villa Maila con supporto multilingua
Version: 1.0.0
Author: Marco Vistanet
Text Domain: villamaila-theme
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-gold: #cca558;
    --primary-orange: #FF6B35;
    --text-white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-dark: #1d1d1b;
    --bg-white: #FFFFFF;
    --bg-light: #f9f9f9;
    --transition: all 0.3s ease;
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

/* Container principale */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header e Navbar */
.site-header {
    background: #1D1D1B;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(29, 29, 27, 0.3);
    transition: transform 0.3s ease;
    transform: translateY(0);
}

.site-header.hidden {
    transform: translateY(-100%);
}

/* Logo Image Styles */
.logo-image {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
}

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

/* Logo responsive */
@media (max-width: 768px) {
    .logo-image {
        height: 50px;
        max-width: 150px;
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo .logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gold);
    line-height: 1;
}

.logo-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--primary-gold);
    letter-spacing: 2px;
    margin-top: -2px;
}

/* Menu di navigazione */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: #cca558;
}

.nav-link.active {
    color: #cca558;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 20px;
}

.language-btn {
    background: transparent;
    border: 1px solid #cca558;
    color: #cca558;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-btn:hover {
    background: #cca558;
    color: #1d1d1b;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #cca558;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

/* Show dropdown on hover OR when .show class is added */
.language-switcher:hover .language-dropdown,
.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-item {
    display: block;
    padding: 10px 15px;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.3s ease;
}

.language-item:hover {
    background: #cca558;
    color: #1d1d1b;
}

.language-item.active {
    background: #cca558;
    color: #1d1d1b;
}

/* Book Now Button */
.book-now-btn {
    background: transparent;
    border: 1px solid #cca558;
    color: #ffffff;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.book-now-btn:hover {
    background: #cca558;
    color: #1d1d1b;
}

/* Main Content */
.site-main {
    padding-top: 0; /* Rimuove spazio bianco per hero fullscreen */
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.6) 100%);
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--text-white);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-btn {
    display: inline-block;
    background: white;
    color: #cca558;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 1px solid #cca558;
}

.hero-btn:hover {
    background: #cca558;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(204, 165, 88, 0.3);
}

/* Welcome Section */
.welcome-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.welcome-content {
    max-width: 100%;
}

.welcome-intro {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.welcome-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
}

.welcome-slogan {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 700;
}

.welcome-description p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 2.5rem;
}

.welcome-images {
    position: relative;
}

.images-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}

.image-block {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.image-block-top {
    align-items: flex-start;
    justify-content: flex-start;
}

.image-block-bottom {
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 60px;
}

.welcome-image {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


.resort-image {
    width: 100%;
    height: auto;
}

.interaction-image {
    width: 100%;
    height: auto;
}

/* Sezioni */
.section {
    padding: 80px 0;
}

/* Services Section */
.services-section {
    background: #ffffff;
    padding: 80px 0;
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-subtitle {
    font-size: 0.9rem;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 500;
}

.services-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-content {
    margin-bottom: 20px;
}

.service-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-description {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.service-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-icon {
    opacity: 1;
}

/* Mobile Styles for Services */
@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .services-title {
        font-size: 2rem;
    }
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #1d1d1b;
    font-family: 'Playfair Display', serif;
}

/* Footer */
.site-footer {
    background: #1d1d1b;
    color: #ffffff;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    text-align: left;
}

.footer-section h3,
.footer-section h4 {
    color: #cca558;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 8px;
    color: #ffffff;
    line-height: 1.6;
}

.footer-legal-info {
    margin-top: 15px;
    opacity: 0.8;
}

.footer-legal-info small {
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-links a:link,
.footer-links a:visited,
.footer-links a:active {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #cca558 !important;
    text-decoration: underline;
}

.footer-languages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-lang-link {
    color: #ffffff;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.footer-lang-link:hover {
    color: #cca558;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #ffffff;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-languages {
        align-items: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .main-navigation {
        display: none; /* Menu mobile da implementare */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .welcome-content {
        order: 1;
    }
    
    .welcome-images {
        order: 2;
    }
    
    .images-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .image-block {
        width: 100%;
        max-width: 400px;
        display: flex;
        justify-content: center;
    }
    
    .image-block-bottom {
        padding-top: 0;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .welcome-slogan {
        font-size: 1rem;
    }
    
    .welcome-intro {
        font-size: 0.75rem;
    }
    
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .main-navigation {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .welcome-section {
        padding: 60px 0;
    }
    
    .welcome-title {
        font-size: 1.3rem;
        line-height: 1.4;
    }
    
    .welcome-slogan {
        font-size: 0.95rem;
    }
    
    .welcome-intro {
        font-size: 0.7rem;
    }
}
