/* ===========================================================
   Terrazza Marconi - Layout dedicato PAGINE PACCHETTO
   Estetica "carnet di viaggio": hero sdoppiato foto + pannello
   sabbia, timbro circolare con il prezzo, esperienza raccontata
   per tappe numerate, scheda del pacchetto stile rate card con
   puntini di conduzione. Volutamente diverso dal layout
   service-details usato dalle altre pagine interne.
   Caricato DOPO tm-custom.css, solo sulle pagine pacchetto-*.
   =========================================================== */

/* ---------- bottoni dedicati ---------- */
.tm-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 32px;
    border-radius: 12px;
    background: #2F4C9B;
    color: #fff;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 14px;
    transition: background .3s ease, color .3s ease, transform .3s ease;
}
.tm-btn-primary:hover {
    background: #243D7E;
    color: #fff;
    transform: translateY(-2px);
}
.tm-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 28px;
    border-radius: 12px;
    border: 1px solid rgba(28, 28, 28, .28);
    color: #1C1C1C;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 14px;
    transition: border-color .3s ease, color .3s ease, transform .3s ease;
}
.tm-btn-ghost:hover {
    border-color: #2F4C9B;
    color: #2F4C9B;
    transform: translateY(-2px);
}

/* =====================================================================
   HERO SDOPPIATO: foto a sinistra (sotto il logo bianco dell'header),
   pannello sabbia a destra con briciole, titolo, claim, meta e CTA.
   ===================================================================== */
.tm-pkg-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    background: #FFFAF4;
    position: relative;
}
.tm-pkg-hero-media {
    position: relative;
    min-height: 640px;
}
.tm-pkg-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* velo in alto per la leggibilita' di logo e menu sopra la foto */
.tm-pkg-hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(28, 28, 28, .42) 0%, rgba(28, 28, 28, 0) 32%);
    pointer-events: none;
}
.tm-pkg-hero-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 190px 72px 90px 110px;
}
/* filigrana: onda del brand, grande e leggerissima, dietro al testo */
.tm-pkg-hero-panel .tm-pkg-watermark {
    position: absolute;
    right: -40px;
    bottom: 30px;
    width: 380px;
    opacity: .07;
    pointer-events: none;
}
.tm-pkg-crumbs {
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #8f8578;
    margin-bottom: 34px;
}
.tm-pkg-crumbs a {
    color: #8f8578;
    transition: color .3s ease;
}
.tm-pkg-crumbs a:hover {
    color: #2F4C9B;
}
.tm-pkg-crumbs .sep {
    margin: 0 10px;
    color: #C9B9A4;
}
.tm-pkg-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2F4C9B;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.tm-pkg-eyebrow img {
    height: 12px;
    width: auto;
}
.tm-pkg-title {
    font-size: clamp(38px, 4.4vw, 62px);
    line-height: 1.04;
    font-weight: 700;
    color: #1C1C1C;
    margin-bottom: 22px;
}
.tm-pkg-claim {
    font-size: 18px;
    line-height: 1.65;
    color: #55504a;
    max-width: 52ch;
    margin-bottom: 38px;
}
/* riga meta: tre voci essenziali separate da filetti */
.tm-pkg-meta {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid rgba(28, 28, 28, .12);
    border-bottom: 1px solid rgba(28, 28, 28, .12);
    margin-bottom: 40px;
}
.tm-pkg-meta-item {
    flex: 1 1 0;
    min-width: 150px;
    padding: 20px 26px 20px 0;
}
.tm-pkg-meta-item + .tm-pkg-meta-item {
    padding-left: 26px;
    border-left: 1px solid rgba(28, 28, 28, .12);
}
.tm-pkg-meta-item small {
    display: block;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #8f8578;
    margin-bottom: 6px;
}
.tm-pkg-meta-item strong {
    font-size: 16px;
    color: #1C1C1C;
    line-height: 1.35;
}
.tm-pkg-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---------- timbro circolare con il prezzo, a cavallo della cucitura ---------- */
.tm-pkg-stamp {
    position: absolute;
    left: -79px;
    top: 54%;
    z-index: 5;
    width: 158px;
    height: 158px;
    border-radius: 50%;
    background: #2F4C9B;
    box-shadow: 0 16px 38px rgba(28, 28, 28, .28);
    display: flex;
    align-items: center;
    justify-content: center;
}
/* anello tratteggiato interno, effetto timbro postale */
.tm-pkg-stamp::after {
    content: "";
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, .38);
    pointer-events: none;
}
.tm-pkg-stamp svg {
    position: absolute;
    inset: 4px;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    animation: tm-stamp-spin 30s linear infinite;
}
.tm-pkg-stamp svg text {
    fill: rgba(255, 255, 255, .72);
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-family: "sweet-sans-pro", sans-serif;
}
.tm-pkg-stamp-price {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    line-height: 1;
}
.tm-pkg-stamp-price em {
    display: block;
    font-style: normal;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .75;
    margin-bottom: 5px;
}
.tm-pkg-stamp-price strong {
    display: block;
    font-size: 28px;
    font-weight: 700;
}
.tm-pkg-stamp-price span {
    display: block;
    font-size: 8px;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .75;
    margin-top: 6px;
}
@keyframes tm-stamp-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .tm-pkg-stamp svg { animation: none; }
}

/* =====================================================================
   CORPO: tappe numerate a sinistra, scheda del pacchetto sticky a destra
   ===================================================================== */
.tm-pkg-body {
    padding: 110px 0 120px;
    background: #fff;
}
.tm-pkg-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 384px;
    gap: 72px;
    align-items: start;
}
.tm-pkg-lead {
    font-size: 19px;
    line-height: 1.7;
    color: #434343;
    margin-bottom: 14px;
}
/* tappa: numerale in filo di ferro + contenuto */
.tm-pkg-step {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 26px;
    padding: 44px 0;
    border-top: 1px solid rgba(28, 28, 28, .1);
}
.tm-pkg-step:first-of-type {
    border-top: none;
    padding-top: 28px;
}
.tm-pkg-step-num {
    font-size: 64px;
    font-weight: 700;
    line-height: .9;
    color: transparent;
    -webkit-text-stroke: 1.5px #CBB49A;
    letter-spacing: .02em;
}
.tm-pkg-step h3 {
    font-size: 24px;
    color: #1C1C1C;
    margin-bottom: 12px;
}
.tm-pkg-step p {
    color: #55504a;
    line-height: 1.7;
    margin-bottom: 0;
}
.tm-pkg-step p + p {
    margin-top: 12px;
}
/* etichette pillola per i passaggi del percorso SPA */
.tm-pkg-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.tm-pkg-chips span {
    display: inline-block;
    border: 1px solid rgba(47, 76, 155, .35);
    color: #2F4C9B;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}
/* coppia di immagini a fine racconto */
.tm-pkg-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0 34px;
}
.tm-pkg-gallery figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
}
.tm-pkg-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.tm-pkg-gallery figure:hover img {
    transform: scale(1.05);
}
/* box "buono a sapersi" su fondo sabbia */
.tm-pkg-note {
    background: rgba(212, 184, 151, .16);
    border-radius: 12px;
    padding: 28px 32px;
}
.tm-pkg-note h6 {
    font-size: 13px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #2F4C9B;
    margin-bottom: 12px;
}
.tm-pkg-note p {
    color: #55504a;
    line-height: 1.7;
    margin: 0;
}

/* ---------- scheda del pacchetto (sticky) ---------- */
.tm-pkg-card {
    position: sticky;
    top: 120px;
    background: #FFFAF4;
    border: 1px solid rgba(28, 28, 28, .08);
    border-radius: 16px;
    padding: 36px 32px 32px;
    box-shadow: 0 22px 50px rgba(28, 28, 28, .09);
}
.tm-pkg-card-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #8f8578;
    margin-bottom: 18px;
}
.tm-pkg-card-tag img {
    height: 10px;
    width: auto;
}
.tm-pkg-card-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(28, 28, 28, .1);
    margin-bottom: 8px;
}
.tm-pkg-card-price em {
    font-style: normal;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #8f8578;
}
.tm-pkg-card-price strong {
    font-size: 44px;
    font-weight: 700;
    color: #1C1C1C;
    line-height: 1;
}
.tm-pkg-card-price span {
    font-size: 14px;
    color: #8f8578;
}
.tm-pkg-card-rows {
    margin: 0 0 22px;
}
.tm-pkg-card-rows .row-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px dashed rgba(28, 28, 28, .16);
    font-size: 15px;
}
.tm-pkg-card-rows .row-item small {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8f8578;
    white-space: nowrap;
}
.tm-pkg-card-rows .row-item b {
    color: #1C1C1C;
    font-weight: 600;
    text-align: right;
}
/* supplementi con puntini di conduzione, come su un listino elegante */
.tm-pkg-supp h6 {
    font-size: 13px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #2F4C9B;
    margin-bottom: 10px;
}
.tm-pkg-supp ul {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}
.tm-pkg-supp li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 7px 0;
    font-size: 15px;
    color: #434343;
}
.tm-pkg-supp li .dots {
    flex: 1;
    border-bottom: 2px dotted rgba(28, 28, 28, .25);
    transform: translateY(-4px);
}
.tm-pkg-supp li b {
    color: #1C1C1C;
    font-weight: 600;
    white-space: nowrap;
}
.tm-pkg-card .tm-btn-primary {
    width: 100%;
}
.tm-pkg-card-tel {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 15px;
    color: #434343;
}
.tm-pkg-card-tel a {
    color: #2F4C9B;
    font-weight: 600;
}
.tm-pkg-card-fine {
    margin: 18px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #8f8578;
    text-align: center;
}

/* =====================================================================
   FASCIA CTA BLU + ALTRI PACCHETTI
   ===================================================================== */
.tm-pkg-band {
    background: linear-gradient(160deg, #3A59A8 0%, #304D9B 45%, #243D7E 100%);
    padding: 96px 0;
    text-align: center;
}
.tm-pkg-band .onda {
    display: block;
    height: 16px;
    width: auto;
    margin: 0 auto 20px;
    /* il PNG dell'onda e' scuro (pensato per fondi chiari): qui lo rendiamo bianco */
    filter: brightness(0) invert(1);
    opacity: .85;
}
.tm-pkg-band h2 {
    color: #fff;
    max-width: 720px;
    margin: 0 auto 16px;
}
.tm-pkg-band p {
    color: rgba(255, 255, 255, .85);
    max-width: 620px;
    margin: 0 auto 32px;
}
.tm-pkg-band .tm-btn-sand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 34px;
    border-radius: 12px;
    background: #D4B897;
    color: #1C1C1C;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 14px;
    transition: background .3s ease, color .3s ease, transform .3s ease;
}
.tm-pkg-band .tm-btn-sand:hover {
    background: #fff;
    color: #2F4C9B;
    transform: translateY(-2px);
}

.tm-pkg-others {
    padding: 100px 0 110px;
    background: #FFFAF4;
}
.tm-pkg-others .section-title {
    margin-bottom: 44px;
}
.tm-pkg-other-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    height: 340px;
}
.tm-pkg-other-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}
.tm-pkg-other-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28, 28, 28, 0) 40%, rgba(28, 28, 28, .72) 100%);
}
.tm-pkg-other-card:hover img {
    transform: scale(1.06);
}
.tm-pkg-other-card .name {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
}
.tm-pkg-other-card .name h4 {
    color: #fff;
    font-size: 21px;
    margin: 0;
}
.tm-pkg-other-card .name i {
    font-size: 15px;
    transition: transform .3s ease;
}
.tm-pkg-other-card:hover .name i {
    transform: translateX(6px);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1399px) {
    .tm-pkg-hero-panel {
        padding: 170px 48px 70px 96px;
    }
    .tm-pkg-grid {
        grid-template-columns: minmax(0, 1fr) 344px;
        gap: 48px;
    }
}
@media (max-width: 1199px) {
    .tm-pkg-hero-panel {
        padding: 150px 36px 60px 88px;
    }
    .tm-pkg-meta-item {
        min-width: 130px;
        padding-right: 18px;
    }
    .tm-pkg-meta-item + .tm-pkg-meta-item {
        padding-left: 18px;
    }
}
@media (max-width: 991px) {
    .tm-pkg-hero {
        grid-template-columns: 1fr;
    }
    .tm-pkg-hero-media {
        min-height: 420px;
    }
    .tm-pkg-hero-panel {
        padding: 60px 24px 56px;
    }
    /* il timbro si aggancia in alto a destra, a cavallo della foto */
    .tm-pkg-stamp {
        left: auto;
        right: 24px;
        top: -79px;
        width: 138px;
        height: 138px;
    }
    .tm-pkg-stamp-price strong {
        font-size: 23px;
    }
    .tm-pkg-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    .tm-pkg-card {
        position: static;
    }
    .tm-pkg-body {
        padding: 80px 0 90px;
    }
}
@media (max-width: 767px) {
    .tm-pkg-step {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 18px;
        padding: 34px 0;
    }
    .tm-pkg-step-num {
        font-size: 44px;
    }
    .tm-pkg-gallery {
        grid-template-columns: 1fr;
    }
    .tm-pkg-gallery img {
        height: 230px;
    }
    .tm-pkg-hero-cta .tm-btn-primary,
    .tm-pkg-hero-cta .tm-btn-ghost {
        width: 100%;
    }
    .tm-pkg-others {
        padding: 80px 0;
    }
}
