/* ============================================================
   TAVOLOZZA COLORI E VARIABILI
   ============================================================ */
:root {
    --crema: #FCF9F2;
    --legno: #8B4513;
    --salvia: #8A9A5B;
    --cioccolato: #4A3728;
    --testo-chiaro: #FFFFFF;
    --ombra: rgba(0, 0, 0, 0.1);
    --transition: 0.3s ease;
}

/* ============================================================
   STRUTTURA BASE
   ============================================================ */
html {
    font-size: 16px;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Lora', serif;
    background-color: var(--crema);
    color: var(--cioccolato);
    scroll-behavior: smooth;
    top: 0px !important;
}

/* ============================================================
   NAVIGAZIONE RESPONSIVE (MENU DESKTOP + HAMBURGER MOBILE)
   ============================================================ */
header {
    background: transparent;
    padding: 1.25rem;
    text-align: center;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: all var(--transition);
}

header.internal {
    background: var(--legno);
    position: relative;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    color: var(--crema);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05rem;
    transition: color var(--transition);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover {
    color: var(--salvia);
    border-bottom-color: var(--salvia);
}

/* HAMBURGER MENU ICON (NASCOSTO SU DESKTOP) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.35rem;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 1.75rem;
    height: 0.2rem;
    background-color: var(--cioccolato);
    border-radius: 0.1rem;
    transition: all var(--transition);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* MOBILE MENU (SIDEBAR) */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    /* tema verde militare per il menu mobile */
    background: linear-gradient(180deg, var(--salvia) 0%, #485e28 100%);
    flex-direction: column;
    padding-top: 5rem;
    gap: 1.5rem;
    z-index: 10000;
    pointer-events: auto;
    transition: left var(--transition);
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.5rem;
    margin: 0;
    align-items: center;
}

.mobile-menu ul li a {
    font-size: 40px;
    padding: 1rem;
    display: block;
    /* testo bianco e in grassetto per maggiore contrasto sul verde */
    color: var(--testo-chiaro);
    font-weight: 700;
    background: transparent;
    border-radius: 0.5rem;
    transition: background-color var(--transition), color var(--transition);
}

.mobile-menu ul li a:hover {
    /* hover leggermente chiaro mantenendo testo bianco */
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--testo-chiaro);
}

/* LANGUAGE SWITCH */
.language-switch {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-left: 1.25rem;
}

.lang-label {
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    font-family: sans-serif;
    letter-spacing: 0.05rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 2.75rem;
    height: 1.375rem;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: background-color var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2.125rem;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1rem;
    width: 1rem;
    left: 0.1875rem;
    bottom: 0.125rem;
    background-color: white;
    transition: transform var(--transition);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

input:checked+.slider {
    background-color: rgba(46, 204, 113, 0.6);
}

input:checked+.slider:before {
    transform: translateX(1.375rem);
}

/* GOOGLE TRANSLATE */
.goog-te-menu-frame {
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.2) !important;
    border-radius: 0.5rem !important;
}

.goog-te-gadget-simple {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 0.35rem !important;
    font-family: 'Lora', serif !important;
    cursor: pointer;
    transition: all var(--transition);
    display: flex !important;
    align-items: center;
}

.goog-te-gadget-simple:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
}

.goog-te-gadget-simple img {
    display: none !important;
}

.goog-te-gadget-simple span {
    color: var(--crema) !important;
    font-size: 0.85rem !important;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none !important;
}

.goog-te-banner-frame.skiptranslate,
.goog-te-gadget span {
    display: none !important;
}

#google_translate_element {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* ============================================================
   HOME PAGE - HERO SECTION (RESPONSIVE)
   ============================================================ */
.home-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/catania-bg.webp');
    height: 100vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.hero-text {
    text-align: center;
    color: var(--testo-chiaro);
    max-width: 90%;
    padding: 2rem;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 0.625rem;
    text-shadow: 0.125rem 0.125rem 0.5rem rgba(0, 0, 0, 0.6);
}

.hero-text p {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 300;
    text-shadow: 0.0625rem 0.0625rem 0.25rem rgba(0, 0, 0, 0.6);
}

.btn-hero {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--legno);
    color: white;
    text-decoration: none;
    border-radius: 0.3rem;
    margin-top: 1.5rem;
    font-weight: bold;
    transition: all var(--transition);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.btn-hero:hover {
    background: #A0522D;
    transform: translateY(-0.2rem);
}

/* ============================================================
   SEZIONI CONTENUTO (DESCRIZIONE E SERVIZI)
   ============================================================ */
.full-description {
    padding: clamp(2rem, 10vw, 5rem) 1.25rem;
    background-color: var(--crema);
}

.description-content {
    max-width: 56.25rem;
    margin: 0 auto;
    line-height: 1.8;
}

.features {
    padding: clamp(2rem, 10vw, 5rem) 1.25rem;
    max-width: 75rem;
    margin: 0 auto;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.875rem;
}

.service-item {
    background: white;
    padding: 2.5rem;
    border-radius: 0.9375rem;
    text-align: center;
    box-shadow: 0 0.625rem 1.875rem var(--ombra);
    transition: transform var(--transition), border-color var(--transition);
    border: 1px solid #eee;
}

.service-item:hover {
    transform: translateY(-0.625rem);
    border-color: var(--salvia);
}

.icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1.25rem;
}

.servizi-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    padding: 1.25rem;
}

.card-servizio {
    background: #fff;
    padding: 1.5625rem;
    border-radius: 0.625rem;
    border-bottom: 0.25rem solid var(--salvia);
    text-align: center;
    box-shadow: 0 0.25rem 0.75rem var(--ombra);
    transition: transform var(--transition);
}

.card-servizio:hover {
    transform: translateY(-0.3rem);
}

/* ============================================================
   CAROSELLO (GALLERIA FOTO)
   ============================================================ */
.carousel-container {
    width: 100%;
    max-width: 75rem;
    margin: 2.5rem auto;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 0.9375rem;
    box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.2);
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.carousel img.active {
    opacity: 1;
}

/* ============================================================
   DINTORNI E ATTRAZIONI
   ============================================================ */
.attraction-card {
    background: white;
    padding: 1.5625rem;
    border-radius: 0.75rem;
    border-left: 0.3125rem solid var(--salvia);
    box-shadow: 0 0.25rem 0.9375rem var(--ombra);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.attraction-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.1);
}

.attraction-card h3 {
    margin: 0 0 0.625rem 0;
    color: #5D4037;
    font-size: clamp(1rem, 3vw, 1.3rem);
}

.attraction-card p {
    font-size: 0.95rem;
    color: #666;
}

.tourist-guide {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.tourist-guide>div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5625rem;
    margin-top: 1.875rem;
}

/* ============================================================
   PULSANTI PARTNER
   ============================================================ */
.btn-partner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: bold;
    transition: transform var(--transition), box-shadow var(--transition);
    color: white !important;
    font-size: clamp(1rem, 2vw, 1.4rem);
}

.btn-partner:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.2);
}

.booking {
    background-color: #003580;
}

.airbnb {
    background-color: #FF5A5F;
}

.subito {
    background-color: #ff6e00 !important;
    background-image: linear-gradient(135deg, #ff8c00 0%, #ff6e00 100%);
    border: 1px solid #e66300;
}

.subito:hover {
    background-color: #e66300 !important;
    background-image: none;
}

/* ============================================================
   VIDEO TOUR
   ============================================================ */
.video-tour-section {
    max-width: 25rem;
    margin: 1.25rem auto;
    padding: 0 1.25rem;
    text-align: center;
}

.video-tour-section h2 {
    font-size: clamp(1.3rem, 4vw, 1.5rem) !important;
    margin-bottom: 1.25rem;
}

.video-tour-section video {
    width: 100%;
    height: auto;
    border-radius: 0.9375rem;
    box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.2);
    background-color: #000;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--cioccolato);
    color: white;
    text-align: center;
    padding: 2.5rem 1.25rem;
    margin-top: 3.125rem;
}

/* ============================================================
   MEDIA QUERIES - TABLET (768px - 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    nav ul {
        gap: 1rem;
    }

    nav ul li a {
        font-size: 0.8rem;
    }

    .carousel-container {
        aspect-ratio: 4 / 3;
    }

    .tourist-guide>div {
        gap: 1.25rem;
    }
}

/* ============================================================
   MEDIA QUERIES - MOBILE (< 768px)
   ============================================================ */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    /* HEADER MOBILE - compact overlay nav on top of hero */
    header {
        position: absolute !important;
        background: transparent !important;
        padding: 0;
        width: 100%;
        top: 0;
        left: 0;
        pointer-events: none;
    }

    /* keep solid background for internal pages */
    header.internal {
        background: var(--legno);
        position: relative;
        pointer-events: auto;
        padding: 1rem 0.75rem;
    }

    /* SHOW HAMBURGER MENU - compact pill on top-left */
    nav {
        position: absolute;
        top: 1rem;
        left: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: linear-gradient(90deg, rgba(139, 69, 19, 0.95), rgba(74, 55, 40, 0.95));
        padding: 0.35rem 0.6rem;
        border-radius: 0.35rem;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
        z-index: 102;
        pointer-events: auto;
    }

    nav ul {
        display: none;
    }

    .hamburger {
        display: flex;
        order: 1;
        margin: 0;
        padding: 0.15rem;
    }

    .mobile-menu {
        display: flex;
    }

    .language-switch {
        order: 2;
        margin-left: 0;
        gap: 0.5rem;
    }

    .lang-label {
        font-size: 0.65rem;
    }

    .switch {
        width: 2.25rem;
        height: 1.125rem;
    }

    .slider:before {
        height: 0.875rem;
        width: 0.875rem;
    }

    input:checked+.slider:before {
        transform: translateX(1.125rem);
    }

    /* HERO SECTION */
    .hero-text {
        padding: 1rem;
    }

    /* CONTENT SECTIONS */
    .full-description {
        padding: 2rem 1rem;
    }

    .description-content div {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-top: 1.875rem !important;
    }

    .features {
        padding: 2rem 1rem;
    }

    /* CAROUSEL MOBILE */
    .carousel-container {
        aspect-ratio: 4 / 3;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* BUTTONS */
    .btn-partner {
        font-size: 1.05rem !important;
        padding: 1rem !important;
    }

    /* VIDEO SECTION */
    .video-tour-section {
        padding: 1rem;
    }

    .tourist-guide>div {
        grid-template-columns: 1fr !important;
    }

    /* ATTRACTION CARDS */
    .attraction-card {
        padding: 1.25rem;
    }

    .attraction-card h3 {
        font-size: 1.1rem;
    }

    /* SERVICE GRID */
    .service-grid {
        grid-template-columns: 1fr !important;
    }

    /* MAP */
    .map-section {
        margin-bottom: 2rem !important;
    }

    .map-section iframe {
        height: 250px !important;
    }
}

/* ============================================================
   MEDIA QUERIES - SMALL MOBILE (< 480px)
   ============================================================ */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .hero-text h1 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .hero-text p {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }

    nav {
        padding: 0 0.5rem;
    }

    .hamburger {
        margin-right: 0.5rem;
    }

    .hamburger span {
        width: 1.5rem;
        height: 0.18rem;
    }

    .language-switch {
        gap: 0.35rem;
    }

    .lang-label {
        font-size: 0.6rem;
    }

    .switch {
        width: 2rem;
        height: 1rem;
    }

    .servizi-lista {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-servizio {
        padding: 1.25rem;
    }

    .btn-partner {
        font-size: 0.95rem;
    }

    .video-tour-section {
        max-width: 100%;
    }

    footer {
        padding: 1.5rem 0.75rem;
    }
}