/* --------------------------------------------------
   LAYOUT PAGINE INTERNE
-------------------------------------------------- */

.page-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-inner {
    display: flex;
    gap: 40px;
}

/* Contenuto principale */
.page-content {
    width: 60%;
}

.page-content h1 {
    font-size: 2.0rem;
	line-height: 1.1;
    margin-bottom: 20px;
	font-weight: 500;
    color: #333;
	font-family: "Lora", serif;
}

.page-content p {
    margin-bottom: 18px;
    line-height: 1.7;
    font-size: 0.95rem;
  	color: #838383;
  	line-height: 1.8em;
}

/* --------------------------------------------------
   SIDEBAR
-------------------------------------------------- */

.sidebar {
    width: 30%;
    background: none;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

.sidebar-img {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 4px;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.sidebar-owner,
.sidebar-address,
.sidebar-phone,
.sidebar-email {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.sidebar-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 18px 0 10px;
}

.sidebar-list {
    list-style: disc;
    padding-left: 20px;
}

.sidebar-list li {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

/* --------------------------------------------------
   IMMAGINE DI TOP SOTTO LA NAVBAR
-------------------------------------------------- */

.nav-topbar-image {
    width: 100%;
    height: 220px;
    background: url("../images/ba02.jpg") center/cover no-repeat;
    margin: 0;
    padding: 0;
}

/* --------------------------------------------------
   FOTO GRID + ZOOM
-------------------------------------------------- */

.foto-grid {
    width: 100%;
    margin: 25px 0;
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.zoom-img {
    width: 33%;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.zoom-img img {
    width: 100%;
    height: 160px; /* rettangolare */
    object-fit: cover;
    transition: transform 0.35s ease;
}

.zoom-img:hover img {
    transform: scale(1.08);
}

/* --------------------------------------------------
   LIGHTBOX
-------------------------------------------------- */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    cursor: zoom-out;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

/* --------------------------------------------------
   RESPONSIVE (MOBILE)
-------------------------------------------------- */

@media (max-width: 768px) {

    /* Impila contenuto + sidebar */
    .page-inner {
        flex-direction: column;
        gap: 30px;
    }

    .page-content {
        width: 100%;
    }


    .sidebar {
        width: 100%;
    }

    /* Foto grid */
    .foto-grid {
        flex-direction: column;
        gap: 20px;
    }

    .zoom-img {
        width: 100%;
    }

    .zoom-img img {
        height: 200px;
    }
}

.page-content img.fullwidth {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    margin-bottom: 20px;
}


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

ul.v-list li {
  position: relative;
  padding-left: 1.6em; /* spazio per la V */
  margin-bottom: 0.3em;
}

ul.v-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: #5aa11f;      /* colore V (modificalo a piacere) */
  font-size: 1.1em;
  font-weight: bold;
}


.map-container {
    width: 100%;
    height: auto;
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* --------------------------------------------------
   VIDEO GALLERY
-------------------------------------------------- */

/* Popup video */
.video-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.video-popup.active {
    display: flex;
}

.video-popup-inner {
    position: relative;
    max-width: 900px;
    width: 90%;
}

.video-popup video {
    width: 100%;
    border-radius: 8px;
}

.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 3rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Thumb video */
.video-thumb {
    position: relative;
    width: 100%;
    height: 120px; /* più piccola per farne stare 4 */
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    background: #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: 0.25s ease;
}

.video-thumb:hover {
    transform: scale(1.03);
}

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

.video-thumb::after {
    content: "▶";
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.4rem;
    color: white;
    text-shadow: 0 0 12px rgba(0,0,0,0.8);
    pointer-events: none;
}

/* Griglia video */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 25px;
}

/* Responsive */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}
