/* CONTAINER */
.container {
  max-width: 1550px;
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.hero.text-light h1, .hero.text-light h2, .hero.text-light h3 {
    color: #ffffff;
    letter-spacing: 0.1em;
    text-align: center;
}
.blog-listing .content-item {
    max-width: 1300px;
}

.responsive-grid-4 {
            display: grid;
            /* Crea 4 colonne su desktop, si adatta fluidamente fino a 1 colonna su mobile */
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            /* Utilizza le variabili d'ambiente di Blades per la spaziatura coerente */
            gap: var(--blades-spacing, 1rem); 
            margin-bottom: var(--blades-spacing, 1rem);
        }

.boxed-img {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,.2), 3px 4px 20px 4px rgba(0,0,0,.33);
}
.item-image {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,.2), 3px 4px 20px 4px rgba(0,0,0,.33);
}

/* Griglia foto */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

/* Lazy loading blur-up */
.lazy-img {
  filter: blur(10px);
  transition: filter 0.5s ease;
}
.lazy-img[data-loaded="true"] {
  filter: blur(0);
}

/* Anti-save overlay */
.anti-save {
  position: relative;
}
.anti-save::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

/* ==========================================================
   Fotogalleria viaggi — Nazioni / Città / Foto
   Da aggiungere in fondo al custom.css del tuo tema
   (se il file esiste già con altro contenuto, incolla solo questo
   blocco alla fine, non sovrascrivere il resto)
   ========================================================== */
.tg-section {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.tg-page-header {
    margin-bottom: 2rem;
}

.tg-back {
    margin-bottom: 0.5rem;
}

.tg-back a {
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.75;
}

.tg-date {
    display: inline-block;
    margin: 0.3rem 0 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.7;
}

.tg-card-date {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.55;
    margin-bottom: 0.3rem;
}

.tg-intro,
.tg-text {
    max-width: 100%;
}

.tg-subtitle {
    margin: 0.3rem 0 0;
    font-size: 1.15rem;
    opacity: 0.75;
}

.tg-region-group {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tg-region-card {
    margin-bottom: 0.25rem;
}

.tg-subgrid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 0.25rem;
}

/* ---------- Griglia card (Nazioni / Città) ---------- */

.tg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.75rem;
}
.tg-citygrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.75rem;
}

/* @media (min-width: 1200px) {
    .tg-grid {
        grid-template-columns: repeat(4, 1fr);
    }
} */

.tg-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: var(--tg-card-bg, rgba(127, 127, 127, 0.06));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tg-card:hover,
.tg-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.tg-card-thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(127, 127, 127, 0.15);
}

.tg-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: tg-fade-in 0.35s ease both;
}

.tg-card-thumb-empty {
    width: 100%;
    height: 100%;
}

.tg-card-body {
    padding: 1rem 1.1rem 1.2rem;
}

.tg-card-body h2 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.tg-card-body p {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.tg-card-count {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.6;
}

/* ---------- Griglia foto (pagina Città) ---------- */

.tg-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.8rem;
    margin-top: 1.5rem;
}

/* @media (min-width: 1200px) {
    .tg-photo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
} */

.tg-photo-link {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
}

.tg-photo-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
    animation: tg-fade-in 0.4s ease both;
}

.tg-photo-link:hover img,
.tg-photo-link:focus-visible img {
    transform: scale(1.05);
}

.tg-empty {
    opacity: 0.7;
    font-style: italic;
}

@keyframes tg-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Frecce di navigazione del lightbox Featherlight (plugin ufficiale Grav) */
.featherlight .featherlight-previous,
.featherlight .featherlight-next {
    font-size: 2rem;
}
