/* =============================================
   Valle Soana – Bootstrap Custom Theme
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* --- CSS Variables (Bootstrap override + custom) --- */
:root {
  --vs-green:       #2d5a50;
  --vs-green-light: #3c7a6e;
  --vs-green-dark:  #1e3a35;
  --vs-accent:      #3c7a6e;
  --vs-accent-h:    #962d22;
  --vs-bg:          #f4f2ee;
  --vs-text:        #2c2c2c;
  --vs-muted:       #6c757d;
  --vs-border:      #dee2e6;
  --vs-white:       #ffffff;
  --sans:     system-ui, sans-serif;
  --serif:    "Open Sans", sans-serif;
  --display:  'Playfair Display', Georgia, serif;

  /* Bootstrap overrides */
  --bs-primary:           #2d5a50;
  --bs-primary-rgb:       45, 90, 80;
  --bs-link-color:        #3c7a6e;
  --bs-link-hover-color:  #1e3a35;
  --bs-body-font-family:  'Source Sans 3', sans-serif;
  --bs-body-bg:           #f4f2ee;
  --bs-body-color:        #2c2c2c;
  --bs-border-radius:     4px;
  --bs-font-sans-serif:   'Source Sans 3', sans-serif;
}

/* =============================================
   BASE
   ============================================= */
body { font-size: 1rem; line-height: 1.65; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
}

a {color:var(--vs-text); transition: color .2s;}
a:hover {color:var(--vs-green); transition: color .2s;}

img { max-width: 100%; height: auto; }

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--vs-green);
  --bs-btn-border-color: var(--vs-green-light);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--vs-green);
  --bs-btn-hover-border-color: var(--vs-green-light);
  --bs-btn-focus-shadow-rgb: 49,132,253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--vs-green-light);
  --bs-btn-active-border-color: var(--vs-green-light);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--vs-green);
  --bs-btn-disabled-border-color: var(--vs-green);
}

/* =============================================
   TOP BAR
   ============================================= */
.vs-topbar {
  background: var(--vs-green);
  color: #fff;
  font-size: inherit;
  padding: 6px 0;
}
.vs-topbar a { color: #fff; text-decoration: none; }
.vs-topbar a:hover { color: #eee; }
.vs-topbar .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  font-size: 13px;
  transition: background .2s, color .2s;
}
.vs-topbar .social-link:hover {
  background: var(--vs-green-light);
  color: #fff;
}

/* =============================================
   HEADER
   ============================================= */
.vs-header {
  background: var(--vs-white);
  background-image: url('https://vallesoana.it/wp-content/uploads/2020/07/cropped-DSC00802_1620_406.jpg');
  background-size: cover;
  background-position: center top;
  min-height: 110px;
  display: flex;
  align-items: center;
  padding: 20px 0;
}
.vs-header .site-logo img {
  max-height: 75px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
/* ─────────────────────────────────────────────────────────────────────────
   header-bg.css
   Stile della testata con background randomizzato e logo sovrapposto.
   Adatta le variabili nella sezione :root al tuo progetto.
───────────────────────────────────────────────────────────────────────── */

:root {
  --header-height:       380px;   /* altezza della testata              */
  --header-fade-ms:      1200ms;  /* deve corrispondere a JS fadeDuration */
  --header-overlay:      rgba(0, 0, 0, 0.25); /* scurisce il bg per leggibilità */
  --logo-max-width:      420px;
}

/* ── TESTATA ─────────────────────────────────────────────────────────── */

#site-header {
  position: relative;
  width: 100%;
  height: var(--header-height);
  overflow: hidden;

  /* centra il logo */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── LAYER BACKGROUND (×2 per crossfade) ────────────────────────────── */

.header-bg-layer {
  position: absolute;
  inset: 0;                         /* top/right/bottom/left: 0 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0;
  transition: opacity var(--header-fade-ms) ease-in-out;

  /* overlay semitrasparente per aumentare il contrasto col logo */
  z-index: 0;
}

.header-bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--header-overlay);
}

/* ── LOGO ────────────────────────────────────────────────────────────── */

.header-logo-wrap {
  position: relative;   /* sopra i layer bg */
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo-wrap img,
.header-logo-wrap svg {
  max-width: var(--logo-max-width);
  width: 100%;
  height: auto;

  /* eventuali ombre per leggibilità su qualsiasi sfondo */
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5));
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  :root {
    --header-height:    300px;
    --logo-max-width:   200px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height:    220px;
    --logo-max-width:   150px;
  }
}


/* =============================================
   NAVBAR
   ============================================= */
.vs-navbar {
  background: var(--vs-green-dark) !important;
}
.vs-navbar .navbar-brand { display: none; } /* logo in header */
.vs-navbar .nav-link {
  color: #dde8e6 !important;
  font-size: .94rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 12px 13px !important;
  transition: background .2s, color .2s;
}
.vs-navbar .nav-link:hover,
.vs-navbar .nav-link:focus,
.vs-navbar .nav-item.active > .nav-link {
  background: #3a6b60;
  color: #fff !important;
}
.vs-navbar .dropdown-menu {
  background: #2a4f47;
  border: none;
  border-top: 2px solid var(--vs-green-light);
  border-radius: 0 0 4px 4px;
  min-width: 210px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  padding: 4px 0;
}
.vs-navbar .dropdown-item {
  color: #cce0dc;
  font-size: 1rem;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .15s, color .15s;
}
.vs-navbar .dropdown-item:hover,
.vs-navbar .dropdown-item:focus {
  background: #3a6b60;
  color: #fff;
}
.vs-navbar .dropdown-toggle::after { opacity: .6; }

/* Nested dropdowns */
.vs-navbar .dropdown-submenu { position: relative; }
.vs-navbar .dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  border-top: 2px solid var(--vs-green-light);
  border-left: none;
}
.vs-navbar .dropdown-submenu > .dropdown-item::after {
  content: ' ›';
  float: right;
  opacity: .5;
}

/* Search button in navbar */
.vs-navbar .btn-nav-search {
  background: none;
  border: none;
  color: #dde8e6;
  padding: 10px 14px;
  font-size: 15px;
  cursor: pointer;
  transition: color .2s;
}
.vs-navbar .btn-nav-search:hover { color: #fff; }
.vs-navbar .navbar-toggler {
  border-color: rgba(255,255,255,.3);
}
.vs-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.search-reset {
  background: none; border: none;
  color: var(--ink-soft);
  padding: .55rem .75rem;
  cursor: pointer;
  font-size: .9rem;
  transition: color .2s;
}
.search-reset:hover { color: var(--vs-accent); }

/* =============================================
   WEBCAM STRIP
   ============================================= */
.vs-webcam-strip {
  background: #162520;
  border-bottom: 2px solid var(--vs-green-light);
  padding: 10px 0;
}
.vs-webcam-strip .strip-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vs-green-light);
  margin-bottom: 6px;
}
.webcam-scroll-wrapper { overflow: hidden; }
.webcam-scroll-track {
  display: flex;
  gap: 8px;
  transition: transform .4s ease;
}
.webcam-card {
  flex: 0 0 calc(20% - 7px);
  text-align: center;
}
.webcam-card a { display: block; }
.webcam-card img {
  width: 100%;
  height: 75px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.08);
  transition: border-color .2s;
}
.webcam-card img:hover { border-color: var(--vs-green-light); }
.webcam-card span {
  display: block;
  font-size: 10.5px;
  color: #7aada6;
  margin-top: 3px;
}
.webcam-ctrl button {
  background: rgba(255,255,255,.08);
  border: none;
  color: #7aada6;
  padding: 3px 12px;
  border-radius: 2px;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s;
}
.webcam-ctrl button:hover { background: var(--vs-green-light); color: #fff; }

#main-content .green{
  color: var(--vs-green);
}
#main{
  background: var(--cream);
}

/* =============================================
   POST CARDS
   ============================================= */
.post-card {
  background: var(--vs-white);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  margin-bottom: 16px;
  transition: box-shadow .25s, transform .25s;
}
.post-card:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,.13);
  transform: translateY(-2px);
}
.post-card .card-img-col {
  flex: 0 0 140px;
  overflow: hidden;
}
.post-card .card-img-col img {
  width: 100%;
  height: auto; /*100%;*/
  min-height: 130px;
  object-fit: contain;
  transition: transform .4s ease;
  display: block;
  margin-top: 1.5rem;
}
.post-card:hover .card-img-col img { transform: scale(1.05); }
.post-card .card-body-col {
  flex: 1;
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-card .post-category a {
  display: inline-block;
  background: var(--vs-green-light);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 8px;
  border-radius: 2px;
  text-decoration: none;
}
.post-card .post-meta-info {
  font-size: 12px;
  color: var(--vs-muted);
  margin: 5px 0;
}
.post-card .post-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
}
.post-card .post-title a {
  color: var(--vs-text);
  text-decoration: none;
  transition: color .2s;
}
.post-card .post-title a:hover { color: var(--vs-green-light); }
.post-card .post-excerpt {
  font-size: 1rem;
  color: var(--vs-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}
.post-card .read-more-link {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--vs-green-light);
  text-decoration: none;
  margin-top: auto;
  transition: letter-spacing .2s;
}
.post-card .read-more-link::after { content: ' →'; }
.post-card .read-more-link:hover { letter-spacing: .09em; }

/* =============================================
   PAGINATION
   ============================================= */
.vs-pagination .page-link {
  color: var(--vs-green-light);
  border-color: var(--vs-border);
  font-size: 14px;
  font-weight: 600;
}
.vs-pagination .page-item.active .page-link {
  background-color: var(--vs-green-light);
  border-color: var(--vs-green-light);
  color: #fff;
}
.vs-pagination .page-link:hover {
  background: var(--vs-green-light);
  border-color: var(--vs-green-light);
  color: #fff;
}
.vs-pagination .page-link:focus { box-shadow: 0 0 0 .25rem rgba(60,122,110,.25); }

/* =============================================
   SIDEBAR WIDGETS
   ============================================= */
.vs-widget {
  background: var(--vs-white);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  padding: 18px 18px 16px;
  margin-bottom: 18px;
}
.vs-widget-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--vs-text);
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--vs-green-light);
}
.vs-widget .meteo-iframe {
  width: 100%;
  height: 260px;
  border: none;
  border-radius: 3px;
  display: block;
}
.vs-widget .meteo-credit {
  font-size: 11px;
  text-align: right;
  margin-top: 4px;
  color: var(--vs-muted);
}

/* Events */
.vs-event-item {
  border-left: 3px solid var(--vs-green-light);
  padding: 7px 10px;
  background: #f5faf9;
  border-radius: 0 3px 3px 0;
  margin-bottom: 8px;
}
.vs-event-date {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--vs-green-light);
  margin-bottom: 2px;
}
.vs-event-title { font-size: 13px; line-height: 1.4; }
.vs-event-title a { color: var(--vs-text); text-decoration: none; }
.vs-event-title a:hover { color: var(--vs-green-light); }

/* Videos */
.video-thumb-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  margin-bottom: 10px;
}
.video-thumb-wrap img { width: 100%; height: 120px; object-fit: cover; display: block; }
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.32);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}
.video-thumb-wrap:hover .video-overlay { opacity: 1; }
.play-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--vs-green-light);
  font-size: 15px;
}
/* ==========================================================================
   YOUTUBE SIDEBAR WIDGET
   ========================================================================== */

/* Icona SVG di YouTube */
.yt-widget__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Lista dei video */
.yt-widget__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px; /* Spazio tra un video e l'altro */
}

/* Singolo elemento della lista */
.yt-widget__item {
  margin: 0;
  padding: 0;
}

/* Link che avvolge miniatura e titolo */
.yt-widget__link {
  display: flex;
  flex-direction: column; /* Disposizione verticale (miniatura sopra, testo sotto) */
  gap: 10px;
  text-decoration: none;
  color: inherit;
  outline: none;
}

/* Contenitore della miniatura (gestisce il posizionamento del tasto play) */
.yt-widget__thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Mantiene le proporzioni video corrette */
  background-color: #000000;
  border-radius: 8px;
  overflow: hidden;
}

/* Immagine di anteprima */
.yt-widget__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Pulsante PLAY nascosto di default al centro del video */
.yt-widget__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(255,255,255,.9);
  color: var(--vs-green-light);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding-left: 3px; /* Centratura ottica del triangolo */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

/* --- EFFETTI HOVER --- */
.yt-widget__link:hover .yt-widget__thumb,
.yt-widget__link:focus .yt-widget__thumb {
  transform: scale(1.04);
  opacity: 0.8; /* Scurisce la foto sullo sfondo nero del contenitore */
}

.yt-widget__link:hover .yt-widget__play,
.yt-widget__link:focus .yt-widget__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.yt-widget__link:hover .yt-widget__video-title,
.yt-widget__link:focus .yt-widget__video-title {
  color: var(--vs-green); /* Il titolo diventa rosso YouTube al passaggio del mouse */
}

/* Titolo testuale del video */
.yt-widget__video-title {
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 550;
  color: #2c3e50;
  /* Tronca il testo a 2 righe se è troppo lungo */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

/* Bottone Call to Action finale ("Tutti i video") */
.yt-widget__cta {
  display: block;
  text-align: center;
  margin-top: 20px;
  padding: 10px;
  background-color: #f8f9fa;
  color: #0f0f0f;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid #e1e8ed;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.yt-widget__cta:hover,
.yt-widget__cta:focus {
  background-color: #f1f1f1;
  border-color: #ccd6dd;
}

/* Messaggio di errore */
.yt-widget__error {
  font-size: 0.9rem;
  color: #657786;
  text-align: center;
  margin: 20px 0;
}

/* ==========================================================================
 SUPPORTO DARK MODE (Opzionale: si attiva se l'utente usa il tema scuro)
 ========================================================================== */
@media (prefers-color-scheme: dark) {
  .vs-widget {
      background-color: #1f1f1f;
      border-color: #2f2f2f;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  }
  .vs-widget-title {
      color: #ffffff;
  }
  .yt-widget__video-title {
      color: #e1e8ed;
  }
  .yt-widget__cta {
      background-color: #2f2f2f;
      color: #ffffff;
      border-color: #3f3f3f;
  }
  .yt-widget__cta:hover,
  .yt-widget__cta:focus {
      background-color: #3f3f3f;
      border-color: #4f4f4f;
  }
}

/* =============================================
   MINI CALENDAR
   ============================================= */
#mini-calendar { margin-bottom: 14px; font-size: 13px; }
.cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-title { font-weight: 700; color: var(--vs-text); font-size: 13px; }
.cal-nav-btn {
  background: none;
  border: 1px solid var(--vs-border);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 13px;
  color: var(--vs-muted);
  transition: all .15s;
}
.cal-nav-btn:hover { background: var(--vs-green-light); border-color: var(--vs-green-light); color: #fff; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day-hdr { text-align: center; font-size: 9.5px; font-weight: 700; color: var(--vs-muted); padding: 3px 0; text-transform: uppercase; }
.cal-cell { text-align: center; padding: 4px 2px; border-radius: 2px; font-size: 12px; position: relative; }
.cal-cell.today { background: var(--vs-green-light); color: #fff; font-weight: 700; border-radius: 50%; }
.cal-cell.has-event { font-weight: 700; color: var(--vs-green-light); }
.cal-cell.today.has-event { color: #fff; }
.cal-dot { position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--vs-green-light); }
.cal-cell.today .cal-dot { background: rgba(255,255,255,.7); }

/* =============================================
   ARTICLE
   ============================================= */

   .breadcrumb-bar { background: #fff; border-bottom: 1px solid var(--rule); padding: .6rem 0; font-family: var(--sans); font-size: 1rem; }
   .breadcrumb-bar a { color: var(--ink-soft); text-decoration: none; }
   .breadcrumb-bar a:hover { color: var(--vs-accent); }
   .breadcrumb-bar .sep { color: #ccc; margin: 0 .4rem; }
   .art-hero { max-width: 100%; height: auto; object-fit: cover; display: block; margin:auto; }
   .art-hero-placeholder { height: 180px; background: linear-gradient(135deg, #f0ede8, #e8e3dd); }
   .art-wrapper { max-width: 100%/*760px*/; margin: 0 auto; padding: 2.5rem 1rem 3rem; }
   .art-cat-label { display: inline-block; font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--vs-accent); text-decoration: none; margin-bottom: .75rem; }
   .art-title { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; letter-spacing: -.03em; margin: 0 0 1.25rem; }
   .art-byline { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.25rem; padding-bottom: 1.25rem; border-bottom: 2px solid var(--rule); margin-bottom: 2rem; font-family: var(--sans); font-size: .82rem; color: var(--ink-soft); }
   .art-byline strong { color: var(--ink); }
   .art-content, #main { font-size: 1.2rem; line-height: 1.85; }
   .art-content p { margin-bottom: 1.4rem; }
   .art-content h2 { font-family: var(--display); font-size: 1.55rem; font-weight: 700; margin: 2rem 0 .75rem; }
   .art-content h3 { font-family: var(--display); font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
   .art-content ul, .art-content ol { padding-left: 1.5rem; margin-bottom: 1.4rem; }
   .art-content li { margin-bottom: .4rem; }
   .art-content a { color: var(--vs-accent); }
   .art-content a:hover { color: var(--vs-accent-h); }
   .art-content strong { font-weight: 600; }
   .evento-box { background: #f5faf9; border: 1px solid var(--vs-accent); border-left: 4px solid var(--vs-accent); border-radius: 8px; padding: 1rem 1.25rem; margin: 0 0 2rem; font-family: var(--sans); font-size: .88rem; }
   .share-bar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: 1.5rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 2.5rem 0; }
   .share-label { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
   .share-btn { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--sans); font-size: .8rem; font-weight: 600; padding: .4rem .9rem; border-radius: 6px; text-decoration: none; transition: opacity .2s, transform .1s; }
   .share-btn:hover { opacity: .85; transform: translateY(-1px); color:#222; }
   .share-fb { background: #1877f2; color: #fff; } .share-tw { background: #555; color: #fff; }
   .share-wa { background: #25d366; color: #fff; } .share-lk { background: #0a66c2; color: #fff; }
   .share-cp { background: #f1f5f9; color: var(--ink); border: 1px solid var(--rule); }
   .gallery-section { margin: 2.5rem 0; }
   .gallery-section h3 { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1rem; }
   .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .5rem; }
   .gallery-item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; border: 1px solid var(--rule); transition: opacity .2s, transform .2s; }
   .gallery-item:hover { opacity: .85; transform: scale(.98); }
   .gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
   .allegati-section { margin: 2rem 0; }
   .allegati-section h3 { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .75rem; }
   .allegato-row { display: flex; align-items: center; gap: .75rem; padding: .65rem .85rem; background: #fff; border: 1px solid var(--rule); border-radius: 8px; margin-bottom: .5rem; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; font-family: var(--sans); font-size: .87rem; }
   .allegato-row:hover { border-color: #c5bdb5; box-shadow: 0 2px 8px rgba(0,0,0,.06); color: var(--vs-accent); }
   .allegato-row i { font-size: 1.3rem; color: var(--vs-accent); flex-shrink: 0; }
   .allegato-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
   .allegato-size { color: #999; font-size: .75rem; flex-shrink: 0; }
   .correlati-section { border-top: 3px double var(--rule); padding-top: 2.5rem; margin-top: 3rem; }
   .correlati-section h2 { font-family: var(--display); font-size: 1.4rem; font-weight: 700; margin-bottom: 1.5rem; }
   .correlato-card { display: flex; gap: .85rem; align-items: center; text-decoration: none; color: var(--ink); padding: .75rem 0; border-bottom: 1px solid var(--rule); transition: color .2s; }
   .correlato-card:last-child { border-bottom: none; }
   .correlato-card:hover { color: var(--vs-accent); }
   .correlato-thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; flex-shrink: 0; border: 1px solid var(--rule); }
   .correlato-placeholder { width: 70px; height: 70px; background: #f0ede8; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #c5bdb5; font-size: 1.5rem; border: 1px solid var(--rule); }
   .correlato-title { font-family: var(--display); font-size: .95rem; font-weight: 700; line-height: 1.3; margin-bottom: .2rem; }
   .correlato-date { font-family: var(--sans); font-size: .75rem; color: #999; }
   .site-footer { background: var(--ink); color: rgba(255,255,255,.55); font-family: var(--sans); font-size: .8rem; padding: 2rem 0; margin-top: 4rem; text-align: center; }
   .site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
   .site-footer a:hover { color: #fff; }
   .mfp-bg { background: rgba(10,10,10,.92); }
   @media (max-width: 576px) { .art-wrapper { padding: 1.5rem .75rem 2rem; } .art-title { font-size: 1.7rem; } .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
    

/* =============================================
   FOOTER
   ============================================= */
.vs-footer {
  background: var(--vs-green-dark);
  color: #b0cec8;
  padding-top: 40px;
}
.vs-footer h5 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.15);
  margin-bottom: 14px;
}
.vs-footer a { color: #8ab8b0; text-decoration: none; transition: color .2s; }
.vs-footer a:hover { color: #fff; }
.vs-footer ul { padding: 0; list-style: none; }
.vs-footer ul li { margin-bottom: 5px; }
.vs-footer ul li::before { content: '› '; opacity: .5; }
.vs-footer p {line-height: 1.7; }
.vs-footer .social-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #8ab8b0;
  font-size: 15px;
  transition: background .2s, color .2s;
  text-decoration: none;
}
.vs-footer .social-icon:hover { background: var(--vs-green-light); color: #fff; }
.vs-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 14px 0;
  margin-top: 32px;
  font-size: 0.8rem;
  opacity: .55;
}

/* =============================================
   SEARCH OVERLAY
   ============================================= */
.vs-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.vs-search-overlay.active { opacity: 1; pointer-events: auto; }
.vs-search-overlay .search-inner { width: 90%; max-width: 540px; position: relative; }
.vs-search-overlay .form-control {
  border-radius: 4px 0 0 4px;
  border: none;
  font-size: 17px;
  padding: 13px 18px;
  font-family: 'Source Sans 3', sans-serif;
}
.vs-search-overlay .btn-search-submit {
  background: var(--vs-green-light);
  border: none;
  color: #fff;
  padding: 0 20px;
  font-size: 17px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}
.vs-search-overlay .btn-search-close {
  position: absolute;
  top: -52px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  opacity: .8;
}
.vs-search-overlay .btn-search-close:hover { opacity: 1; }

/* =============================================
   BACK TO TOP
   ============================================= */
.vs-back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 40px; height: 40px;
  background: var(--vs-green-light);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity .3s, transform .3s;
  z-index: 500;
  text-decoration: none;
}
.vs-back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.vs-back-to-top:hover { background: var(--vs-green-dark); color: #fff; }

.mfp-title {
  text-align: center;
}

/* =============================================
   RESPONSIVE TWEAKS
   ============================================= */
@media (max-width: 767.98px) {
  .post-card { flex-direction: column; }
  .post-card .card-img-col { flex: 0 0 auto; }
  .post-card .card-img-col img { min-height: 180px; height: 180px; object-fit: none;}

  .webcam-card { flex: 0 0 calc(33.33% - 6px); }

  .vs-header { min-height: 80px; }
  .vs-header .site-logo img { max-height: 52px; }
}

@media (max-width: 479.98px) {
  .webcam-card { flex: 0 0 calc(50% - 5px); }
}

/* =============================================
   PRINT
   ============================================= */
@media print {
  .vs-topbar, .vs-navbar, .vs-webcam-strip,
  #sidebar, .vs-footer, .vs-back-to-top { display: none !important; }
  .post-card { box-shadow: none; border: 1px solid #ccc; }
}


/*
 Theme Name:   ValleSoana (GeneratePress Child)
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       micheleur * 2020
 Author URI:   https://www.vi-nova.eu/
 Template:     generatepress
 Version:      0.1
*/
.main-navigation, .main-navigation ul ul {
    background-color: var(--vs-green);
}
.main-navigation .main-nav ul li a {
    padding-left: 10px;
}
.menu-item-has-children .dropdown-menu-toggle {
    padding-right: 10px;
    padding-left: 5px;
}

.tar {
	text-align: right;
}

.top-bar{
    background-color: var(--vs-green); 
    color:#fff;
    padding:0.3em 0;
    font-size: 1rem;
}
.top-bar a{color:#fff;}
.top-bar .fa{ font-size: 1.5rem; }
.entry-meta a:hover {
    color: #3c9aa6;
}

.inside-header {
    padding: 60px 0;
}
.inside-sidebar #custom_html-2{
 background-color: #ddd;
}
.inside-sidebar h2{
 font-family: 'Roboto', sans-serif;
 margin-bottom: 0px;
 font-weight: 700;
 text-transform: uppercase;
 color: var(--vs-green) !important;
}

.widget-area .widget {
    padding: 24px;
}

.content-area h2{
 font-family: 'Roboto', sans-serif;
 font-size: 1.5rem;
}

#breadcrumbs{
    padding-top: 1.2rem;
    font-size: 0.9em !important;
}

.inside-article .post-image {
    margin: 0;
}

#footer-widgets{
    background-color: var(--vs-green);
}
#footer-widgets a{color:#eee;}
#footer-widgets a:hover{color:#fff;}

hr{margin: 3px 0;}

/* --- webcam styles --- */
ul{
    list-style: none outside none;
    padding-left: 0;
    margin: 0;
}
.webcams .item{
    margin-bottom: 10px;
}
.content-slider li{
    text-align: center;
    color: #FFF;
    padding:15px 5px;
    font-size: 0.95rem;
}
.content-slider li img {height:160px; width:100%;}
.content-slider .webcam-name {
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
}
.content-slider li a{color:#3f3f3f;}
.content-slider li a:hover{color:#000;}
.webcams{
    width: 100%;
    margin-top: 0px;
    background: url("vendor/img/texture-webcam.jpg") no-repeat;
    background-size: cover;
}
.mfp-counter{display: none;}

img {
    opacity: 1;
    transition: opacity 0.3s;
 }
 img[data-src] {
    opacity: 0;
 }


.entry-content { margin: 0.3em 0 0; }

p { margin-bottom: 0.3em; }

#calendar {
    max-width: 900px;
    margin: 0 auto;
  }

#sidebar .fc-left div, #sidebar .fc-left button, #sidebar .fc-right div{
 display: none;
 }
#sidebar .fc-toolbar.fc-header-toolbar {
    margin-top: 0.4rem;
    margin-bottom: 0.1em;
}
#sidebar #simpleCalendar{margin-top:1rem;}
#sidebar #simpleCalendar h2{font-size:1rem;}
#sidebar #simpleCalendar table{font-size:0.8rem;}
#sidebar #simpleCalendar .calendar .event-container{padding:70px 20px;}
#sidebar #simpleCalendar .calendar .event-container .event-wrapper{font-size: 0.9rem;}
#sidebar #simpleCalendar .calendar header .month .year {font-size: 0.9em; font-weight: 100;}
#sidebar #simpleCalendar .calendar .event-container .event, 
#sidebar #simpleCalendar .calendar .day.today,
#sidebar #simpleCalendar .calendar .day.has-event::after{background: var(--vs-green);}
#sidebar #simpleCalendar .calendar .day.has-event,.fc-event, .fc-event-dot{background-color: #81c887 !important;}
.fc-event-container a{color:#123123;}
#sidebar #simpleCalendar .calendar .day:hover { border: 2px solid #faec21;}
#sidebar .fc-day-grid-container{overflow: auto !important; height: auto !important;}

#sidebar .event{
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}
#sidebar .event .event-hour{
    display: none;
}

#sidebar .g-col {
    margin-bottom: 15px !important;
}

/* Gellery*/
.easy-image-gallery a img{
    border-top-right-radius: 0px !important;
}

.ytc_video_container{margin-bottom:1rem;}

#nav-below .nav-previous, #nav-below .nav-next{display: none;}

/* Media query 
@media (min-width: 320px) and (max-width: 1024px) {
    .post-image{display:none;}
}

*/
/* 
  ##Device = Tablets, Ipads (portrait)
  ##Screen = B/w 768px to 1024px
*/

@media (min-width: 768px) and (max-width: 1024px) {
    #sidebar .calendar .day {
    width: 1.95em;
    height: 1.95em;
    }
  }
  
  /* 
    ##Device = Tablets, Ipads (landscape)
    ##Screen = B/w 768px to 1024px
  */
  
  @media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    #sidebar .calendar .day {
        width: 1.95em;
        height: 1.95em;
        }
  }
  
  /* 
    ##Device = Low Resolution Tablets, Mobiles (Landscape)
    ##Screen = B/w 481px to 767px
  */
  
  @media (min-width: 481px) and (max-width: 767px) {
    

    
  }
  
  /* 
    ##Device = Most of the Smartphones Mobiles (Portrait)
    ##Screen = B/w 320px to 479px
  */
  
  @media (min-width: 320px) and (max-width: 480px) {

    
  }
