:root {
    --primary-color: rgb(65, 145, 196); /* Colore principale */
    --secondary-color: #20639B; /* Blu complementare */
    --accent-color: #F6D55C; /* Accento giallo */
    --light-color: #e8f3fa; /* Versione chiara del colore principale */
    --dark-color: #173F5F; /* Blu scuro */
    --text-color: #333333;
    --white-color: #FFFFFF;
}

@font-face {
    font-family: 'Lavanderia';
    src: url('./immagini/Lavanderia Sturdy.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Dune Rise';
    src: url('immagini/Dune_Rise.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background-color: var(--primary-color);
    padding: 0;
    box-shadow: none;
    height: 300px;
    display: flex;
    align-items: center;
}

.container.header-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    height: 100%;
}

.logo {
    font-family: 'Lavanderia', sans-serif;
    font-size: 5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    word-spacing: -0.1em;
    line-height: 1;
    margin: 0;
    padding: 0;
    margin-bottom: 3rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.villa-mary-text {
    font-family: 'Lavanderia', sans-serif;
    font-size: 2.5rem;
}

nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6rem;
    justify-content: center;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: normal;
    transition: color 0.3s;
    font-size: 2.2rem;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-color);
}

.hero {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('immagini/primapagina1/DJI_20250410121107_0304_D_risultato.webp');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
}

.hero-title {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title h1 {
    color: white;
    font-family: 'Lavanderia', cursive;
    font-size: 6rem;
    margin-bottom: 1rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    text-transform: none;
    font-style: italic;
}

.hero-title .subtitle {
    color: white;
    font-size: 4rem;
    font-family: 'Lavanderia', cursive;
    margin-top: 1rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    text-transform: none;
    font-style: italic;
}

.hero p {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 1.5rem;
    max-width: 800px;
    margin-top: 1rem;
}

section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.services {
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    color: var(--primary-color);
    margin: 1rem 0;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.gallery {
    text-align: center;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 5px;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.gallery-controls {
    margin-top: 2rem;
}

.gallery-controls button {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 5px;
    cursor: pointer;
}

.contact {
    background-color: var(--light-color);
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    width: 100%;
    background-color: var(--white-color);
    padding: 3rem;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    order: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    width: 100%;
    text-align: center;
    padding: 2rem;
    background-color: var(--white-color);
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info p {
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-color);
    width: 300px;
}

.contact-info p a {
    color: var(--text-color);
    text-decoration: none;
}

.contact-info p a:hover {
    color: var(--text-color);
}

.contact-info i {
    min-width: 30px;
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    header {
        height: 250px;
    }

    .container.header-content {
        padding: 1.5rem;
    }
    
    nav ul {
        gap: 3rem;
    }
    
    .logo {
        font-size: 4rem;
        margin-bottom: 2rem;
    }

    nav ul li a {
        font-size: 1.8rem;
    }
    
    .hero {
        height: 80vh;
    }
    
    .hero-title h1 {
        font-size: 4.5rem;
    }
    
    .hero-title .subtitle {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 70vh;
    }

    .hero-title h1 {
        font-size: 3.5rem;
    }
    
    .hero-title .subtitle {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

button[type="submit"] {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: var(--secondary-color);
}

footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--white-color);
    margin: 0 1rem;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.social-icons {
    margin-bottom: 1rem;
}

.social-icons a {
    color: var(--white-color);
    margin: 0 0.5rem;
    font-size: 1.5rem;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

.credits {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.bewpot-link {
    color: #25D366;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.bewpot-link span {
    font-family: 'Dune Rise', sans-serif;
    letter-spacing: 1px;
    font-size: 16px;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bewpot-link span:nth-child(odd) {
    color: #000;
}

.bewpot-link span:nth-child(even) {
    color: #FF6B00;
}

.bewpot-link:hover {
    transform: scale(1.05);
}

.bewpot-link img {
    width: 25px;
    height: 25px;
    vertical-align: middle;
    margin-right: 2px;
}

@media (max-width: 768px) {
    .bewpot-link span {
        font-size: 14px;
    }
}

@media (min-width: 769px) {
    .hero {
        background-position: center 70%;
    }
}

/* Stili per lo slideshow */
.slideshow-container {
    max-width: 800px;
    position: relative;
    margin: 0 auto;
    height: 450px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -30px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    z-index: 10;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 40px;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.dots-container {
    text-align: center;
    margin-top: 20px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: var(--primary-color);
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

.amenities-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.amenity-item {
    width: 23%;
    padding: 3rem 2rem;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

@media (max-width: 768px) {
    .amenities-row {
        flex-wrap: wrap;
    }
    
    .amenity-item {
        width: 100%;
        margin-bottom: 1.5rem;
    }
}

/* Aggiorna gli stili esistenti */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.surroundings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Forza 3 colonne */
    gap: 2rem;
    margin: 3rem 0;
    width: 100%;
}

.surroundings-item {
    width: 100%;
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.surroundings-hero {
    position: relative;
    width: 100%;
    height: 400px; /* Altezza fissa come in camere.html */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Per contenere l'immagine */
}

.surroundings-hero .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(0.5);
}

.surroundings-hero .hero-title {
    position: relative;
    z-index: 2;
}

.surroundings-hero .hero-title h1 {
    color: white;
    font-family: 'Lavanderia', cursive;
    font-size: 6rem;
    margin-bottom: 1rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    text-transform: none;
    font-style: italic;
}

.surroundings-hero .hero-title .subtitle {
    color: white;
    font-size: 4rem;
    font-family: 'Lavanderia', cursive;
    margin-top: 1rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    text-transform: none;
    font-style: italic;
}

.surroundings-intro {
    max-width: 800px;
    margin: 3rem auto;
    text-align: center;
    line-height: 1.8;
    padding: 0 1rem;
}

.surroundings-image {
    height: 200px;
    overflow: hidden;
}

.surroundings-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.surroundings-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.surroundings-item > h3.surroundings-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.surroundings-content .surroundings-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.surroundings-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.surroundings-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    text-align: center;
    margin-top: auto;
}

.surroundings-link:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

@media (max-width: 1200px) {
    .surroundings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .surroundings-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .surroundings-hero {
        height: 80vh;
    }
    
    .surroundings-hero .hero-title h1 {
        font-size: 4.5rem;
    }
    
    .surroundings-hero .hero-title .subtitle {
        font-size: 3rem;
    }
}

.contact-section {
    padding: 2rem 0;
    background-color: var(--light-color);
}

.contact-section .contact-info {
    text-align: center;
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.room-hero {
    position: relative;
    width: 100%;
    height: 100vh;  /* Altezza fissa come in camere.html */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;  /* Per contenere l'immagine */
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(0.5);
}

.hero-title {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title h1 {
    color: white;
    font-family: 'Lavanderia', cursive;
    font-size: 3.5rem;  /* Ridotto da 6rem a 3.5rem per match con camere.html */
    margin-bottom: 1rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    text-transform: none;
    font-style: italic;
}

.hero-title .subtitle {
    color: white;
    font-size: 1.8rem;  /* Ridotto da 4rem a 1.8rem per match con camere.html */
    font-family: 'Lavanderia', cursive;
    margin-top: 1rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    text-transform: none;
    font-style: italic;
}

.room-hero p {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 1.5rem;
    max-width: 800px;
    margin-top: 1rem;
}

/* Media queries per responsività */
@media (max-width: 768px) {
    .room-hero {
        height: 80vh;
    }
    
    .room-hero .hero-title h1 {
        font-size: 2.5rem;
    }
    
    .room-hero .hero-title .subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .room-hero {
        height: 70vh;
    }
    
    .room-hero .hero-title h1 {
        font-size: 2rem;
    }
    
    .room-hero .hero-title .subtitle {
        font-size: 1.2rem;
    }
}

/* Stile unificato per i paragrafi negli hero */
.room-hero p, .hero p {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 1.5rem;
    max-width: 800px;
    margin-top: 1rem;
}

/* Media queries per responsività */
@media (max-width: 768px) {
    .room-hero p, .hero p {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .room-hero p, .hero p {
        font-size: 1rem;
    }
}

/* Stile per il pulsante WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    outline: none;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    text-decoration: none;
    color: white;
}

.whatsapp-button i {
    color: white;
    text-decoration: none;
    border: none;
    outline: none;
} 