/*
Theme Name: Borgo Base Child
Template: borgo-base
Version: 1.0
*/
/* Azzerare impostazione predefinite del tema o browser */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* FONT PRINCIPALE */
body, p, a, li {
  line-height: 1.2;
  color: #0e4b27;
  /*color: green;*/
}

body {
  background-color: rgb(171, 185, 179);
  font-family: 'Spectral', serif !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rosarivo', serif;
  font-weight: normal;
  line-height: 1.2;
  margin: 0.5em 0;
  color: brown;
}
/* immagine di sfondo per la home*/
.site-main.homepage {
  position: relative;
  background-color: rgba(171, 185, 179, 0.9);
  min-height: 100vh;
  overflow: hidden;
}

.site-main.homepage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;  /* opacità immagine molto bassa */
  z-index: 0;
}

.site-main.homepage > * {
  position: relative;
  z-index: 1;  /* contenuti sopra l'immagine */
}





/* HEADER LAYOUT */
.site-header .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1.25rem;
  flex-wrap: wrap;
  gap: 1.25rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 2rem;
}

/* LOGO */
.site-logo {
  flex-shrink: 0;
}
.site-logo img {
  max-height: 3.75rem;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* MENU */
.main-navigation {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}
.main-navigation .main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.3125rem;
  flex-wrap: wrap;
}
.main-navigation .main-menu li {
  display: inline-block;
}
.main-navigation .main-menu li a {
  text-decoration: none;
  color: inherit;
  padding: 0.3125rem 0.625rem;
  display: block;
  font-size: 1.2rem;
  font-weight: 400;
  text-transform: uppercase;
  font-family: Arial, Helvetica, sans-serif;
  color: #0e4b27;
}
.main-navigation .main-menu> li > a:hover{
background-color:  #ccebcd;
}

/* Chrome default h1 */
h1 {
  display: block;
  font-size: 2em;
  margin-block-start: 0.67em;
  margin-block-end: 0.67em;
  margin-inline-start: 0;
  margin-inline-end: 0;
  font-weight: bold;
  unicode-bidi: isolate;
}

/* reset base per footer */
html, body {
  height: 100%;
}

/* wrapper generale della pagina */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* contenuto principale */
.site-main {
  flex: 1;
}

/* FOOTER */
.site-footer {
  display: flex;
  font-size: 0.7rem;
  justify-content: space-between;
  align-items: center;
  min-height: 3.75rem;
  padding: 0.3125rem 1.25rem;
  background-color: #f5f5f5;
  color: #666;
  flex-wrap: wrap;
}
.footer-left,
.footer-right {
  margin: 0.3125rem 0;
}
.footer-right a {
  color: inherit;
  text-decoration: none;
  margin-left: 0.625rem;
}
.footer-right a:first-child {
  margin-left: 0;
}
.footer-right a:hover {
  text-decoration: underline;
}

/* HERO */
.hero-home {
  position: relative;
  max-height: 31.25rem;
  overflow: hidden;
}
.hero-home img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-overlay {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.85);
  padding: 1.875rem;
  text-align: center;
  max-width: 90%;
  border-radius: 0.5rem;
  z-index: 2;
}
.hero-overlay h1 {
  margin: 0;
  font-size: 3rem;
}
.hero-overlay p {
  font-size: 1.125rem;
  margin-top: 0.625rem;
}

/* SEZIONI */
.homepage .home-section {
  max-width: 50rem;
  margin: 3.75rem auto;
  padding: 0 1.25rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-section h2 {
  font-size: 1.625rem;
  margin-bottom: 0.9375rem;
}
.home-section p,
.home-section li {
  font-size: 1.3rem;
  line-height: 1.6;
  font-weight: 400;
  color: #0e4b27;
}
.home-section ul {
  padding-left: 1.25rem;
  margin-top: 0.9375rem;
}
.home-section.alt {
  background: rgb(202, 218, 211);
  padding: 2.5rem 1.25rem;
  border-radius: 0.625rem;
}

/* Bottone */
.button {
  display: inline-block;
  margin-top: 0.9375rem;
  padding: 0.625rem 1.25rem;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 0.3125rem;
}
.button:hover {
  background-color: #000;
}

/* INFO-LIST */
.info-list {
  list-style: none;
  padding-left: 0;
  columns: 2;
  column-gap: 2.5rem;
  font-size: 0.875rem;
}
.info-list li {
  margin-bottom: 0.625rem;
  break-inside: avoid;
}
@media (max-width: 37.5rem) {
  .info-list {
    columns: 1;
  }
}

/* MAPPA */
.map-container {
  max-width: 50rem;
  margin: 0 auto;
  border-radius: 0.625rem;
  overflow: hidden;
  box-shadow: 0 0 0.625rem rgba(0,0,0,0.1);
  margin: 2rem;
}

/* CASE SINGOLE */
.single-house {
  max-width: 50rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
.house-header h1 {
  font-size: 2rem;
  margin-bottom: 0.3125rem;
}
.house-subtitle {
  font-style: italic;
  color: #666;
}
.house-image img {
  width: 100%;
  height: auto;
  border-radius: 0.625rem;
  margin: 1.25rem 0;
}
.house-description {
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.house-info ul {
  list-style: none;
  padding-left: 0;
  font-size: 0.875rem;
  columns: 2;
  column-gap: 2.5rem;
}
.house-info li {
  margin-bottom: 0.625rem;
}

/* GALLERIA */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 0.9375rem;
}
.gallery-grid img {
  width: 100%;
  border-radius: 0.5rem;
}

/* CONTATTI */
.home-contacts {
  max-width: 50rem;
  margin: 1.875rem auto;
  padding: 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
  background-color: #f5f5f5;
  border-radius: 0.5rem;
  text-align: center;
}
.home-contacts a {
  color: #333;
  text-decoration: none;
}

/* FIBRA */
.highlight-fibra {
  max-width: 50rem;
  margin: 1.875rem auto;
  padding: 0.9375rem 1.25rem;
  background-color: #e2f7e1;
  border-left: 0.3125rem solid #4CAF50;
  font-size: 1rem;
  border-radius: 0.375rem;
}

/* SINGOLA CASA */
.single-casa {
  padding: 2.5rem 1.25rem;
  max-width: 60rem;
  margin: auto;
}

.hero-casa h1 {
  font-size: 2.2em;
  margin-bottom: 1.25rem;
  text-align: center;
}

.casa-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-bottom: 1.875rem;
}

.casa-info .info-box ul {
  list-style: none;
  padding: 0;
}
.casa-info .info-box li {
  padding: 0.375rem 0;
}

.casa-galleria {
  margin-top: 2.5rem;
}

.casa-caratteristiche ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.casa-caratteristiche li {
  margin-bottom: 0.5em;
  line-height: 1.6;
  font-size: 1rem;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 0.3em;
  display: flex;
  gap: 0.5rem;
}
.casa-caratteristiche ul li strong {
  font-weight: 700;
  margin-right: 0.375rem;
  min-width: 15.625rem;
}
.casa-caratteristiche ul li {
  font-weight: 400;
  color: #0e4b27;
}

/* GALLERIA */
.galleria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 0.9375rem;
}
.galleria-item img {
  width: 100%;
  height: auto;
  border-radius: 0.375rem;
  transition: transform 0.3s ease;
}
.galleria-item img:hover {
  transform: scale(1.03);
}
.galleria-item {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.casa-galleria .galleria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.625rem;
  margin-top: 1em;
}
.casa-galleria .galleria-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 0 0.25rem rgba(0,0,0,0.1);
}

/* CENTRATURA COMUNE */
.container {
  max-width: 50rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* TITOLO CON ICONA */
.titolo-casa-con-icona {
  display: flex;
  align-items: center;
  gap: 0.9375rem;
  margin-bottom: 1.25rem;
}
.titolo-casa-con-icona img.leaf-icon {
  max-height: 6.25rem;
  width: auto;
  height: auto;
  display: inline-block;
}
.titolo-casa-con-icona h1.titolo-casa {
  font-size: 1.8em;
  margin: 0;
  line-height: 1.2;
}
.leaf-icon {
  width: 2.5rem;
  height: auto;
}
.titolo-casa {
  font-size: 2rem;
  margin: 0;
}

/* BOX INFO */
.casa-info .info-box {
  margin-top: 1.875rem;
}

/* LIGHTBOX */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}
#lightbox img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 1.25rem #fff;
}
.lightbox-close {
  position: absolute;
  top: 1.875rem;
  right: 1.875rem;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}
.lightbox-visible {
  visibility: visible;
  opacity: 1;
}
.lightbox-hidden {
  visibility: hidden;
  opacity: 0;
}

.casa-item {
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.casa-item:hover {
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}
.casa-item img {
  width: 100%;
  height: auto;
  display: block;
}
.casa-item h2 {
  padding: 12px;
  font-size: 1.3rem;
  color: #0e4b27;
  text-align: center;
}

.archive-case .titolo-centrato {
  text-align: center;
  font-size: 2.5rem;
  margin: 60px 0 30px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.casa-box {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.casa-box:hover {
  transform: scale(1.02);
}

.casa-thumb {
  width: 100%;
  height: auto;
  display: block;
}

.casa-info-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  font-size: 1rem;
  font-weight: 600;
  background-color: #f7f7f7;
}

.casa-info-box .casa-icona {
  width: 28px;
  height: auto;
}

.casa-info-box .casa-codice {
  color: #4e3620;
  font-weight: bold;
}

.casa-info-box .casa-nome {
  color: #0e4b27;
}

.titolo-centrato {
  text-align: center;
  font-size: 2.2rem;
  margin: 60px 0 30px;
  color: #4e3620;
}

.case-elenco {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  max-width: 800px;
  margin: auto;
}

.casa-item {
  text-align: center;
}

.casa-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.08);
  margin-bottom: 15px;
}

.casa-didascalia {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0e4b27;
}

.casa-foglia {
  width: 40px;
  height: auto;
  display: inline-block;
}

.casa-codice {
  font-weight: bold;
  color: #4e3620;
}

.casa-nome {
  font-style: italic;
}
.griglia-case {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.card-casa {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-casa:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.immagine-casa {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.info-casa {
  text-align: center;
}

.icona-casa {
  width: 120px;
  height: auto;
  margin-bottom: 0.5rem;
}

.nome-casa {
  font-size: 1.25rem;
  text-align: center;
  color: #333;
}
/* Container genitore per posizionare submenu */
.main-menu > li.menu-item-has-children {
  position: relative;
}

/* Nascondi il submenu di default */
.main-menu li.menu-item-has-children > ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgb(171, 185, 179);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 0.5em 0;
  min-width: 180px;
  z-index: 9999;
  border-radius: 4px;
}

/* Mostra il submenu quando il genitore è hoverato */
.main-menu li.menu-item-has-children:hover > ul.sub-menu {
  display: block;
}

/* Voci submenu */
.main-menu li.menu-item-has-children > ul.sub-menu > li {
  padding: 0;
  white-space: nowrap;
}

/* Link submenu */
.main-menu li.menu-item-has-children > ul.sub-menu > li > a {
  display: block;
  padding: 0.5em 1em;
  color: #0e4b27;
  text-decoration: none;
}

/* Hover link submenu */
.main-menu li.menu-item-has-children > ul.sub-menu > li > a:hover {
  background-color: #eee;
  color: #1c914d;
}
/* Font più piccolo nel sottomenu */
.main-menu li.menu-item-has-children > ul.sub-menu > li > a {
  font-size: 0.9em; /* oppure ad esempio 14px */
}
.lista-dintorni {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.lista-dintorni li {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.lista-dintorni a {
  color: #0a5397;
  text-decoration: underline;
}

.lista-dintorni a:hover {
  text-decoration: none;
}
/* Contenitore principale */
.sezione-dintorni {
  padding: 2rem 1rem;
  background-color: #f8f5f0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
}

/* Lista dei servizi */
.lista-dintorni {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.lista-dintorni li {
  position: relative;
  margin-bottom: 1.2rem;
  padding-left: 1.8rem;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* Icona decorativa per ogni punto della lista */
.lista-dintorni li::before {
  content: "🌿";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 1rem;
}

/* Titoli di sezione (h2) */
.sezione-dintorni h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #3c2d1c;
  border-left: 4px solid #8d7b5a;
  padding-left: 0.75rem;
  font-weight: 600;
}

/* Link */
.lista-dintorni a {
  color: #5a3e1b;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.lista-dintorni a:hover {
  color: #a66c2b;
  text-decoration: none;
}

/* Responsive spacing */
@media (min-width: 768px) {
  .sezione-dintorni {
    padding: 3rem 2rem;
  }

  .lista-dintorni li {
    font-size: 1.15rem;
  }

  .sezione-dintorni h2 {
    font-size: 1.7rem;
  }
}

#torna-su {
  position: fixed;
  top: 20px;
  background-color: #5a3e1b;
  color: white;
  border: none;
  font-size: 1.4rem;
  border-radius: 50%;
  cursor: pointer;
  height: 36px;
  width: 36px;
  line-height: 36px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  padding: 0;
}

#torna-su:hover {
  background-color: #a66c2b;
}
/* Contenitore dell'indice */
.indice-dintorni {
  background-color: #f3efe9;
  border-left: 4px solid #8d7b5a;
  padding: 1.5rem 1rem;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.04);
}

/* Titolo dell'indice */
.indice-dintorni h2 {
  font-size: 1.4rem;
  color: #3c2d1c;
  margin-bottom: 1rem;
}

/* Lista dei link */
.indice-dintorni ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

/* Elementi della lista */
.indice-dintorni li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
}

/* Icona decorativa */
.indice-dintorni li::before {
  content: "👉";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
  color: #5a3e1b;
}

/* Link dell’indice */
.indice-dintorni a {
  text-decoration: none;
  color: #5a3e1b;
  font-weight: 500;
  transition: color 0.2s ease;
}

.indice-dintorni a:hover {
  color: #a66c2b;
  text-decoration: underline;
}

/* EVENTI PRIVATI */
.griglia-eventi {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

/* SINGOLO EVENTO */
.card-evento {
  background-color: rgb(202, 218, 211);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* TITOLO EVENTO */
.card-evento h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
  color: #3c2d1c;
}

/* PERIODO */
.periodo-evento {
  font-style: italic;
  color: #5a3e1b;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

/* TESTI */
.card-evento p {
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* BOTTONE */
.bottone-evento {
  display: inline-block;
  margin-top: 1rem;
  background-color: #5a3e1b;
  color: white;
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.bottone-evento:hover {
  background-color: #a66c2b;
}

/* INTRO EVENTI */
.intro-eventi {
  background-color: #f3efe9;
  border-left: 5px solid #8d7b5a;
  padding: 2.5rem 2rem;
  margin: 2.5rem 0 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.testo-intro-eventi {
  font-size: 1.35rem;
  line-height: 1.8;
  color: #3c2d1c;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

/* Responsive */
@media (min-width: 768px) {
  .indice-dintorni {
    padding: 2rem;
  }

  .indice-dintorni h2 {
    font-size: 1.6rem;
  }

  .indice-dintorni li {
    font-size: 1.1rem;
  }
}
.sezione-cultura {
  padding: 2rem 1rem;
  background-color: #f8f5f0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
  font-size: 1.2rem;
}