/* Homepage LCP bundle — fonts, bottoni, hero (unico CSS blocking oltre style.css) */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora/Sora-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora/Sora-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Antonio";
  src: url("../fonts/antonio/Antonio-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #fff9ee;
  --iwm-green: #005f73;
  --cta: #ec6e5e;
  --fp-dark: #0a0a0a;
  --fp-light: #f8f7f4;
  --fp-accent: var(--cta);
  --fp-muted: #6b6b6b;
}

.tp-btn {
  padding: 20px 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  text-decoration: none;
  text-transform: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.tp-btn--coral {
  background-color: #ec6e5e !important;
  border: 2px solid #ec6e5e !important;
  color: #1a1a1a !important;
}
.tp-btn--coral:hover {
  background-color: transparent !important;
  border: 2px solid #ec6e5e !important;
  color: #ec6e5e !important;
}
.fp-hero-btn-ghost,
.tp-btn--outline-coral {
  background: transparent !important;
  border: 2px solid #ec6e5e !important;
  color: #ec6e5e !important;
}
.tp-btn span { position: relative; z-index: 1; overflow: hidden; display: inline-block; }
.tp-btn span span.text-1 { position: relative; display: block; transition: 0.3s; }
.tp-btn span span.text-2 { position: absolute; top: 100%; display: block; transition: 0.3s; }
.tp-btn i { position: relative; overflow: hidden; width: 16px; height: 16px; display: inline-flex; margin-left: 4px; }
.tp-btn i svg { transform: translateY(-2px); position: absolute; bottom: -1px; left: 1px; transition: all 0.2s ease-out; }
.tp-btn i svg:last-child { left: -12px; bottom: -12px; transform: translate(0, 0); opacity: 0; }
.tp-btn:hover span span.text-1 { transform: translateY(-150%); }
.tp-btn:hover span span.text-2 { top: 50%; transform: translateY(-50%); }
.tp-btn:hover i svg:first-child { transform: translate(16px, -16px); }
.tp-btn:hover i svg:last-child { opacity: 1; visibility: visible; transform: translate(13px, -13px); }

@media (min-width: 992px) {
  .tp-header-area {
    --iwm-header-height: 100px;
    min-height: unset;
  }
  .iwm-header .iwm-header-cta.tp-btn {
    margin-left: 8px;
    padding: 20px 34px;
    font-size: 15px;
    line-height: 1;
  }
  .tp-header-area:not(.header-on-light) .iwm-desktop-nav #iwm-primary-menu > li > a { color: #fff !important; }
  .tp-header-area.header-on-light .iwm-desktop-nav #iwm-primary-menu > li > a { color: #1a1a1a !important; }
  .tp-header-area .iwm-desktop-nav #iwm-primary-menu > li > a:hover,
  .tp-header-area .iwm-desktop-nav #iwm-primary-menu > li.current-menu-item > a,
  .tp-header-area .iwm-desktop-nav #iwm-primary-menu > li.current-menu-ancestor > a { color: #ec6e5e !important; }
}

    :root {
        --fp-dark: #0a0a0a;
        --fp-light: #f8f7f4;
        --fp-accent: var(--cta);
        --fp-muted: #6b6b6b;
    }

    .fp {
        font-family: 'Sora', sans-serif;
        background: var(--fp-light);
        position: relative;
    }

    /* ── Dot pattern: usa il pattern SVG globale da style.css (section::before) ── */
    .fp::after {
        display: none;
    }
    .fp > section {
        position: relative;
        z-index: 1;
        overflow: hidden;
    }
    .fp > section > * {
        position: relative;
        z-index: 1;
    }

    /* ══════════════════════════════════════════════════════════════
    /* ══════════════════════════════════════════════════════════════
   HERO — PHOTO GRID
   ══════════════════════════════════════════════════════════════ */
    .fp-hero {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
        height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
        overflow: hidden;
    }
    .fp-hero-left {
        position: relative;
        background: #005f73;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: clamp(28px, 3.6vw, 56px) max(28px, 3.6vw) clamp(100px, 12vh, 130px);
        overflow: hidden;
        height: 100%;
        min-height: 0;
    }
    .fp-hero canvas {
        position: absolute;
        inset: 0;
        z-index: 1;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }
    .fp-hero-left::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0;
        z-index: 1;
        width: 420px; height: 420px;
        pointer-events: none;
        background: radial-gradient(ellipse at bottom left, rgba(236,110,94,.07), transparent 65%);
    }
    .fp-hero-content {
        position: relative;
        z-index: 5;
    }
    .fp-hero-eyebrow {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 22px;
    }
    .fp-hero-eyebrow::before {
        content: '';
        display: block;
        width: 36px; height: 1px;
        background: #ec6e5e;
        flex-shrink: 0;
    }
    .fp-hero-eyebrow span {
        font-family: 'Sora', sans-serif;
        font-size: 11px;
        font-weight: 400;
        letter-spacing: .22em;
        text-transform: uppercase;
        color: #ec6e5e;
    }
    .fp-hero-headline {
        font-family: 'Antonio', sans-serif;
        font-size: clamp(44px, 4.2vw, 80px);
        line-height: 1.1;
        color: #fff9ee;
        letter-spacing: .01em;
        font-weight: 400;
        text-transform: none;
        margin: 0;
    }
    .fp-hero-headline .fp-accent { color: #ec6e5e; }
    .fp-hero-headline .fp-line {
        display: block;
        overflow: hidden;
        padding-bottom: .06em;
    }
    .fp-hero-headline .fp-line span {
        display: inline-block;
    }

    /* No animazioni hero: animation-fill-mode:both causa CLS al load async */
    /* Bottom bar */
    .fp-hero-bar {
        position: absolute;
        bottom: 28px; left: max(28px, 3.6vw); right: auto;
        width: fit-content;
        z-index: 5;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        background: rgba(0,40,52,.55);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255,249,238,.18);
        border-radius: 12px;
        padding: clamp(12px, 1.4vw, 20px) clamp(14px, 1.8vw, 24px);
        gap: 0;
    }

    .fp-hero-bar-text {
        display: none;
        flex: 1;
        min-width: 0;
    }
    .fp-hero-bar-text p {
        font-family: 'Sora', sans-serif;
        font-size: clamp(10px, 1.1vw, 12.5px);
        line-height: 1.6;
        color: rgba(255,249,238,.68);
        font-weight: 300;
        white-space: normal;
    }
    .fp-hero-bar-text p strong {
        color: #fff9ee;
        font-weight: 500;
    }
    .fp-hero-bar-sep {
        width: 1px;
        height: 44px;
        background: rgba(255,249,238,.12);
        flex-shrink: 0;
        margin: 0 clamp(10px, 1.4vw, 20px);
    }
    /* nasconde il sep diretto tra cta (hidden) e stats */
    .fp-hero-bar > .fp-hero-bar-sep { display: none; }
    .fp-hero-bar-stat-num {
        font-family: 'Antonio', sans-serif;
        font-size: clamp(22px, 2.2vw, 30px);
        color: #fff9ee;
        line-height: 1;
        display: block;
    }
    .fp-hero-bar-stat-num span { color: #ec6e5e; }
    .fp-hero-bar-stat-label {
        font-family: 'Sora', sans-serif;
        font-size: clamp(8px, .8vw, 10px);
        letter-spacing: .14em;
        text-transform: uppercase;
        color: rgba(255,249,238,.45);
        margin-top: 4px;
        display: block;
    }
    .fp-hero-bar-stats {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    .fp-hero-bar-cta {
        display: none;
        flex-shrink: 0;
        flex-direction: row;
        gap: 8px;
        align-items: center;
        margin-left: 0;
        margin-right: clamp(10px, 1.4vw, 20px);
    }
    /* Hero bar buttons — scaled-down tp-btn */
    .fp-hero-bar .tp-btn {
        font-size: clamp(10px, 1.1vw, 13px);
        padding: clamp(9px, .9vw, 12px) clamp(12px, 1.4vw, 18px);
        border-radius: 8px;
        white-space: nowrap;
    }
    .fp-hero-btn-ghost {
        background: transparent;
        border: 1px solid rgba(255,249,238,.3);
        color: #fff9ee !important;
    }
    .fp-hero-btn-ghost:hover {
        border-color: rgba(255,249,238,.6);
        background: transparent;
        color: #fff9ee !important;
    }
    /* Right panel — photo grid */
    .fp-hero-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        gap: 0;
        height: 100%;
        min-height: 0;
        overflow: hidden;
        background: #003d4d;
    }
    .fp-hero-cell {
        position: relative;
        overflow: hidden;
    }
    .fp-hero-cell img {
        width: 100%; height: 100%;
        object-fit: cover;
        filter: saturate(1.05) brightness(.95);
        transition: transform 7s ease;
        display: block;
    }
    .fp-hero-cell:hover img { transform: scale(1.04); }
    .fp-hero-cell::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, transparent 55%, rgba(0,40,52,.55) 100%);
        transition: opacity .3s;
    }
    .fp-hero-cell:hover::after { opacity: .6; }
    .fp-hero-cell-label {
        position: absolute;
        bottom: 13px; left: 13px;
        z-index: 2;
        font-family: 'Sora', sans-serif;
        font-weight: 400;
        font-size: 9px;
        letter-spacing: .18em;
        text-transform: uppercase;
        color: rgba(255,249,238,.6);
        opacity: 0;
        transition: opacity .3s;
    }
    .fp-hero-cell:hover .fp-hero-cell-label { opacity: 1; }
    .fp-hero-cell--tall { grid-row: 1 / 3; grid-column: 1; }
    .fp-hero-cell--accent {
        grid-column: 1;
        grid-row: 3;
        background: #ec6e5e;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 8px;
        padding: 16px 18px;
        cursor: pointer;
        transition: background .2s;
    }
    .fp-hero-cell--accent:hover { background: #d85a4a; }
    .fp-hero-cell--accent::after { display: none; }
    .fp-hero-accent-label {
        font-family: 'Sora', sans-serif;
        font-weight: 400;
        font-size: 9px;
        letter-spacing: .2em;
        text-transform: uppercase;
        color: rgba(255,249,238,.7);
    }
    .fp-hero-accent-desc {
        font-family: 'Sora', sans-serif;
        font-weight: 300;
        font-size: clamp(12px, 1.05vw, 15px);
        line-height: 1.5;
        color: rgba(255, 249, 238, .85);
        margin: 0;
        margin-left: clamp(16px, 2vw, 28px);
        margin-right: clamp(16px, 2vw, 28px);
    }
    .fp-hero-accent-cta {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 16px;
        margin-left: clamp(16px, 2vw, 28px);
        margin-right: clamp(16px, 2vw, 28px);
    }
    .fp-hero-accent-link {
        font-family: 'Antonio', sans-serif;
        font-weight: 400;
        font-size: 26px;
        letter-spacing: .02em;
        color: #005f73;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 8px;
        border-bottom: 1px solid rgba(0,95,115,.35);
        padding-bottom: 3px;
        transition: gap .2s, border-color .2s;
    }
    .fp-hero-accent-link--ghost {
        color: rgba(0,95,115,.6);
        border-bottom-color: rgba(0,95,115,.15);
    }
    .fp-hero-cell--accent:hover .fp-hero-accent-link {
        gap: 14px;
        border-color: rgba(255,249,238,.7);
    }
    @keyframes fpHeroFadeUp  { to { opacity:1; transform:translateY(0); } }
    @keyframes fpHeroSlideUp { from { transform: translateY(12%); } to { transform: translateY(0); } }
    @keyframes fpHeroFadeIn  { to { opacity:1; } }
    @keyframes fpHeroBarIn   { from { transform:translateY(16px); } to { transform:translateY(0); } }

    /* ── Medium breakpoint: 2-col still active but narrow columns ── */
    @media (max-width: 1366px) and (min-width: 1025px) {
        .fp-hero-headline { font-size: clamp(28px, 3.6vw, 60px); }
        .fp-hero-bar { flex-wrap: wrap; gap: 0; row-gap: 8px; padding: 12px 14px; align-items: flex-start; }
        .fp-hero-bar-sep { display: none; }
        .fp-hero-bar-stats .fp-hero-bar-sep { display: block; }
        .fp-hero-bar-stat { flex: 0 0 auto; }
        .fp-hero-bar-cta { display: flex; flex: 0 0 auto; flex-direction: column; gap: 6px; align-items: flex-start; margin-right: clamp(8px, 1.2vw, 16px); }
        .fp-hero-bar-stats { align-self: center; gap: 0; }
        .fp-hero-accent-cta { display: none; }
    }

    /* ── Short viewport: l'accent cell occupa 1/3 di 100vh, riduco font/spacing ── */
    /* Fase 1 – viewport medio-basso: comprimo testo e bottoni */
    @media (max-height: 980px) and (min-width: 1025px) {
        .fp-hero-cell--accent { gap: 5px; padding: 12px 16px; overflow: hidden; }
        .fp-hero-accent-desc { font-size: 12px; line-height: 1.45; margin-left: 0; margin-right: 0; }
        .fp-hero-accent-cta { margin-top: 8px; gap: 6px; margin-left: 0; margin-right: 0; }
        .fp-hero-cell--accent .tp-btn { font-size: 11.5px; padding: 8px 14px; border-radius: 7px; }
    }
    /* Fase 2 – viewport basso: bottoni in riga per farli stare entrambi */
    @media (max-height: 860px) and (min-width: 1025px) {
        .fp-hero-cell--accent { gap: 4px; padding: 10px 14px; }
        .fp-hero-accent-desc { font-size: 11.5px; line-height: 1.4; }
        .fp-hero-accent-cta { flex-direction: row; flex-wrap: wrap; margin-top: 6px; gap: 5px; }
        .fp-hero-cell--accent .tp-btn { font-size: 11px; padding: 7px 12px; flex: 1 1 auto; justify-content: center; }
    }
    /* Fase 3 – viewport molto basso: nascondo tutto il blocco CTA */
    @media (max-height: 720px) and (min-width: 1025px) {
        .fp-hero-accent-cta { display: none; }
        .fp-hero-accent-desc { font-size: 11px; }
    }

    @media (max-width: 1024px) {
        .fp-hero {
            grid-template-columns: 1fr;
            grid-template-rows: 1fr 120px;
            min-height: 100dvh;
        }
        .fp-hero-left {
            padding: max(80px, env(safe-area-inset-top, 80px)) 20px 170px;
            justify-content: center;
            align-items: center;
        }
        .fp-hero-content { text-align: center; }
        .fp-hero-eyebrow { justify-content: center; }
        .fp-hero-headline { text-align: center; }
        .fp-hero-bar {
            left: 12px; right: 12px; bottom: 12px;
            width: auto;
            border-radius: 10px;
            padding: 12px 14px;
            flex-wrap: wrap;
            gap: 0;
            row-gap: 10px;
            align-items: flex-start;
        }
        .fp-hero-bar-text {
            display: block;
            flex: 1 1 100%;
            min-width: 0;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255,249,238,.1);
        }
        .fp-hero-bar-text p { font-size: 11px; white-space: normal; line-height: 1.5; }
        .fp-hero-bar-sep { display: none; }
        .fp-hero-bar-stats { flex: 0 0 auto; justify-content: flex-end; align-self: center; }
        .fp-hero-bar-stats .fp-hero-bar-sep { display: block; }
        .fp-hero-bar-stat { flex: 0 0 auto; }
        .fp-hero-bar-stat-num { font-size: 20px; }
        .fp-hero-bar-stat-label { font-size: 8.5px; margin-top: 0; }
        .fp-hero-bar-cta { display: flex; flex: 1 1 auto; flex-direction: column; gap: 6px; margin-left: 0; margin-right: 0; padding-top: 0; align-items: flex-start; }
        .fp-hero-bar .tp-btn { font-size: 10px; padding: 8px 10px; }
        .fp-hero-right {
            grid-template-columns: repeat(4, 1fr);
            grid-template-rows: 1fr;
            height: 120px;
            min-height: 120px;
            contain: layout style;
        }
        .fp-hero-cell { min-height: 120px; }
        .fp-hero-cell img {
            width: 100%;
            height: 120px;
            object-fit: cover;
        }
        .fp-hero-cell--tall { grid-row: 1 !important; grid-column: 1 !important; }
        .fp-hero-right .fp-hero-cell:nth-child(2) { grid-row: 1 !important; grid-column: 2 !important; }
        .fp-hero-right .fp-hero-cell:nth-child(3) { grid-row: 1 !important; grid-column: 3 !important; }
        .fp-hero-right .fp-hero-cell:nth-child(4) { grid-row: 1 !important; grid-column: 4 !important; }
        .fp-hero-cell--accent { display: none; }
        .fp-hero-cell::after { display: none; }
    }

    @media (max-width: 768px) {
        .fp-hero-left { padding: 100px 20px 180px; }
    }

/* Complianz: fixed + no slide-in (CLS) — in blocking bundle, zero JS hack */
#cmplz-cookiebanner-container {
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: none;
}
.cmplz-cookiebanner.cmplz-bottom-right {
  position: fixed;
  bottom: 10px;
  right: 10px;
  top: auto;
  left: auto;
  transform: none;
  animation: none !important;
  -webkit-animation: none !important;
  pointer-events: auto;
}
.cmplz-hidden {
  display: none !important;
}
