/* ═══════════════════════════════════════════════════════
   Agamatour Viaggi – Griglia Frontend
   ═══════════════════════════════════════════════════════ */

/* ---------- GRID SECTION HEADER ---------- */
.agamatour-viaggi-section {
    margin: 40px 0;
}
.agamatour-grid-header {
    text-align: center;
    margin-bottom: 30px;
}
.agamatour-grid-title {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    letter-spacing: -.3px;
}
.agamatour-grid-subtitle {
    font-size: 15px;
    color: #64748b;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- GRID LAYOUT ---------- */
.agamatour-viaggi-grid {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

.agamatour-cols-2 { grid-template-columns: repeat(2, 1fr); }
.agamatour-cols-3 { grid-template-columns: repeat(3, 1fr); }
.agamatour-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 991px) {
    .agamatour-cols-3,
    .agamatour-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .agamatour-viaggi-grid { grid-template-columns: 1fr !important; }
}

/* ---------- CARD ---------- */
.agamatour-viaggio-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
    transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
}
.agamatour-viaggio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}

/* ---------- THUMBNAIL (Featured Image) ---------- */
.agamatour-viaggio-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}
.agamatour-viaggio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.agamatour-viaggio-card:hover .agamatour-viaggio-thumb img {
    transform: scale(1.05);
}

/* Badge tipologia */
.agamatour-badges-wrap {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
}
.agamatour-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #fff;
}
.agamatour-badge--tour      { background: #ff0000; }
.agamatour-badge--soggiorno { background: #ff0000; }
.agamatour-badge--aurora { background: #043b87; }

/* Ribbon "Completo" - angolo destro */
.agamatour-ribbon-completo {
    position: absolute;
    top: 20px;
    right: -35px;
    background: #ff0000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 6px 40px;
    transform: rotate(45deg);
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* ---------- BODY ---------- */
.agamatour-viaggio-body {
    padding: 22px 24px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Badge Stato */
.agamatour-viaggio-stati {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.agamatour-stato-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    transition: filter .2s ease, transform .2s ease;
}
a.agamatour-stato-badge:hover {
    filter: brightness(0.92);
    transform: translateY(-1px);
}
/* Colori personalizzati per stato */
.agamatour-stato--finlandia { background: #dbeafe; color: #1e40af; }
.agamatour-stato--norvegia  { background: #fee2e2; color: #991b1b; }
.agamatour-stato--svezia    { background: #fef9c3; color: #854d0e; }
.agamatour-stato--islanda   { background: #e0f2fe; color: #0369a1; }
.agamatour-stato--lapponia  { background: #ede9fe; color: #6d28d9; }

/* Titolo */
.agamatour-viaggio-title {
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 8px;
    font-weight: 700;
}
.agamatour-viaggio-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color .2s;
}
.agamatour-viaggio-title a:hover { color: #2c5aa0; }

/* Excerpt */
.agamatour-viaggio-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 16px;
}

/* ---------- SPECS ---------- */
.agamatour-viaggio-specs {
    list-style: none;
    padding: 0 !important;
    margin: 0 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px !important;
    flex: 1;
}
.agamatour-viaggio-specs li {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #475569;
    gap: 6px;
    min-width: 0; /* Permette troncamento in flex */
    position: relative;
}
.agamatour-spec-icon {
    font-size: 16px;
    color: #94a3b8;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.agamatour-spec-label {
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    flex-shrink: 0;
}
.agamatour-spec-value {
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
/* Tooltip per testo troncato */
.agamatour-spec-value[data-full] {
    cursor: default;
}
.agamatour-spec-value[data-full].is-truncated:hover::after {
    content: attr(data-full);
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 4px;
    background: #1e293b;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.agamatour-spec-value[data-full].is-truncated:hover::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 100%;
    border: 5px solid transparent;
    border-bottom-color: #1e293b;
    margin-top: -6px;
    z-index: 101;
}
/* Spec full-width (occupa 2 colonne) */
.agamatour-viaggio-specs li.agamatour-spec-full {
    grid-column: 1 / -1;
}

/* Mobile: specs in colonna singola */
@media (max-width: 768px) {
    .agamatour-viaggio-specs {
        grid-template-columns: 1fr;
    }
}

/* ---------- LINK ---------- */
.agamatour-viaggio-link {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    align-self: flex-start;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    background: #fff;
}
.agamatour-viaggio-link-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8eef6;
    border-radius: 50%;
    color: #043b87;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    flex-shrink: 0;
}
.agamatour-viaggio-link-icon .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}
.agamatour-viaggio-link:hover {
    border-color: #043b87;
    color: #043b87;
}
.agamatour-viaggio-link:hover .agamatour-viaggio-link-icon {
    background: #043b87;
    color: #fff;
}

/* ---------- NO RESULTS ---------- */
.agamatour-no-viaggi {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 15px;
}

/* ═══════════════════════════════════════════════════════
   Agamatour – Viaggi in Evidenza (Homepage)
   ═══════════════════════════════════════════════════════ */

/* ---------- SEZIONE HEADER ---------- */
.agamatour-evidenza {
    margin: 60px 0;
}
.agamatour-evidenza-header {
    text-align: center;
    margin-bottom: 36px;
}
.agamatour-evidenza-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    letter-spacing: -.3px;
}
.agamatour-evidenza-subtitle {
    font-size: 16px;
    color: #64748b;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- GRID LAYOUT: EQUAL ---------- */
.agamatour-evidenza-layout--equal {
    display: grid;
    gap: 24px;
}
.agamatour-evidenza-layout--equal.agamatour-evidenza-count--2 {
    grid-template-columns: repeat(2, 1fr);
}
.agamatour-evidenza-layout--equal.agamatour-evidenza-count--3 {
    grid-template-columns: repeat(3, 1fr);
}
.agamatour-evidenza-layout--equal.agamatour-evidenza-count--4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 991px) {
    .agamatour-evidenza-layout--equal.agamatour-evidenza-count--3,
    .agamatour-evidenza-layout--equal.agamatour-evidenza-count--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .agamatour-evidenza-layout--equal {
        grid-template-columns: 1fr !important;
    }
}

/* ---------- CARD EVIDENZA (layout equal) ---------- */
.agamatour-evidenza-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0, 0, 0, .08);
    transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
}
.agamatour-evidenza-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
}

/* THUMBNAIL */
.agamatour-evidenza-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}
.agamatour-evidenza-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.agamatour-evidenza-card:hover .agamatour-evidenza-thumb img {
    transform: scale(1.06);
}
.agamatour-evidenza-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.25) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Badge (riusa quelli globali) */
.agamatour-evidenza-card .agamatour-badge,
.agamatour-evidenza-hero .agamatour-badge,
.agamatour-evidenza-side-card .agamatour-badge {
    z-index: 2;
}

/* BODY */
.agamatour-evidenza-body {
    padding: 24px 26px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Titolo */
.agamatour-evidenza-card-title {
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 8px;
    font-weight: 700;
}
.agamatour-evidenza-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color .2s;
}
.agamatour-evidenza-card-title a:hover { color: #2c5aa0; }

/* Excerpt */
.agamatour-evidenza-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px;
}

/* ---------- SPECS INLINE ---------- */
.agamatour-evidenza-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-bottom: 20px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    flex: 1;
}
.agamatour-evidenza-spec {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #475569;
    white-space: nowrap;
}
.agamatour-evidenza-spec .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #94a3b8;
}

/* ---------- CTA ---------- */
.agamatour-evidenza-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 24px;
    border-radius: 8px;
    background: #1a6b4a;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease;
    align-self: flex-start;
}
.agamatour-evidenza-cta:hover {
    background: #145239;
    color: #fff;
}
.agamatour-evidenza-cta .dashicons {
    font-size: 16px;
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════
   LAYOUT HIGHLIGHT: Hero a sinistra + sidebar a destra
   ═══════════════════════════════════════════════════════ */
.agamatour-evidenza-highlight {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

/* ── HERO (primo viaggio) ── */
.agamatour-evidenza-hero {
    flex: 3;
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0, 0, 0, .08);
    transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
}
.agamatour-evidenza-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
}
.agamatour-evidenza-hero-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.agamatour-evidenza-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.agamatour-evidenza-hero:hover .agamatour-evidenza-hero-thumb img {
    transform: scale(1.04);
}
.agamatour-evidenza-hero-body {
    padding: 26px 28px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.agamatour-evidenza-hero-body .agamatour-evidenza-specs {
    flex-direction: column;
    gap: 8px;
}
.agamatour-evidenza-card-title--hero {
    font-size: 26px;
}

/* ── SIDEBAR (viaggi restanti) ── */
.agamatour-evidenza-sidebar {
    flex: 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Side card: verticale (immagine sopra, contenuto sotto) */
.agamatour-evidenza-side-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0, 0, 0, .08);
    transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1);
}
.agamatour-evidenza-side-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
}
.agamatour-evidenza-side-thumb {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.agamatour-evidenza-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.agamatour-evidenza-side-card:hover .agamatour-evidenza-side-thumb img {
    transform: scale(1.06);
}
.agamatour-evidenza-side-body {
    padding: 18px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.agamatour-evidenza-side-body .agamatour-evidenza-card-title {
    font-size: 18px;
    margin: 0 0 6px;
    line-height: 1.3;
}
.agamatour-evidenza-side-body .agamatour-viaggio-stati {
    margin-bottom: 8px;
}
.agamatour-evidenza-side-body .agamatour-stato-badge {
    font-size: 10px;
    padding: 2px 8px;
}
.agamatour-evidenza-side-body .agamatour-evidenza-spec {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
}
.agamatour-evidenza-side-link {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    background: #fff;
}
.agamatour-evidenza-side-link-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8eef6;
    border-radius: 50%;
    color: #043b87;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    flex-shrink: 0;
}
.agamatour-evidenza-side-link-icon .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}
.agamatour-evidenza-side-link:hover {
    border-color: #043b87;
    color: #043b87;
}
.agamatour-evidenza-side-link:hover .agamatour-evidenza-side-link-icon {
    background: #043b87;
    color: #fff;
}

/* ── RESPONSIVE HIGHLIGHT ── */
@media (max-width: 991px) {
    .agamatour-evidenza-highlight {
        flex-direction: column;
    }
    .agamatour-evidenza-sidebar {
        flex-direction: row;
    }
}
@media (max-width: 600px) {
    .agamatour-evidenza-sidebar {
        flex-direction: column;
    }
}

/* ═══════════════════════════════════════════════════════
   Agamatour – Destinazioni (Lista compatta orizzontale)
   ═══════════════════════════════════════════════════════ */

/* ---------- HEADER ---------- */
.agamatour-destinazioni {
    margin: 50px 0;
}
.agamatour-dest-header {
    text-align: center;
    margin-bottom: 30px;
}
.agamatour-dest-title {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    letter-spacing: -.3px;
}
.agamatour-dest-subtitle {
    font-size: 15px;
    color: #64748b;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- GRIGLIA ---------- */
.agamatour-dest-grid {
    display: grid;
    gap: 16px;
}
.agamatour-dest-cols-2 { grid-template-columns: repeat(2, 1fr); }
.agamatour-dest-cols-3 { grid-template-columns: repeat(3, 1fr); }
.agamatour-dest-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 991px) {
    .agamatour-dest-cols-3,
    .agamatour-dest-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .agamatour-dest-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ---------- SINGOLO ITEM ---------- */
.agamatour-dest-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 14px;
    padding: 10px 16px 10px 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
    text-decoration: none;
    cursor: pointer;
    transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1);
}
.agamatour-dest-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}

/* ---------- MINIATURA ---------- */
.agamatour-dest-img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f1f5f9;
}
.agamatour-dest-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.agamatour-dest-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #94a3b8;
    font-size: 24px;
}

/* ---------- TESTO ---------- */
.agamatour-dest-text {
    flex: 1;
    min-width: 0;
}
h5.agamatour-dest-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 2px;
}
.agamatour-dest-count {
    display: block;
    font-size: 12px;
    color: #64748b;
}

/* ---------- FRECCIA ---------- */
.agamatour-dest-arrow {
    flex-shrink: 0;
    font-size: 18px;
    color: #cbd5e1;
    transition: color .3s cubic-bezier(.4,0,.2,1), transform .3s cubic-bezier(.4,0,.2,1);
}
.agamatour-dest-item:hover .agamatour-dest-arrow {
    color: #1a6b4a;
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════
   Agamatour – Newsletter Form
   ═══════════════════════════════════════════════════════ */

.agamatour-newsletter {
    border-radius: 16px;
    padding: 40px 36px;
    margin: 50px 0;
}

/* ---------- HEADER ---------- */
.agamatour-newsletter-header {
    text-align: center;
    margin-bottom: 24px;
}
.agamatour-newsletter-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    letter-spacing: -.3px;
}
.agamatour-newsletter-subtitle {
    font-size: 15px;
    color: #475569;
    margin: 0;
    line-height: 1.5;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- FORM ---------- */
.agamatour-newsletter-form {
    max-width: 540px;
    margin: 0 auto;
}

/* Layout inline */
.agamatour-newsletter--inline .agamatour-newsletter-fields {
    display: flex;
    gap: 12px;
}
.agamatour-newsletter--inline .agamatour-newsletter-input-wrap {
    flex: 1;
}

/* Layout stacked */
.agamatour-newsletter--stacked .agamatour-newsletter-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---------- INPUT ---------- */
.agamatour-newsletter-email {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    transition: border-color .2s ease, box-shadow .2s ease;
    outline: none;
}
.agamatour-newsletter-email:focus {
    border-color: var(--nl-btn, #1a6b4a);
    box-shadow: 0 0 0 3px rgba(26, 107, 74, .1);
}
.agamatour-newsletter-email::placeholder {
    color: #94a3b8;
}

/* ---------- BUTTON ---------- */
.agamatour-newsletter .agamatour-newsletter-form .agamatour-newsletter-btn {
    /* Reset */
    all: unset;
    box-sizing: border-box;
    /* Stile 11 */
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px 10px 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #0f172a;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    cursor: pointer;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
}
.agamatour-newsletter .agamatour-newsletter-form .agamatour-newsletter-btn:hover {
    border-color: var(--nl-btn, #1a6b4a);
    color: var(--nl-btn, #1a6b4a);
}
.agamatour-newsletter .agamatour-newsletter-form .agamatour-newsletter-btn:active {
    transform: scale(0.98);
}
.agamatour-newsletter .agamatour-newsletter-form .agamatour-newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.agamatour-newsletter .agamatour-newsletter-form .agamatour-newsletter-btn-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e6f4ed;
    border-radius: 50%;
    color: var(--nl-btn, #1a6b4a);
    transition: all .25s cubic-bezier(.4,0,.2,1);
    flex-shrink: 0;
}
.agamatour-newsletter .agamatour-newsletter-form .agamatour-newsletter-btn-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}
.agamatour-newsletter .agamatour-newsletter-form .agamatour-newsletter-btn:hover .agamatour-newsletter-btn-icon {
    background: var(--nl-btn, #1a6b4a);
    color: #fff;
}
.agamatour-newsletter .agamatour-newsletter-form .agamatour-newsletter-btn-loading {
    display: none;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    background: #e6f4ed;
    border-radius: 50%;
    color: var(--nl-btn, #1a6b4a);
    flex-shrink: 0;
}
.agamatour-newsletter .agamatour-newsletter-form .agamatour-newsletter-btn-loading svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    animation: nl-spin 1s linear infinite;
}
@keyframes nl-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---------- PRIVACY CHECKBOX ---------- */
.agamatour-newsletter-privacy {
    margin-top: 16px;
}
.agamatour-newsletter-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    color: #475569;
}
.agamatour-newsletter-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.agamatour-newsletter-checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    position: relative;
    transition: all .2s ease;
    margin-top: 1px;
}
.agamatour-newsletter-checkbox:checked + .agamatour-newsletter-checkmark {
    background: var(--nl-btn, #1a6b4a);
    border-color: var(--nl-btn, #1a6b4a);
}
.agamatour-newsletter-checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.agamatour-newsletter-checkbox:checked + .agamatour-newsletter-checkmark::after {
    display: block;
}
.agamatour-newsletter-checkbox:focus + .agamatour-newsletter-checkmark {
    box-shadow: 0 0 0 3px rgba(26, 107, 74, .15);
}
.agamatour-newsletter-privacy-text a {
    color: var(--nl-btn, #1a6b4a);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color .2s ease;
}
.agamatour-newsletter-privacy-text a:hover {
    text-decoration-color: currentColor;
}

/* ---------- MESSAGGI ---------- */
.agamatour-newsletter-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}
.agamatour-newsletter-message--success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.agamatour-newsletter-message--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
    .agamatour-newsletter {
        padding: 30px 24px;
    }
    .agamatour-newsletter--inline .agamatour-newsletter-fields {
        flex-direction: column;
    }
    .agamatour-newsletter-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
    }
}

/* ═══════════════════════════════════════════════════════
   Agamatour – Dettaglio Viaggio
   ═══════════════════════════════════════════════════════ */

.agamatour-dettaglio {
    border-radius: 14px;
    padding: 24px 28px;
    margin: 30px 0;
}

/* ---------- SPECS CONTAINER ---------- */
.agamatour-dettaglio-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px;
}

/* Layout horizontal */
.agamatour-dettaglio--horizontal .agamatour-dettaglio-specs {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.agamatour-dettaglio--horizontal .agamatour-dettaglio-spec {
    flex: 1 1 0;
    min-width: 0;
}

/* Layout grid */
.agamatour-dettaglio--grid .agamatour-dettaglio-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px 24px;
}

/* Layout vertical */
.agamatour-dettaglio--vertical .agamatour-dettaglio-specs {
    flex-direction: column;
    gap: 14px;
}

/* ---------- SINGLE SPEC ---------- */
.agamatour-dettaglio-spec {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agamatour-dettaglio-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    color: #043b87;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    flex-shrink: 0;
}

.agamatour-dettaglio-spec-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.agamatour-dettaglio-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #64748b;
    text-align: left;
}

.agamatour-dettaglio-value {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    text-align: left;
}

/* Special full-width row */
.agamatour-dettaglio-special {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,.06);
}

/* ---------- ACTIONS ---------- */
.agamatour-dettaglio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,.08);
}

.agamatour-dettaglio-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px 10px 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    background: #fff;
    color: #0f172a;
    border: 2px solid #e2e8f0;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
}

.agamatour-dettaglio-btn:hover {
    border-color: #043b87;
    color: #043b87;
}

.agamatour-dettaglio-btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8eef6;
    border-radius: 50%;
    color: #043b87;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    flex-shrink: 0;
}

.agamatour-dettaglio-btn-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.agamatour-dettaglio-btn:hover .agamatour-dettaglio-btn-icon {
    background: #043b87;
    color: #fff;
}

/* Override per stili primary/outline - ora uniformi */
.agamatour-dettaglio-btn--primary,
.agamatour-dettaglio-btn--outline {
    background: #fff;
    color: #0f172a;
    border: 2px solid #e2e8f0;
}

.agamatour-dettaglio-btn--primary:hover,
.agamatour-dettaglio-btn--outline:hover {
    border-color: #043b87;
    color: #043b87;
    background: #fff;
}

/* ---------- COMPLETO NOTICE ---------- */
.agamatour-dettaglio-completo-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 14px;
    font-weight: 600;
}
.agamatour-dettaglio-completo-notice .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .agamatour-dettaglio {
        padding: 20px;
    }
    .agamatour-dettaglio--horizontal .agamatour-dettaglio-specs {
        flex-direction: column;
        align-items: flex-start;
    }
    .agamatour-dettaglio-actions {
        flex-direction: column;
    }
    .agamatour-dettaglio-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════
   DESCRIZIONE STATO
   ═══════════════════════════════════════════════════════ */
.agamatour-stato-descrizione {
    /* Container semplice */
}

.agamatour-stato-desc-text {
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
}
.agamatour-stato-desc-text p {
    margin: 0 0 16px;
}
.agamatour-stato-desc-text p:last-child {
    margin-bottom: 0;
}
.agamatour-stato-desc-text h2,
.agamatour-stato-desc-text h3,
.agamatour-stato-desc-text h4 {
    color: #0f172a;
    margin: 24px 0 12px;
}
.agamatour-stato-desc-text ul,
.agamatour-stato-desc-text ol {
    margin: 16px 0;
    padding-left: 24px;
}
.agamatour-stato-desc-text li {
    margin-bottom: 8px;
}

/* Messaggio quando non su archivio */
.agamatour-no-stato {
    padding: 20px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    color: #92400e;
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════
   GALLERIA VIAGGIO
   ═══════════════════════════════════════════════════════ */
.agamatour-galleria {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Desktop/Mobile visibility */
.agamatour-galleria-desktop {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.agamatour-galleria-carousel {
    display: none;
}

@media (max-width: 768px) {
    .agamatour-galleria-desktop {
        display: none;
    }
    .agamatour-galleria-carousel {
        display: block;
    }
}

/* Immagine principale */
.agamatour-galleria-main {
    display: block;
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--gallery-radius, 12px);
}
.agamatour-galleria-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.agamatour-galleria-main:hover img {
    transform: scale(1.03);
}

/* Icona zoom */
.agamatour-galleria-zoom {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #043b87;
    opacity: 0;
    transform: scale(0.8);
    transition: all .3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.agamatour-galleria-zoom .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}
.agamatour-galleria-main:hover .agamatour-galleria-zoom,
.agamatour-galleria-thumb:hover .agamatour-galleria-zoom {
    opacity: 1;
    transform: scale(1);
}

/* Thumbnails grid */
.agamatour-galleria-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.agamatour-galleria--cols-2 .agamatour-galleria-thumbs {
    grid-template-columns: repeat(2, 1fr);
}

/* Singola thumbnail */
.agamatour-galleria-thumb {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: var(--gallery-radius, 12px);
}
.agamatour-galleria-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.agamatour-galleria-thumb:hover img {
    transform: scale(1.08);
}
.agamatour-galleria-thumb .agamatour-galleria-zoom {
    width: 36px;
    height: 36px;
    bottom: 10px;
    right: 10px;
}
.agamatour-galleria-thumb .agamatour-galleria-zoom .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ═══════════════════════════════════════════════════════
   MOBILE CAROUSEL
   ═══════════════════════════════════════════════════════ */
.agamatour-galleria-carousel {
    position: relative;
}
.agamatour-carousel-wrapper {
    overflow: hidden;
    border-radius: var(--gallery-radius, 12px);
}
.agamatour-carousel-track {
    display: flex;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    touch-action: pan-y pinch-zoom;
}
.agamatour-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    flex-shrink: 0;
}
.agamatour-carousel-slide a {
    display: block;
    width: 100%;
}
.agamatour-carousel-slide img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

/* Carousel dots - sotto l'immagine */
.agamatour-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 12px;
}
.agamatour-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all .25s ease;
}
.agamatour-carousel-dot.active {
    background: #043b87;
    transform: scale(1.2);
}
.agamatour-carousel-dot:hover {
    background: #94a3b8;
}

/* ═══════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════ */
.agamatour-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.agamatour-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.92);
    cursor: pointer;
}
.agamatour-lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.agamatour-lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
}
.agamatour-lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.agamatour-lightbox-caption {
    color: #fff;
    font-size: 14px;
    margin-top: 16px;
    text-align: center;
    max-width: 600px;
}

/* Lightbox buttons */
.agamatour-lightbox-close,
.agamatour-lightbox-prev,
.agamatour-lightbox-next {
    position: absolute;
    background: rgba(255,255,255,.1);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
    z-index: 10;
}
.agamatour-lightbox-close:hover,
.agamatour-lightbox-prev:hover,
.agamatour-lightbox-next:hover {
    background: rgba(255,255,255,.25);
}
.agamatour-lightbox-close .dashicons,
.agamatour-lightbox-prev .dashicons,
.agamatour-lightbox-next .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}
.agamatour-lightbox-close {
    top: 20px;
    right: 20px;
}
.agamatour-lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.agamatour-lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .agamatour-lightbox-prev,
    .agamatour-lightbox-next {
        width: 40px;
        height: 40px;
    }
    .agamatour-lightbox-prev .dashicons,
    .agamatour-lightbox-next .dashicons {
        font-size: 22px;
        width: 22px;
        height: 22px;
    }
    .agamatour-lightbox-prev {
        left: 10px;
    }
    .agamatour-lightbox-next {
        right: 10px;
    }
}
