/* Reset base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f9f9f9;
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

/* Navbar */
.navbar {
    background-color: #A68B5B;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.navbar-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.navbar-logo {
    position: absolute;
    left: 0;

}

.logo-img {
    height: 40px; /* Ajusta l'altezza secondo le tue esigenze */
    width: auto;
}

.navbar-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    padding: 0;
    margin: 0;
    width: 100%;
}

.navbar-list a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-list a:hover,
.navbar-list a.active {
    color: #1a1a1a;
}
.navbar-contact {
    position: absolute;
    right: -50px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.contact-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
/* --- NAVBAR MOBILE --- */
@media (max-width: 768px) {

    /* navbar più bassa e pulita */
    .navbar {
        padding: 0.5rem 1rem;
    }

    /* nascondo le voci "Camere / Servizi / Dove siamo / ..." */
    .navbar-list {
        display: none;
    }

    /* tengo logo a sinistra e telefono a destra */
    .navbar-logo {
        position: static;
        margin-right: auto;
    }

    .navbar-contact {
        position: static;
        margin-left: auto;
        gap: 8px;
    }

    /* se in .navbar-contact hai più bottoni,
       lascio solo il primo (di solito il telefono) */
    .navbar-contact .contact-item:not(:first-child) {
        display: none;
    }
}

/* Hero Section - Layout come Florita Napoli */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    position: relative;
}

/* Colonna immagine (sinistra) */
.hero-image {
    position: relative;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Colonna contenuto (destra) */
.hero-content {
    background: linear-gradient(135deg, #FAF3E0 0%, #C2A67A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    position: relative;
}

.hero-text {
    max-width: 500px;
    text-align: center;
}
.hero-text h1 {
    font-family: 'Playball', serif;
    font-size: 3.2rem;
    color:white;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-text p {
    font-family: 'Josefin Slab', serif;
    color:white;
    font-size: 1.15rem;
}
.hero-text .cta {
    display: inline-block;
    background-color: white;
    color: #d8572a;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

.hero-text .cta:hover {
    background-color: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Decorative elements */
.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="25" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="70" cy="15" r="1" fill="rgba(255,255,255,0.12)"/><circle cx="85" cy="35" r="1.2" fill="rgba(255,255,255,0.06)"/><circle cx="15" cy="60" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="45" cy="70" r="1.3" fill="rgba(255,255,255,0.09)"/><circle cx="80" cy="75" r="1" fill="rgba(255,255,255,0.11)"/></svg>') repeat;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: 3rem 2rem;
    }
}

/* Sezione Dove Siamo */
.dove-siamo {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.mappa-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.mappa-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.mappa-info h3 {
    color: #A68B5B;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.mappa-info ul {
    padding-left: 0;
    list-style: none;
}

.mappa-info ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
}

.contatti-mappa {
    background-color: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.contatti-mappa a {
    color: #A68B5B;
    text-decoration: none;
}

.contatti-mappa a:hover {
    text-decoration: underline;
}

.mappa-embed {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.mappa-embed iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .mappa-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mappa-info {
        order: 2;
    }

    .mappa-embed {
        order: 1;
    }
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-image {
        height: 50vh;
        order: 2;
    }

    .hero-content {
        order: 1;
        padding: 3rem 1.5rem;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-content {
        padding: 2rem 1rem;
    }


}


.contact-item {
    font-size: 0.9rem;
}


/* Sections */
section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

ul {
    list-style: disc;
    padding-left: 2rem;
}

/* Cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    padding: 0 1rem;
}

.card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.card h3 {
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem;
    color: #5a4633; /* sabbia scuro */
}

.card p {
    margin: 0.4rem 0;
    color: #666;
    font-size: 0.95rem;
}

.card p:last-child {
    font-weight: bold;
    color: #A68B5B; /* prezzo in sabbia scuro */
    font-size: 1rem;
}

/* --- IMMAGINI CON CAROUSEL --- */
.card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Mostra solo l’immagine attiva */
.card-image img.active {
    opacity: 1;
    z-index: 1;
}


.servizi {
    padding: 4rem 2rem;
    background-color: #FAF3E0; /* colore sabbia chiaro */
    text-align: center;
}

.servizi h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #5a4633; /* sabbia scuro */
}

.servizi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.servizio {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.servizio:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.servizio i {
    font-size: 2rem;
    color: #A68B5B; /* sabbia scuro */
    margin-bottom: 0.8rem;
}

.servizio p {
    font-size: 1rem;
    color: #444;
    margin: 0;
}
.servizio p small { font-size: .9em; color:#666; }


/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 450px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #5a4633; /* sabbia scuro */
    margin-bottom: 0.3rem;
}

input, select, textarea {
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}

input:focus, select:focus, textarea:focus {
    border-color: #C2A67A; /* richiamo colore hero */
    box-shadow: 0 0 0 3px rgba(194,166,122,0.2);
    outline: none;
}

button {
    padding: 1rem;
    background: #A68B5B; /* sabbia più scuro per CTA */
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #8C7348; /* leggermente più scuro al hover */
}
.dintorni {
    padding: 4rem 2rem;
    background: #FAF3E0;
    text-align: center;
}

.dintorni h2 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: #5a4633;
}

.dintorni-carousel {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
}

.dintorno {
    display: none;
    animation: fade 1s ease-in-out;
}

.dintorno.active {
    display: block;
}

.dintorno-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.dintorno-img {
    flex: 1;
}

.dintorno-img img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.dintorno-text {
    flex: 1;
}

.dintorno-text h3 {
    font-size: 1.8rem;
    color: #A68B5B;
    margin-bottom: 1rem;
}

.dintorno-text p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
}
/* Pallini di navigazione per i dintorni */
.dintorni-navigation-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0 20px 0;
}

.dintorni-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dintorni-dot.active {
    background: #A68B5B;
    transform: scale(1.2);
}

.dintorni-dot:hover {
    background: #C2A67A;
    transform: scale(1.1);
}

/* Responsivo: su mobile torna foto sopra e testo sotto */
@media (max-width: 768px) {
    .dintorno-content {
        flex-direction: column;
        text-align: center;
    }
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.contatto {
    display: flex;

    align-items: center; /* allinea verticalmente icona e testo */
    gap: 0.3rem; /* spazio tra icona e testo */
}
.contatti {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #f8f4ef;
}

.contatti h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #5a4633;
}

.contatti-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.contatti-riga {
    display: flex;
    gap: 2rem;
    justify-content: center;
}
.contatti-riga .fa-whatsapp{
    color: #5a4633;
}
.contatto .fa-instagram {
    color: #5a4633;
}

.contatto a {
    display: flex;
    align-items: center; /* centra verticalmente icona e testo */
    gap: 0.3rem; /* spazio tra icona e testo */
    font-size: 1.1rem;
    color: #a68b5b;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contatto a:hover {
    color: #7a623e;
}

.contatto i {
    margin-right: 2px;
    font-size: 1.2rem;
}
.contatto .fa-phone,
.contatto .fa-envelope,
.contatto .fa-facebook{
    color: #5a4633; /* colore del sito */
}
.contatti-riga.whatsapp {
    justify-content: flex-start;
}
@media (max-width: 768px) {

    .contatti {
        padding: 2.5rem 1rem;
    }

    .contatti-container {
        gap: 0.8rem;
    }

    .contatti-riga {
        flex-direction: column;
        gap: 0.4rem;
    }

    .contatto a {
        font-size: 1rem;
    }

    .contatto i {
        font-size: 1.1rem;
        margin-right: 4px;
    }
}
/* ===== SEZIONE GALLERIA ===== */
.gallery {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
    text-align: center;
}

.gallery h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #5a4633;
    font-weight: 600;
}

.gallery-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: white;
    padding: 20px 0;
}

.gallery-track {
    display: flex;
    gap: 20px;
    animation: flowRight 40s linear infinite;
    width: fit-content;
}

.flow-item {
    flex-shrink: 0;
    width: 320px;
    height: 240px;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.flow-item:hover {
    transform: scale(1.05) translateY(-5px);
    z-index: 10;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.flow-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.flow-item:hover img {
    transform: scale(1.1);
}

/* Animazione flusso continuo */
@keyframes flowRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pausa al passaggio del mouse */
.gallery-container:hover .gallery-track {
    animation-play-state: paused;
}

/* Gradiente fade ai bordi per effetto infinito */
.gallery-container::before,
.gallery-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 5;
    pointer-events: none;
}

.gallery-container::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.gallery-container::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery {
        padding: 3rem 1rem;
    }

    .gallery h2 {
        font-size: 2rem;
    }

    .flow-item {
        width: 280px;
        height: 200px;
    }

    .gallery-track {
        animation-duration: 35s; /* Un po' più veloce su mobile */
    }
}

@media (max-width: 480px) {
    .flow-item {
        width: 240px;
        height: 180px;
    }

    .gallery-track {
        gap: 15px;
        animation-duration: 30s;
    }

    .gallery-container::before,
    .gallery-container::after {
        width: 40px;
    }
}


/* Sezione Recensioni TripAdvisor */
.recensioni {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
    max-width: none; /* Override della sezione generica */
}

.reviews-section {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: #5a4633;
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.tripadvisor-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    font-size: 1.2rem;
    color: #A68B5B;
    font-weight: 600;
}

.owl-icon {
    width: 30px;
    height: 30px;
    background: #A68B5B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.reviews-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.review-card {
    display: none;
    padding: 40px;
    text-align: center;
    min-height: 300px;
    animation: fadeIn 0.5s ease-in-out;
}

.review-card.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
}

.star {
    width: 30px;
    height: 30px;
    background: #A68B5B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.review-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.4;
}

.review-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: italic;
}

.navigation-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #A68B5B;
    transform: scale(1.2);
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #A68B5B;
    transition: width 0.1s linear;
}

@media (max-width: 768px) {
    .review-card {
        padding: 25px;
        min-height: auto;
    }

    .section-title {
        font-size: 2rem;
    }

    .stars {
        gap: 3px;
    }

    .star {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
}

/* Footer */
footer {
    background-color: #A68B5B;
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
}
