

/* --- TOP BAR --- */
.top-bar {
    position: static;
    width: 100%;
    background-color: #586f58;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    height: 40px;
}


.top-bar a {
    text-decoration: none;
    border-bottom: none;
}

/* --- NAVBAR --- */
.navbar {
    position: static;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 0 15px;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-links a {
    padding: 14px 10px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}


.navbar a {
    float: left;
    display: block;
    color: #333;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    transition: color 0.3s;
}

.navbar a:hover {
    color: lightgray;
}

.navbar a.active {
    color: #000000;
    font-weight: bold;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: white;
        position: absolute;
        top: 60px;
        left: 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links a {
        padding: 10px;
        text-align: center;
        border-top: 1px solid #ddd;
    }

    .nav-links.show {
        display: flex;
    }
}

.logo-img {
    max-height: 40px;
    height: auto;
    width: auto;
    display: block;
    margin: auto 10px;
}

@media (max-width: 600px) {
    .logo-img {
        max-height: 30px;
    }
}

#wrapper {
    padding-top: 0;
}

/* --- SLIDESHOW --- */
* {
    box-sizing: border-box;
}

.slideshow-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9; /* proporzioni più armoniose */
    overflow: hidden;
}

.slideshow-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.mySlides {
    display: none;
}

/* Pulsanti slideshow rettangolari con sfondo più scuro */
.slideshow-container .prev,
.slideshow-container .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6); /* sfondo più scuro */
    color: #fff;
    font-size: 1.5em;
    padding: 0.4em 0.7em;
    border-radius: 8px;
    cursor: pointer;
    z-index: 10;
    user-select: none;
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.6);
}

.slideshow-container .prev:hover,
.slideshow-container .next:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #ffcc00; /* simbolo dorato al passaggio del mouse */
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
}

.slideshow-container .prev {
    left: 15px;
}

.slideshow-container .next {
    right: 15px;
}

.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active,
.dot:hover {
    background-color: #717171;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

/* Fix finale per la navbar e contatti (togli puntini verdi sottolineatura) */
.navbar a,
.nav-links a {
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.items a {
    text-decoration: none !important;
    outline: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}


/* Fix definitivo per checkbox nascosta */
input[type="checkbox"] {
  appearance: checkbox;
  -webkit-appearance: checkbox;
  -moz-appearance: checkbox;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  margin-right: 10px;
  vertical-align: middle;
  opacity: 1 !important;
  position: static !important;
}


/* Modal base pop up privacy policy */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  animation: fadeIn 0.3s ease-in-out;
}

/* Modal box */
.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 2em;
  border-radius: 8px;
  width: 90%;
  max-width: 700px;
  color: #111;
  font-family: inherit;
  line-height: 1.6;
  position: relative;
}

/* Close button */
.close {
  color: #aaa;
  position: absolute;
  top: 1em;
  right: 1.2em;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

/* Fade in */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Footer che appare solo in fondo, fuori da #wrapper */
.bottom-bar-full {
  width: 100%;
  background-color: #586f58;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
}

.bottom-bar-content {
  max-width: 1200px; /* o la larghezza del wrapper */
  margin: 0 auto;
}

.bottom-bar-full a {
  color: white;
  text-decoration: none;
  margin: 0 0.5em;
}

.bottom-bar-full a:hover {
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.line-wrapper {
  position: relative;
  display: block;
  width: 20rem;   /* mantiene spazio per linea */
  height: 3rem;   /* altezza sufficiente per :before e :after */
}

.line-wrapper span.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* pseudo-elementi esistenti restano */
.line-wrapper:before {
  background: #43d9b8;
  content: '';
  display: block;
  height: 2px;
  position: absolute;
  top: 1rem;
  width: 100%;
}

.line-wrapper:after {
  background: #43d9b8;
  border-radius: .5rem;
  content: '';
  display: block;
  height: .5rem;
  width: .5rem;
  position: absolute;
  top: .75rem;
  right: 0;
}