/* Reset and


base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #c41e3a;
    --dark-red: #9b1c2e;
    --light-red: #dc3545;
    --black: #1a1a1a;
    --dark-gray: #2d2d2d;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --text-gray: #6c757d;
    --border-color: #e9ecef;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', serif;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

html {
    scroll-behavior: smooth;
}
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

body {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--black);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--dark-red));
    border-radius: 2px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-logo .logo {
    height: 115px;
    width: auto;
}


.lang-switcher img {
  height: 30px; /* dimensione adatta alle bandiere */
  margin: 0 5px; /* spaziatura orizzontale */
}

@media (max-width: 600px) {
  .nav-logo .logo {
    width: 150px;
    height: auto;
  }
}

@media (max-width: 768px) {
  .nav-social .social-link {
    display: none;
  }
}

@media (max-width: 600px) {
  .lang-switcher {
    display: flex;
    align-items: center;  /* centra verticalmente */
    height: 40px;         /* o l'altezza che serve per l'header */
    position: absolute;
  top: 50%;
  left:65%;
  transform: translate(-50%, -50%);
  }
}

.nav-link {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    font-size: 1.15rem;
    padding: 0.5rem 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    padding: 1rem 0;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--black);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--light-gray);
    color: var(--primary-red);
}

.nav-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    position: absolute;
    top: 50%;
    right: 3%;
    transform: translate(-50%, -50%);
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--black);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100dvh;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Essenziale per coprire l'area senza distorcere il video */
  z-index: -1;      /* Posiziona il video dietro al testo */
}


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

.slide-content {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
    max-width: 1200px;
    padding: 0;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(26, 26, 26, 0.6),
        rgba(196, 30, 58, 0.3)
    );
    z-index: 1;
}

.hero-title {
    font-size: clamp(1.2rem, 3.5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
}

.slider-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(196, 30, 58, 0.8);
    border-color: var(--primary-red);
    transform: scale(1.1);
}

.slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--primary-red);
    transform: scale(1.2);
}

/* Main Content */
.main-content {
    margin-top: 0;
}

/* Welcome Section */
.welcome-section {
  padding: 8rem 0 6rem; /* ⬆️ aumentato lo spazio sopra */
  background: var(--light-gray);
}

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

.welcome-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.welcome-text2 {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    text-align: center;
}

/* Services Section */


.services-section {
    padding: 6rem 0;
    background: var(--white);
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-red);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.service-card h3 {
    color: var(--black);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-list {
    list-style: none;
    margin: 1.5rem 0 1.5rem 3rem; /* aumentato margine sinistro */
    text-align: left;
}

.service-list li {
    padding: 0.5rem 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 1.5rem;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

.service-btn {
    display: inline-block;
    background-color: var(--primary-red);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 0.4rem;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem; /* 👈 Spazio sopra il pulsante */
}

.service-btn:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
}

/* Service Cards Section */
.service-cards-section {
    padding: 6rem 0;
    background: var(--light-gray);
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

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

@media (max-width: 600px) {
    .service-cards-grid {
        grid-template-columns: 1fr;
    }
}

.service-card-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 300px;
}

.service-card-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card-item:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.3),
        rgba(26, 26, 26, 0.8)
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: var(--white);
}

.card-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.card-overlay p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.card-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    align-self: flex-start;
}

.card-btn:hover {
    background: var(--dark-red);
}

/* Testimonials */
.testimonials-section {
    padding: 6rem 0;
    background: var(--white);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial {
    display: none;
    padding: 2rem;
}

.testimonial.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-content p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author strong {
    color: var(--black);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.testimonial-author span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-btn:hover {
    background: var(--dark-red);
    transform: scale(1.1);
}

/* UNESCO Section */
.unesco-section {
    padding: 6rem 0;
    background: var(--light-gray);
}

.unesco-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.accessible-tours {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.access-icon {
    height: 20px;
    width: auto;
}

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

@media (max-width: 600px) {
    .unesco-gallery {
        grid-template-columns: 1fr;
    }
}

.unesco-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 200px;
    transition: var(--transition);
}

.unesco-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.unesco-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.unesco-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(26, 26, 26, 0.8)
    );
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.unesco-overlay h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin: 0;
}

/* About Service Section */
.about-service-section {
    padding: 6rem 0;
    background: var(--white);
}

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

.about-card,
.service-card-main,
.island-info {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.about-card:hover,
.service-card-main:hover,
.island-info:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-red);
}

.about-card h3,
.service-card-main h3,
.island-info h3 {
    color: var(--black);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.about-card p,
.service-card-main p,
.island-info p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more-btn {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.read-more-btn:hover {
    color: var(--dark-red);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-quotes {
    text-align: center;
    margin-bottom: 3rem;
}

.quote-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.quote {
    display: none;
    padding: 1rem;
}

.quote.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.quote p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--light-gray);
}

.quote span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-gray);
}

.footer-info a {
    color: var(--primary-red);
    text-decoration: none;
}

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

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social .social-link {
    background: var(--dark-gray);
}

.footer-social .social-link:hover {
    background: var(--primary-red);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-md);
        transform: translateY(-100dvh);
        transition: var(--transition);
        flex-direction: column;
        padding: 2rem 0;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }

    .nav-social {
        margin-top: 2rem;
        justify-content: center;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .slider-controls {
        padding: 0 1rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-cards-grid {
        grid-template-columns: 1fr;
    }

    .unesco-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .about-service-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .container {
        padding: 0 1rem;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .services-section,
    .service-cards-section,
    .testimonials-section,
    .unesco-section,
    .about-service-section {
        padding: 3rem 0;
    }

    .welcome-section {
        padding: 4rem 0;
    }

    .service-card {
        padding: 1.5rem;
    }

    .unesco-gallery {
        grid-template-columns: 1fr;
    }
}

/* Smooth scrolling improvements */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* Loading animations */
.service-card,
.service-card-item,
.unesco-item {
    opacity: 0;
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delays */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-card-item:nth-child(1) { animation-delay: 0.1s; }
.service-card-item:nth-child(2) { animation-delay: 0.2s; }
.service-card-item:nth-child(3) { animation-delay: 0.3s; }
.service-card-item:nth-child(4) { animation-delay: 0.4s; }

.unesco-item:nth-child(1) { animation-delay: 0.1s; }
.unesco-item:nth-child(2) { animation-delay: 0.2s; }
.unesco-item:nth-child(3) { animation-delay: 0.3s; }
.unesco-item:nth-child(4) { animation-delay: 0.4s; }
.unesco-item:nth-child(5) { animation-delay: 0.5s; }
.unesco-item:nth-child(6) { animation-delay: 0.6s; }



.welcome-grid {
  display: flex;
  gap: 5rem; /* 🔼 più spazio tra i blocchi */
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.welcome-left {
  flex: 4; /* 80% */
  min-width: 0;
  text-align: justify;
}

.welcome-right {
  flex: 1; /* 20% */
  background: var(--light-gray);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 1.7rem;
  max-width: 250px;
  position: relative;
  top: auto;
    position: sticky;
    top: 190px; /* distanza dalla parte superiore quando si fissa */
    align-self: flex-start; /* utile se sei in un layout flex */

}

.sidebar-list a {
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
  line-height: 1.6;
  display: inline-block;
  transition: color 0.3s;
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.sidebar-list {
  list-style: none;
  padding-left: 0;
}

.sidebar-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.75rem;
}

.sidebar-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-red);
  font-size: 1.2rem;
  line-height: 1;
}

.sidebar-list a {
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
  transition: color 0.3s;
}

.sidebar-list a:hover {
  color: var(--primary-red);
}

.sidebar-divider {
  height: 3px;
  width: 60px;
  background: linear-gradient(to right, var(--primary-red), var(--dark-red));
  border-radius: 2px;
  margin: 0.75rem 0 1.5rem;
}



.image-links-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
}

.image-column {
  display: flex;
  flex-direction: row; 
  gap: 2rem;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}


.image-link {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24.2vw; 
  min-width: 242px; 
}

.image-link img {
  width: 100%;
  height: 36.3dvh; 
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.image-link:hover img {
  transform: scale(1.01);
}

.image-link span {
  font-size: 1rem;
  font-weight: 500;
  padding: 1rem;
  text-align: center;
  width: 100%;
  background-color: #fff;
}

.image-text-block {
  width: 100%;
  background: #ffffff;
  text-align: center;
  padding: 0; 
}

.image-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: #222;
  display: block;
  padding: 1.2rem 1rem 0.8rem;
}

.image-description {
  font-family: var(--font-primary);
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  padding: 0 1rem 1.2rem;
}


@media screen and (max-width: 768px) {
  .image-links-section {
    flex-direction: column;
  }
  .image-column {
    flex-direction: column;
    width: 90vw;
  }
  .image-link {
    width: 100%;
  }
}

.section-day {
  font-size: 1.5rem;            /* Dimensione più grande e leggibile */
  font-weight: bold;            /* Grassetto per evidenziare */
  color: #333333;               /* Colore scuro, elegante e leggibile */
  margin-top: 1.5rem;           /* Spaziatura sopra */
  margin-bottom: 0.5rem;        /* Spaziatura sotto */
  padding: 0.5rem 1rem;         /* Un po' di spazio interno */
  border-left: 4px solid #9b1c2e;  /* Barra laterale dorata come tocco di colore */
  background-color: #f9f9f9;    /* Sfondo leggero */
  border-radius: 8px;           /* Angoli arrotondati */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Leggera ombra */
  font-family: 'Playfair Display', serif; /* Stile tipografico elegante */
}

.about-data {
  text-align: center;
  margin-top: 2rem;
}

.about-data .section-title {
  margin-bottom: 1rem;
}

.about-data .welcome-text {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1rem;
}

/* Dropdown base */
.nav-item.dropdown {
  position: relative;
}

.nav-item.dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-width: 180px;
  display: none;
  z-index: 1000;
}

.nav-item.dropdown .dropdown-menu li {
  list-style: none;
}

.nav-item.dropdown .dropdown-menu li a {
  display: block;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

.nav-item.dropdown .dropdown-menu li a:hover {
  background-color: #f5f5f5;
  color: #d62828;
}

/* Show dropdown on hover */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

.flexx{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* Linguetta */
.preventivo-tab {
  position: fixed;
  top: 40%;
  left: 0;
  background-color: #9b1c2e;
  color: #fff;
  padding: 10px 12px;
  font-weight: bold;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  cursor: pointer;
  z-index: 1000;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Linguetta nascosta: si ritira a sinistra */
.preventivo-tab.hidden {
  transform: translateX(-100%);
  opacity: 0;
}

/* Pannello Preventivi */
.preventivo-panel {
  position: fixed;
  top: 40%;
  left: -200px;
  width: 210px;
  background-color: #9b1c2e;
  border: 2px solid #9b1c2e;
  border-left: none;
  padding: 15px;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  transition: left 0.3s ease;
  z-index: 999;
}

.preventivo-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.preventivo-panel li {
  margin-bottom: 10px;
}

.preventivo-panel li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
}

.preventivo-panel li a:hover {
  font-weight: bold;
}

.preventivo-panel.active {
  left: 0;
}


.intro-header {
    background-image: url('../img/etna 3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 60px;
    height: 250px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: scroll; /* default per mobile */
}

@media (min-width: 769px) {
    .intro-header {
        background-attachment: fixed;
    }
}
.intro-overlay {
    background-color: rgba(0, 0, 0, 0.4); /* Sovrapposizione semitrasparente per migliorare il contrasto */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.intro-content {
    text-align: center;
    color: white;
}

.intro-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem; /* Ingrandisce il font */
    margin-bottom: 10px;
    color: white;
    letter-spacing: 1px;
}

.intro-title .highlight {
    color: #9b1c2e; /* Rosso acceso */
    font-weight: bold;
}

.intro-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden;
  border-radius: 8px;
    transition: transform 0.3s ease;
}

.feature-image {
  width: 100%;
  padding-top: calc(100% * (1462 / 1586)); /* 👈 mantiene proporzione 1586x1462 */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: scale(1.05);
  cursor: pointer;
  
}

.feature-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #c3202e;
  color: white;
  font-weight: bold;
  font-size: 16px;
  padding: 15px;
  text-align: center;
  min-height: 60px;
}

.feature-caption i {
  font-size: 18px;
}

/* 📱 Mobile: stack 1 per riga */
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}


.feature-card:hover {
  transform: scale(1.05); /* 👈 Zooma tutto il blocco */
  cursor: pointer;
}

.photo-gallery {
  background-color: #f8f9fa; /* bianco sporco elegante */
  padding: 4rem 1rem;
}

.gallery-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  color: #2a2a2a;
}

.masonry-gallery {
  column-count: 4;
  column-gap: 1rem;
}

.masonry-gallery img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  break-inside: avoid;
}

.masonry-gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

@media screen and (max-width: 1200px) {
  .masonry-gallery {
    column-count: 3;
  }
}

@media screen and (max-width: 768px) {
  .masonry-gallery {
    column-count: 2;
  }
}

@media screen and (max-width: 480px) {
  .masonry-gallery {
    column-count: 1;
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.lightbox.show {
  display: flex;
}


.immagine-decorata {
display: block;
max-width: 90%;
height: auto;
margin: 20px auto;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
border: 1px solid #ccc;
}

@media screen and (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: flex-start; /* Per allineamento a sinistra */
    background-color: #ffffff; /* Sfondo chiaro */
    width: 100%;
    padding: 20px;
    gap: 15px;
    font-family: 'Poppins', sans-serif;
  }

  nav ul li {
    width: 100%;
    text-align: right; /* Allinea il testo delle voci a destra */
    padding-right: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
  }

  nav ul li a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s ease;
  }

  nav ul li a:hover {
    color: #e67e22;
  }
}


.menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu li {
  margin: 0;
  padding: 10px;
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 20px;
  list-style: none;
  margin: 0;
}

.has-submenu.open .submenu {
  max-height: 200px; /* regolalo se necessario */
}

.submenu li {
  padding-left: 20px;
}

@media (max-width: 992px) {
  .welcome-grid {
    flex-direction: column;
  }

  .photo-gallery {
    margin-top: 60px;
    padding: 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.3rem;
  }
  .welcome-right{
      display: none;
  }
  
}

.mini-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.mini-image-grid a {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mini-image-grid img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.mini-image-grid a:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.mini-image-grid a:hover img {
  transform: scale(1.1);
}

select {
  -webkit-appearance: none; /* Rimuove lo stile nativo Safari */
  -moz-appearance: none;    /* Rimuove stile Firefox */
  appearance: none;         /* Standard */
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 0.75rem;
  border-radius: 3px;
  width: 100%;
  font-size: 1rem;
  line-height: 1.5;
}

/* Contenitore principale del carosello */
.carousel-container {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
}

.carousel-container h1 {
    font-size: 2rem;
    color: #495057;
    margin-bottom: 1rem;
    font-weight: 500;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
    height: 30vh;
    min-height: 200px;
    border-radius: 8px;
    background-color: #fff;
}

.carousel-track {
    display: flex;
    height: 100%;
}
.carousel-container .carousel-item {
    flex: 0 0 25%; /* Mostra 4 immagini alla volta (100% / 4) */
    height: 100%;
    box-sizing: border-box;
    padding: 0 5px;
}

.carousel-container .carousel-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    cursor: pointer;
}
.slide {
    flex: 0 0 25%;
    height: 100%;
    box-sizing: border-box;
    padding: 0 5px;
}

.slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    cursor: pointer; /* Indica che l'immagine è cliccabile */
    transition: transform 0.2s ease;
}

.slide img:hover {
    transform: scale(1.03); /* Leggero effetto zoom al passaggio del mouse */
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #dbe1e6;
    margin: 0 5px;
    cursor: pointer;
    border: none;
    padding: 0;
}

.dot.active {
    background-color: #868e96;
}

/* --- Stili per la Lightbox --- */
.lightbox {
    display: none; /* Nascosta di default */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex; /* Mostrata quando attiva */
}

#lightbox-img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 4px;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-lightbox:hover {
    color: #ccc;
}

/* Animazioni per la lightbox */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes zoomIn {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}
/* Stili responsivi per il Carosello */
@media (max-width: 768px) {
  .carousel-container .carousel-item {
    /* Su schermi piccoli, ogni item occupa il 50% della larghezza,
       mostrando così 2 immagini alla volta (100% / 2 = 50%). */
    flex: 0 0 50%;
  }
}