/* ==========================================================================
   Prestito 24 — Design System V2
   Pixel-perfect da Figma "UI Design 2" (1440 px)
   ========================================================================== */

/* --- @font-face --- */
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

/* --- Custom Properties --- */
:root {
    --p24-navy: #2E4970;
    --p24-navy-dark: #203654;
    --p24-green: #36DD6D;
    --p24-green-hover: #2bc55d;
    --p24-white: #FFFFFF;
    --p24-bg: #F9F9F9;
    --p24-bg-teal: #F1F6F5;
    --p24-bg-blue: #F3F5FC;
    --p24-border: #F3F3F3;
    --p24-text: #151515;
    --p24-text-muted: #777777;

    --p24-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --p24-container: 1280px;
    --p24-container-wide: 1440px;
    --p24-radius-pill: 500px;
    --p24-transition: 0.2s ease;
}

/* --- Reset --- */
.p24-page *, .p24-page *::before, .p24-page *::after { box-sizing: border-box; }

.p24-page {
    font-family: var(--p24-font);
    font-size: 16px;
    line-height: 180%;
    color: var(--p24-text);
    overflow-x: hidden;
    background: var(--p24-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
}

.p24-page img { max-width: 100%; height: auto; display: block; }
.p24-page a { text-decoration: none; color: inherit; }

/* --- Container --- */
.p24-container {
    width: 100%;
    max-width: var(--p24-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
.p24-page h1, .p24-page h2, .p24-page h3,
.p24-page h4, .p24-page h5 {
    font-family: var(--p24-font);
    font-weight: 400;
    color: var(--p24-navy);
    margin: 0;
}

.p24-label {
    font-family: var(--p24-font);
    font-size: 12px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--p24-text);
}

/* --- Buttons --- */
.p24-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--p24-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--p24-transition);
    white-space: nowrap;
}

.p24-btn--primary {
    padding: 16px 24px;
    background: var(--p24-green);
    color: var(--p24-navy);
    border-radius: var(--p24-radius-pill);
}
.p24-btn--primary:hover {
    background: var(--p24-green-hover);
}

.p24-btn--outline {
    padding: 16px 24px;
    background: transparent;
    color: var(--p24-text);
    border: 1px solid var(--p24-navy);
    border-radius: var(--p24-radius-pill);
}
.p24-btn--outline:hover {
    background: var(--p24-navy);
    color: var(--p24-white);
}

.p24-btn--outline-white {
    padding: 16px 24px;
    background: transparent;
    color: var(--p24-white);
    border: 1px solid var(--p24-white);
    border-radius: var(--p24-radius-pill);
}
.p24-btn--outline-white:hover {
    background: var(--p24-white);
    color: var(--p24-navy);
}

.p24-btn--sm {
    padding: 10px 20px;
    font-size: 16px;
}

.p24-btn--full {
    width: 100%;
    justify-content: center;
}

.p24-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.p24-btn:hover svg { transform: translateX(2px); transition: transform var(--p24-transition); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.p24-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--p24-white);
}

.p24-header__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: var(--p24-container);
    margin: 0 auto;
    padding: 0;
}

.p24-header__navbar {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 40px 0;
    gap: 32px;
}

.p24-header__left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.p24-header__logo { flex-shrink: 0; }
.p24-header__logo img { height: 46px; width: auto; }

.p24-header__right {
    display: flex;
    align-items: center;
    gap: 42px;
}

.p24-header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.p24-header__nav > li { position: relative; }

.p24-header__nav > li > a {
    font-family: var(--p24-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 1px;
    color: var(--p24-navy-dark);
    padding: 11px 0;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border-radius: 6px;
}
.p24-header__nav > li > a:hover { color: var(--p24-navy); }

.p24-header__nav .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='%23191919'%3E%3Cpath d='M12 14.95q-.2 0-.375-.063t-.325-.212l-4.6-4.6q-.275-.275-.275-.687t.275-.688q.275-.275.688-.275t.687.275L12 12.625l3.925-3.925q.275-.275.688-.275t.687.275q.275.275.275.688t-.275.687l-4.6 4.6q-.15.15-.325.213T12 14.95Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform var(--p24-transition);
}
.p24-header__nav .menu-item-has-children:hover > a::after { transform: rotate(180deg); }

.p24-header__nav > li.menu-item-has-children::after {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 100%;
    height: 16px;
}

.p24-header__nav .sub-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 8px);
    left: -20px;
    min-width: 280px;
    padding: 16px 0;
    background: var(--p24-white);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
    list-style: none;
    z-index: 100;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.p24-header__nav li:hover > .sub-menu {
    visibility: visible; opacity: 1; transform: translateY(0);
}
.p24-header__nav .sub-menu a {
    display: block;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--p24-text);
    transition: background var(--p24-transition);
}
.p24-header__nav .sub-menu a:hover { background: var(--p24-bg); }

.p24-header__cta .p24-btn {
    padding: 16px 24px;
    font-size: 14px;
    letter-spacing: 1px;
    min-width: 170px;
    height: 44px;
}

.p24-header__border {
    width: 100%;
    height: 1px;
    background: var(--p24-border);
}

.p24-header__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.p24-header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--p24-navy);
    margin: 5px 0;
    transition: transform .3s ease, opacity .2s ease;
    transform-origin: center;
}

.p24-header__burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.p24-header__burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.p24-header__burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HOMEPAGE — HERO
   Figma: 1440 × 760, padding 50px 0 80px
   ========================================================================== */
.p24-home-hero {
    padding: 50px 0 80px;
}

.p24-home-hero__grid {
    display: flex;
    gap: 28.8px;
    max-width: var(--p24-container-wide);
    margin: 0 auto;
}

.p24-home-hero__text {
    flex: 0 0 705.6px;
    max-width: 705.6px;
    padding: 43.2px 76px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 43.2px;
}

.p24-home-hero__content {
    display: flex;
    flex-direction: column;
    gap: 14.4px;
}

.p24-home-hero__titles {
    display: flex;
    flex-direction: column;
    gap: 7.2px;
}

.p24-home-hero__title {
    font-size: 72px;
    font-weight: 400;
    line-height: 120%;
    color: var(--p24-navy);
}

.p24-home-hero__subtitle {
    font-size: 22px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text);
    max-width: 540px;
}

.p24-home-hero__buttons {
    display: flex;
    gap: 16px;
    padding-top: 20px;
}

.p24-home-hero__visual {
    flex: 1;
    background: #F8F8F8;
    position: relative;
    overflow: hidden;
    min-height: 630px;
}

.p24-home-hero__img {
    position: absolute;
    width: 130%;
    height: 110%;
    top: -5%;
    left: -3%;
    object-fit: cover;
}

/* ==========================================================================
   HOMEPAGE — PROMO BOX (Offerta promozionale)
   Figma: 4 cards in row, gap 25.71px, first card navy
   ========================================================================== */
.p24-home-promo {
    padding: 0 0 26px;
}

.p24-home-promo .p24-container {
    max-width: 1288px;
}

.p24-home-promo__border-top {
    height: 1px;
    background: var(--p24-border);
    margin-bottom: 26px;
}

.p24-home-promo__label {
    font-size: 18px;
    font-weight: 400;
    line-height: 130%;
    color: var(--p24-navy);
    margin-bottom: 26px;
}

.p24-home-promo__grid {
    display: flex;
    gap: 25.71px;
    margin-bottom: 36px;
}

.p24-home-promo__card {
    flex: 1;
    padding: 38.57px;
    display: flex;
    flex-direction: column;
    gap: 6.43px;
}

.p24-home-promo__card:first-child {
    background: var(--p24-navy-dark);
}
.p24-home-promo__card:first-child .p24-home-promo__key,
.p24-home-promo__card:first-child .p24-home-promo__val {
    color: #F5F5F5;
}

.p24-home-promo__card:not(:first-child) {
    background: var(--p24-bg);
}

.p24-home-promo__key {
    font-size: 16px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text);
}

.p24-home-promo__val {
    font-size: 32px;
    font-weight: 400;
    line-height: 160%;
    color: var(--p24-navy);
}

.p24-home-promo__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 26px;
}

.p24-home-promo__legal {
    font-size: 12px;
    font-weight: 400;
    line-height: 130%;
    color: var(--p24-text);
    flex: 1;
}

.p24-home-promo__border-bottom {
    height: 1px;
    background: var(--p24-border);
    margin-top: 26px;
}

/* ==========================================================================
   HOMEPAGE — IL PRESTITO SU MISURA + 3 CARD SERVIZI
   Figma: left 302px / right 956px, then 3 cards 302×302
   ========================================================================== */
.p24-home-work {
    padding: 80px 0 0;
}

.p24-home-work .p24-container {
    max-width: 1286px;
}

.p24-home-work__top {
    display: flex;
    justify-content: flex-end;
    gap: 26px;
    margin-bottom: 26px;
}

.p24-home-work__info {
    width: 302px;
    flex-shrink: 0;
    padding: 48px 0;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.p24-home-work__info-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.p24-home-work__info-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.p24-home-work__title {
    font-size: 38px;
    font-weight: 400;
    line-height: 140%;
    color: var(--p24-navy);
}

.p24-home-work__image {
    flex: 1;
    max-width: 956px;
    overflow: hidden;
}

.p24-home-work__image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* 3 Cards Servizi */
.p24-home-work__cards {
    display: flex;
    gap: 25.71px;
}

.p24-home-services__card {
    width: 302.14px;
    height: 302.14px;
    flex-shrink: 0;
    padding: 38.57px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform var(--p24-transition);
}
.p24-home-services__card:hover { transform: translateY(-3px); }

.p24-home-services__card--blue { background: #E6EFF1; }
.p24-home-services__card--green { background: #EBFCF0; }
.p24-home-services__card--yellow { background: #FFFAE7; }

.p24-home-services__card-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.p24-home-services__label {
    font-size: 12px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--p24-text);
}

.p24-home-services__title {
    font-size: 26px;
    font-weight: 400;
    line-height: 140%;
    color: var(--p24-navy);
    margin: 0;
}

.p24-home-services__arrow {
    width: 50px;
    height: 50px;
    border-radius: 100px;
    background: var(--p24-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    align-self: flex-end;
}
.p24-home-services__arrow svg { width: 14px; height: 14px; color: var(--p24-navy); }

/* ==========================================================================
   HOMEPAGE — VANTAGGI
   Figma: image 436px, content 802px, padding-top 100px
   ========================================================================== */
.p24-home-vantaggi {
    padding: 100px 0 0;
}

.p24-home-vantaggi .p24-container {
    max-width: 1286px;
}

.p24-home-vantaggi__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 0;
}

.p24-home-vantaggi__border {
    height: 1px;
    background: var(--p24-border);
}

.p24-home-vantaggi__grid {
    display: flex;
    align-items: center;
    padding: 36px 0;
    gap: 48px;
}

.p24-home-vantaggi__image {
    width: 436px;
    flex-shrink: 0;
}
.p24-home-vantaggi__image img {
    width: 436px;
    height: 540px;
    object-fit: cover;
}

.p24-home-vantaggi__content {
    flex: 1;
    max-width: 802px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.p24-home-vantaggi__title {
    font-size: 38px;
    font-weight: 400;
    line-height: 130%;
    color: var(--p24-navy);
}

.p24-home-vantaggi__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.p24-home-vantaggi__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.p24-home-vantaggi__badge {
    width: 26px;
    height: 26px;
    border-radius: 100px;
    background: var(--p24-bg-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
}
.p24-home-vantaggi__badge svg { width: 18px; height: 18px; color: var(--p24-navy); }

.p24-home-vantaggi__item-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.p24-home-vantaggi__item-title {
    font-size: 22px;
    font-weight: 400;
    line-height: 160%;
    color: var(--p24-navy);
}

.p24-home-vantaggi__item-desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text);
}

/* ==========================================================================
   HOMEPAGE — CONVENZIONI
   Figma: bg #F3F5FC, 1286×200, navy circles 140px
   ========================================================================== */
.p24-home-conv {
    padding: 36px 0;
}

.p24-home-conv .p24-container { max-width: 1286px; }

.p24-home-conv__box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 60px;
    gap: 68px;
    background: var(--p24-bg-blue);
}

.p24-home-conv__title {
    font-size: 24px;
    font-weight: 400;
    line-height: 160%;
    color: var(--p24-navy);
}

.p24-home-conv__circles {
    display: flex;
    gap: 36px;
}

.p24-home-conv__circle {
    width: 140px;
    height: 140px;
    border-radius: 100px;
    background: var(--p24-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    transition: background var(--p24-transition);
}
.p24-home-conv__circle:hover { background: var(--p24-navy-dark); }

.p24-home-conv__circle-text {
    font-size: 18px;
    font-weight: 500;
    line-height: 140%;
    color: var(--p24-white);
    padding: 0 10px;
}

/* ==========================================================================
   HOMEPAGE — FORM PREVENTIVO
   Figma: left 632px, right 628px bg #F1F6F5, padding 96px top
   ========================================================================== */
.p24-home-form {
    padding: 96px 0 100px;
}

.p24-home-form .p24-container { max-width: 1286px; }

.p24-home-form__grid {
    display: flex;
    gap: 27px;
    align-items: flex-start;
}

.p24-home-form__info {
    width: 632px;
    flex-shrink: 0;
    padding: 64px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.p24-home-form__title {
    font-size: 38px;
    font-weight: 400;
    line-height: 120%;
    color: var(--p24-navy);
    max-width: 600px;
}

.p24-home-form__desc {
    font-size: 24px;
    font-weight: 400;
    line-height: 160%;
    color: var(--p24-text);
    max-width: 500px;
}

.p24-home-form__card {
    flex: 1;
    background: var(--p24-bg-teal);
    padding: 64px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Form fields placeholder */
.p24-form-group { display: flex; flex-direction: column; gap: 16px; }

.p24-form-label {
    font-size: 14px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--p24-text);
}

.p24-form-input,
.p24-form-select {
    width: 100%;
    padding: 20px 24px;
    font-family: var(--p24-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text-muted);
    background: var(--p24-white);
    border: none;
    appearance: none;
    outline: none;
}
.p24-form-input:focus, .p24-form-select:focus {
    box-shadow: 0 0 0 2px var(--p24-green);
}

.p24-form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23777' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 24px center;
    padding-right: 52px;
}

/* ==========================================================================
   HOMEPAGE — SEDI (CTA)
   Figma: gradient overlay on image, padding 100px
   ========================================================================== */
.p24-home-sedi {
    padding: 100px 0;
}

.p24-home-sedi .p24-container { max-width: 1286px; }

.p24-home-sedi__box {
    padding: 64.29px 51.43px;
    background: var(--p24-navy-dark);
    background-size: cover;
    background-position: center;
    display: flex;
    gap: 25.71px;
}

.p24-home-sedi__info {
    display: flex;
    flex-direction: column;
    gap: 38.57px;
    max-width: 904px;
    flex: 1;
}

.p24-home-sedi__text {
    display: flex;
    flex-direction: column;
    gap: 6.43px;
}

.p24-home-sedi__label {
    font-size: 12px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--p24-white);
}

.p24-home-sedi__title {
    font-size: 51.43px;
    font-weight: 400;
    line-height: 120%;
    color: var(--p24-white);
}

.p24-home-sedi__subtitle {
    font-size: 19.29px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-white);
}

.p24-home-sedi__box .p24-btn--primary {
    padding: 12.86px 19.29px;
    font-size: 16px;
    letter-spacing: 0.8px;
    align-self: flex-start;
}

/* ==========================================================================
   FOOTER
   Figma: bg #203654, height 589px
   ========================================================================== */
.p24-footer {
    background: var(--p24-navy-dark);
    color: var(--p24-white);
    position: relative;
}

.p24-footer a { color: var(--p24-white); transition: opacity var(--p24-transition); }
.p24-footer a:hover { opacity: 1; }

.p24-footer__main {
    max-width: var(--p24-container);
    margin: 0 auto;
    padding: 55px 24px 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.p24-footer__brand { display: flex; flex-direction: column; gap: 20px; align-self: start; }
.p24-footer__brand img { height: 33px; width: auto; }
.p24-footer__brand .p24-btn--sm {
    background: var(--p24-green);
    color: #052F5F;
    border-radius: 40px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    align-self: flex-start;
}

.p24-footer__col { display: flex; flex-direction: column; gap: 24px; }

.p24-footer .p24-footer__heading {
    font-size: 16px;
    font-weight: 700;
    line-height: 140%;
    color: #FFFFFF;
    margin: 0;
    opacity: 1;
}

.p24-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.p24-footer__links a {
    font-size: 16px;
    font-weight: 400;
    line-height: 140%;
    opacity: 0.75;
}

.p24-footer__bottom {
    max-width: var(--p24-container);
    margin: 0 auto;
    padding: 24px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.p24-footer__social {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.p24-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.125);
    opacity: 1;
}
.p24-footer__social a:hover { background: rgba(255,255,255,0.1); }
.p24-footer__social svg { width: 16px; height: 16px; fill: var(--p24-white); }

.p24-footer__company {
    font-size: 14.14px;
    font-weight: 700;
    line-height: 140%;
    color: var(--p24-white);
    margin: 0 0 8px;
}

.p24-footer__legal {
    font-size: 12px;
    font-weight: 400;
    line-height: 140%;
    color: var(--p24-white);
    opacity: 0.75;
    margin: 0;
}

.p24-footer__disclaimer {
    max-width: var(--p24-container);
    margin: 0 auto;
    padding: 0 0 30px;
    text-align: center;
}

.p24-footer__disclaimer p {
    font-size: 12px;
    font-weight: 400;
    line-height: 140%;
    color: #F5F5F5;
    opacity: 0.75;
    margin: 0;
}

/* ==========================================================================
   REUSABLE — PAGE HERO (centered, used on Chi Siamo, Servizi, etc.)
   ========================================================================== */
.p24-page-hero {
    padding: 60px 0 80px;
    text-align: center;
}

.p24-page-hero .p24-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.p24-page-hero__accent {
    width: 40px;
    height: 3px;
    background: var(--p24-green);
    margin-bottom: 8px;
}

.p24-page-hero__title {
    font-size: 51px;
    font-weight: 400;
    line-height: 120%;
    color: var(--p24-navy);
}

.p24-page-hero__subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text);
    max-width: 640px;
}

.p24-page-hero__buttons {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

/* ==========================================================================
   REUSABLE — SPLIT (image + text, 50/50)
   ========================================================================== */
.p24-split {
    padding: 80px 0;
}

.p24-split .p24-container { max-width: 1286px; }

.p24-split__grid {
    display: flex;
    align-items: center;
    gap: 48px;
}

.p24-split__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.p24-split__accent {
    width: 40px;
    height: 3px;
    background: var(--p24-green);
}

.p24-split__title {
    font-size: 38px;
    font-weight: 400;
    line-height: 140%;
    color: var(--p24-navy);
}

.p24-split__title--large {
    font-size: 32px;
    line-height: 150%;
}

.p24-split__desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text);
}

.p24-split__image {
    flex: 1;
    overflow: hidden;
}

.p24-split__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ==========================================================================
   REUSABLE — STATS ROW
   ========================================================================== */
.p24-stats {
    padding: 40px 0;
}

.p24-stats .p24-container { max-width: 1286px; }

.p24-stats__border {
    height: 1px;
    background: var(--p24-border);
}

.p24-stats__row {
    display: flex;
    gap: 26px;
    padding: 40px 0;
}

.p24-stats__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.p24-stats__value {
    font-family: var(--p24-font);
    font-size: 48px;
    font-weight: 400;
    line-height: 120%;
    color: var(--p24-navy);
}

.p24-stats__label {
    font-size: 16px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text);
}

.p24-stats__row--large .p24-stats__value {
    font-size: 56px;
}

/* ==========================================================================
   REUSABLE — PHOTO GRID
   ========================================================================== */
.p24-photo-grid {
    display: grid;
    gap: 26px;
}

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

.p24-photo-grid__item { overflow: hidden; }

.p24-photo-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   CHI SIAMO — COMPLETE PAGE LAYOUT (Figma "UI Design 2")
   ========================================================================== */

/* --- Hero (split: photo left + text right) --- */
.p24-chi-hero {
    padding: 64px 0 26px;
}

.p24-chi-hero__grid {
    max-width: 1286px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: flex-start;
    gap: 26px;
}

.p24-chi-hero__image {
    width: 630px;
    height: 562px;
    flex-shrink: 0;
    overflow: hidden;
    background: #F8F8F8;
}

.p24-chi-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p24-chi-hero__content {
    flex: 1;
    padding: 39px;
    display: flex;
    flex-direction: column;
    min-height: 562px;
}

.p24-chi-hero__text {
    display: flex;
    flex-direction: column;
    gap: 13px;
    flex: 1;
}

.p24-chi-hero__label {
    font-size: 12px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--p24-text);
}

.p24-chi-hero__heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.p24-chi-hero__title {
    font-size: 64px;
    font-weight: 400;
    line-height: 120%;
    color: var(--p24-navy);
    margin: 0;
}

.p24-chi-hero__subtitle {
    font-size: 19px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text);
    max-width: 482px;
}

.p24-chi-hero__cta {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
}

.p24-chi-hero__badge {
    width: 39px;
    height: 39px;
    background: var(--p24-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.p24-chi-hero__badge svg {
    width: 16px;
    height: 16px;
    color: white;
}

.p24-chi-hero__cta-text {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--p24-text);
}

/* --- Sidebar + Main reusable layout --- */
.p24-chi-sec {
    padding-top: 129px;
}

.p24-chi-sec--sm {
    padding-top: 100px;
}

.p24-chi-layout {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 76px;
    display: flex;
    gap: 64px;
    align-items: flex-start;
}

.p24-chi-layout--pb100 { padding-bottom: 100px; }
.p24-chi-layout--pb60  { padding-bottom: 60px; }

/* Sidebar card (376px, teal bg) */
.p24-chi-sidebar {
    width: 376px;
    flex-shrink: 0;
    padding: 48px;
    background: var(--p24-bg-teal);
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.p24-chi-sidebar__content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.p24-chi-sidebar__title {
    font-size: 32px;
    font-weight: 400;
    line-height: 140%;
    color: var(--p24-navy);
}

/* Main content area */
.p24-chi-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.p24-chi-main__block {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.p24-chi-main__title {
    font-size: 48px;
    font-weight: 400;
    line-height: 130%;
    color: var(--p24-navy);
    margin: 0;
}

.p24-chi-main__desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text);
}

.p24-chi-main__image {
    width: 100%;
    height: 560px;
    overflow: hidden;
}

.p24-chi-main__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Values box (FIDUCIA / RISPETTO / TRASPARENZA) --- */
.p24-chi-values {
    padding: 40px;
    background: var(--p24-bg-teal);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.p24-chi-values__row {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px 0;
}

.p24-chi-values__row:first-child { padding-top: 0; }
.p24-chi-values__row:last-child  { padding-bottom: 0; }

.p24-chi-values__border {
    height: 1px;
    background: var(--p24-border);
}

.p24-chi-values__label {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 180px;
    flex-shrink: 0;
}

.p24-chi-values__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #052F5F;
}

.p24-chi-values__name {
    font-size: 16px;
    font-weight: 600;
    line-height: 140%;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--p24-navy);
}

.p24-chi-values__desc {
    flex: 1;
    font-size: 16px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text);
}

/* --- Stats cards grid --- */
.p24-chi-stats {
    max-width: 1286px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.p24-chi-stats__row {
    display: flex;
    gap: 26px;
}

.p24-chi-stat {
    width: 302px;
    height: 302px;
    flex-shrink: 0;
    padding: 39px;
    display: flex;
    flex-direction: column;
    gap: 39px;
}

.p24-chi-stat--blue  { background: var(--p24-bg-blue); }
.p24-chi-stat--muted { background: var(--p24-bg); }
.p24-chi-stat--teal  { background: var(--p24-bg-teal); }
.p24-chi-stat--wide  { width: auto; flex: 1; }

.p24-chi-stat__inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: 26px;
}

.p24-chi-stat__top {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.p24-chi-stat__number {
    font-size: 51px;
    font-weight: 400;
    line-height: 120%;
    color: var(--p24-navy);
    margin: 0;
}

.p24-chi-stat__label {
    font-size: 16px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--p24-navy);
}

.p24-chi-stat__desc {
    font-size: 15px;
    font-weight: 400;
    line-height: 160%;
    color: var(--p24-text);
}

.p24-chi-stat--img {
    padding: 0;
    overflow: hidden;
    background: #F8F8F8;
}

.p24-chi-stat--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Team section --- */
.p24-chi-team {
    padding: 100px 0;
}

.p24-chi-team__container {
    max-width: 1286px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 51px;
}

.p24-chi-team__header {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.p24-chi-team__label-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.p24-chi-team__label {
    font-size: 12px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--p24-text);
}

.p24-chi-team__border {
    height: 1px;
    background: var(--p24-border);
}

.p24-chi-team__title {
    font-size: 39px;
    font-weight: 400;
    line-height: 130%;
    color: var(--p24-navy);
    max-width: 1192px;
    margin: 0;
}

.p24-chi-team__grid {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.p24-chi-team__row {
    display: flex;
    gap: 26px;
}

/* Team info card (first card in row 1) */
.p24-chi-team-info {
    width: 302px;
    flex-shrink: 0;
    padding: 39px;
    background: #F1F5F9;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.p24-chi-team-info__title {
    font-size: 26px;
    font-weight: 400;
    line-height: 140%;
    color: var(--p24-navy);
}

.p24-chi-team-info__desc {
    font-size: 13px;
    font-weight: 400;
    line-height: 160%;
    color: var(--p24-text);
}

/* Team member card */
.p24-chi-member {
    width: 302px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.p24-chi-member__photo {
    width: 302px;
    height: 434px;
    overflow: hidden;
    background: #F8F8F8;
}

.p24-chi-member__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p24-chi-member__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 13px;
    gap: 6px;
}

.p24-chi-member__name {
    font-size: 16px;
    font-weight: 400;
    line-height: 140%;
    color: var(--p24-text);
    margin: 0;
}

.p24-chi-member__role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border: 1px solid rgba(21, 21, 21, 0.6);
    border-radius: 402px;
    font-size: 12px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.2px;
    color: var(--p24-text);
    white-space: nowrap;
}

/* --- CTA Candidati section --- */
.p24-chi-cta {
    padding: 100px 0;
}

.p24-chi-cta__box {
    max-width: 1286px;
    margin: 0 auto;
    padding: 64px 51px;
    background: var(--p24-bg-teal);
    display: flex;
    gap: 26px;
}

.p24-chi-cta__label {
    width: 254px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--p24-text);
}

.p24-chi-cta__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 39px;
}

.p24-chi-cta__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.p24-chi-cta__title {
    font-size: 51px;
    font-weight: 400;
    line-height: 120%;
    color: var(--p24-navy);
    margin: 0;
}

.p24-chi-cta__desc {
    font-size: 19px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text);
    max-width: 482px;
}

/* ==========================================================================
   REUSABLE — TEAM GRID
   ========================================================================== */
.p24-team {
    padding: 80px 0;
}

.p24-team .p24-container { max-width: 1286px; }

.p24-team__header {
    margin-bottom: 40px;
}

.p24-team__title {
    font-size: 24px;
    font-weight: 400;
    line-height: 160%;
    color: var(--p24-navy);
}

.p24-team__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.p24-team__member {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.p24-team__photo {
    overflow: hidden;
    aspect-ratio: 5/6;
}

.p24-team__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p24-team__name {
    font-size: 18px;
    font-weight: 500;
    line-height: 140%;
    color: var(--p24-navy);
    margin: 0;
}

.p24-team__role {
    font-size: 14px;
    font-weight: 400;
    line-height: 140%;
    color: var(--p24-text-muted);
}

/* ==========================================================================
   REUSABLE — CTA OVERLAY (dark image + text)
   ========================================================================== */
.p24-cta-overlay {
    padding: 100px 0;
}

.p24-cta-overlay .p24-container { max-width: 1286px; }

.p24-cta-overlay__box {
    padding: 64px 52px;
    background: linear-gradient(0deg, rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                var(--p24-bg-teal);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    gap: 48px;
}

.p24-cta-overlay__info {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 900px;
}

.p24-cta-overlay__label {
    font-size: 12px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--p24-white);
}

.p24-cta-overlay__title {
    font-size: 51px;
    font-weight: 400;
    line-height: 120%;
    color: var(--p24-white);
}

.p24-cta-overlay__box .p24-btn--primary {
    align-self: flex-start;
}

.p24-cta-overlay__image {
    flex: 0 0 40%;
    max-width: 500px;
    overflow: hidden;
}

.p24-cta-overlay__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   REUSABLE — CTA NAVY BANNER
   ========================================================================== */
.p24-cta-navy {
    padding: 0;
}

.p24-cta-navy .p24-container {
    max-width: 100%;
    padding: 0;
}

.p24-cta-navy__inner {
    background: var(--p24-navy-dark);
    padding: 64px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.p24-cta-navy__title {
    font-size: 38px;
    font-weight: 400;
    line-height: 130%;
    color: var(--p24-white);
}

/* ==========================================================================
   REUSABLE — HERO OVERLAY (product pages: dip.pubblici, privati, pensionati, doppio quinto)
   Full-width image with dark overlay, title left
   ========================================================================== */
.p24-hero-overlay {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.p24-hero-overlay__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.p24-hero-overlay__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p24-hero-overlay__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 70%, transparent 100%);
}

.p24-hero-overlay__content {
    position: relative;
    z-index: 1;
    max-width: var(--p24-container);
    margin: 0 auto;
    padding: 80px 24px 60px;
    width: 100%;
}

.p24-hero-overlay__inner {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.p24-hero-overlay__label {
    font-size: 12px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--p24-white);
    opacity: 0.8;
}

.p24-hero-overlay__title {
    font-size: 48px;
    font-weight: 400;
    line-height: 120%;
    color: var(--p24-white);
}

.p24-hero-overlay__subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-white);
    opacity: 0.9;
}

.p24-hero-overlay .p24-btn--primary {
    align-self: flex-start;
    margin-top: 8px;
}

/* ==========================================================================
   REUSABLE — COME FUNZIONA (product pages)
   Left: mini preventivo CTA box, Right: title + description + image
   ========================================================================== */
.p24-come-funziona {
    padding: 80px 0;
}

.p24-come-funziona .p24-container { max-width: 1286px; }

.p24-come-funziona__grid {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.p24-come-funziona__sidebar {
    width: 302px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 0;
}

.p24-come-funziona__sidebar-title {
    font-size: 26px;
    font-weight: 400;
    line-height: 140%;
    color: var(--p24-navy);
}

.p24-come-funziona__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.p24-come-funziona__title {
    font-size: 38px;
    font-weight: 400;
    line-height: 130%;
    color: var(--p24-navy);
}

.p24-come-funziona__text {
    font-size: 16px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text);
}

.p24-come-funziona__image {
    overflow: hidden;
}

.p24-come-funziona__image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ==========================================================================
   REUSABLE — VANTAGGI (product pages — reuses home vantaggi layout)
   Label + border, image left + checklist right
   ========================================================================== */
.p24-vantaggi {
    padding: 80px 0;
}

.p24-vantaggi .p24-container { max-width: 1286px; }

.p24-vantaggi__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 0;
}

.p24-vantaggi__border {
    height: 1px;
    background: var(--p24-border);
}

.p24-vantaggi__grid {
    display: flex;
    align-items: center;
    padding: 36px 0;
    gap: 48px;
}

.p24-vantaggi__image {
    width: 436px;
    flex-shrink: 0;
}
.p24-vantaggi__image img {
    width: 436px;
    height: 540px;
    object-fit: cover;
}

.p24-vantaggi__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.p24-vantaggi__title {
    font-size: 38px;
    font-weight: 400;
    line-height: 130%;
    color: var(--p24-navy);
}

.p24-vantaggi__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.p24-vantaggi__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.p24-vantaggi__badge {
    width: 26px;
    height: 26px;
    border-radius: 100px;
    background: var(--p24-bg-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
}
.p24-vantaggi__badge svg { width: 18px; height: 18px; color: var(--p24-navy); }

.p24-vantaggi__item-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.p24-vantaggi__item-title {
    font-size: 22px;
    font-weight: 400;
    line-height: 160%;
    color: var(--p24-navy);
}

.p24-vantaggi__item-desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text);
}

/* ==========================================================================
   REUSABLE — NUMBERED STEPS (1-2-3-4)
   ========================================================================== */
.p24-steps {
    padding: 60px 0;
}

.p24-steps .p24-container { max-width: 1286px; }

.p24-steps__grid {
    display: flex;
    gap: 26px;
}

.p24-steps__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0;
}

.p24-steps__number {
    font-family: var(--p24-font);
    font-size: 64px;
    font-weight: 400;
    line-height: 100%;
    color: var(--p24-navy);
}

.p24-steps__accent {
    width: 40px;
    height: 3px;
    background: var(--p24-green);
}

.p24-steps__title {
    font-size: 16px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--p24-text);
}

.p24-steps__desc {
    font-size: 14px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text-muted);
}

/* ==========================================================================
   REUSABLE — CONSULENZA GRATUITA (light centered CTA)
   ========================================================================== */
.p24-consulenza {
    padding: 80px 0;
}

.p24-consulenza .p24-container { max-width: 1286px; }

.p24-consulenza__box {
    background: #F5F7FA;
    border-radius: var(--p24-radius-lg);
    padding: 64px 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.p24-consulenza__title {
    font-size: 38px;
    font-weight: 400;
    line-height: 130%;
    color: var(--p24-navy);
}

.p24-consulenza__desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 180%;
    color: #4A5568;
    max-width: 640px;
}

/* ==========================================================================
   REUSABLE — FORM PREVENTIVO (generic, reusable across pages)
   ========================================================================== */
.p24-form-section {
    padding: 96px 0 100px;
}

.p24-form-section .p24-container { max-width: 1286px; }

.p24-form-section__grid {
    display: flex;
    gap: 27px;
    align-items: flex-start;
}

.p24-form-section__info {
    width: 632px;
    flex-shrink: 0;
    padding: 64px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.p24-form-section__title {
    font-size: 38px;
    font-weight: 400;
    line-height: 120%;
    color: var(--p24-navy);
    max-width: 600px;
}

.p24-form-section__desc {
    font-size: 24px;
    font-weight: 400;
    line-height: 160%;
    color: var(--p24-text);
    max-width: 500px;
}

.p24-form-section__phone {
    font-size: 24px;
    font-weight: 500;
    line-height: 160%;
    color: var(--p24-navy);
}

.p24-form-section__note {
    font-size: 16px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text);
}

.p24-form-section__card {
    flex: 1;
    background: var(--p24-bg-teal);
    padding: 64px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ==========================================================================
   REUSABLE — PRESTITO CON DELEGA (split: text left + 2 images right)
   Used in Dip. Pubblici + Privati
   ========================================================================== */
.p24-delega {
    padding: 80px 0;
}

.p24-delega .p24-container { max-width: 1286px; }

.p24-delega__grid {
    display: flex;
    gap: 48px;
    align-items: center;
}

.p24-delega__text {
    flex: 0 0 38%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.p24-delega__title {
    font-size: 38px;
    font-weight: 400;
    line-height: 130%;
    color: var(--p24-navy);
}

.p24-delega__title span {
    color: var(--p24-green);
}

.p24-delega__desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text);
}

.p24-delega__images {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.p24-delega__images img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

/* ==========================================================================
   REUSABLE — FAQ SPLIT (product pages: left title + right accordion)
   Used in Doppio Quinto
   ========================================================================== */
.p24-faq-section {
    padding: 80px 0;
}

.p24-faq-section .p24-container { max-width: 1286px; }

.p24-faq-section__grid {
    display: flex;
    gap: 64px;
    align-items: flex-start;
}

.p24-faq-section__info {
    flex: 0 0 38%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
}

.p24-faq-section__title {
    font-size: 38px;
    font-weight: 400;
    line-height: 130%;
    color: var(--p24-navy);
}

.p24-faq-section__desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text);
}

.p24-faq-section__list {
    flex: 1;
}

/* ==========================================================================
   REUSABLE — FORM FIELDS (inside .p24-form-section__card)
   ========================================================================== */
.p24-form-section__card-title {
    font-size: 22px;
    font-weight: 500;
    line-height: 140%;
    color: var(--p24-navy);
}

.p24-form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.p24-form-fields__row {
    display: flex;
    gap: 16px;
}

.p24-form-fields__group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.p24-form-fields__label {
    font-size: 12px;
    font-weight: 600;
    line-height: 140%;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--p24-text-muted);
}

.p24-form-fields__input,
.p24-form-fields__select {
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--p24-border);
    background: var(--p24-white);
    font-family: var(--p24-font);
    font-size: 15px;
    color: var(--p24-text);
    outline: none;
    transition: border-color .2s;
}

.p24-form-fields__input:focus,
.p24-form-fields__select:focus {
    border-color: var(--p24-green);
}

.p24-form-fields__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.p24-form-fields__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 160%;
    color: var(--p24-text-muted);
}

.p24-form-fields__check input {
    margin-top: 3px;
    flex-shrink: 0;
}

.p24-form-fields__submit {
    margin-top: 8px;
}

/* ==========================================================================
   Reusable Component Styles (template-parts)
   ========================================================================== */

/* FAQ Accordion */
.p24-faq__item { border-bottom: 1px solid var(--p24-border); }
.p24-faq__question {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 20px 0;
    font-family: var(--p24-font); font-size: 16px; font-weight: 500;
    color: var(--p24-text); background: none; border: none; cursor: pointer; text-align: left;
}
.p24-faq__question::after { content: '+'; font-size: 1.5rem; font-weight: 300; color: var(--p24-text-muted); flex-shrink: 0; margin-left: 16px; }
.p24-faq__item.is-open .p24-faq__question::after { content: '−'; }
.p24-faq__answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.p24-faq__item.is-open .p24-faq__answer { max-height: 500px; }
.p24-faq__answer-inner { padding-bottom: 20px; font-size: 15px; color: var(--p24-text-muted); line-height: 160%; }

/* ==========================================================================
   APPROFONDIMENTI / NEWS — SHARED COMPONENTS
   ========================================================================== */

/* --- Dark Hero (Approfondimenti) --- */
.p24-dark-hero {
    background: var(--p24-navy-dark);
    padding: 80px 0 64px;
}

.p24-dark-hero__inner {
    max-width: 1286px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.p24-dark-hero__label {
    font-size: 12px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.p24-dark-hero__title {
    font-size: 48px;
    font-weight: 400;
    line-height: 130%;
    color: var(--p24-white);
    margin: 0;
    font-style: italic;
}

.p24-dark-hero__desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 180%;
    color: rgba(255, 255, 255, 0.75);
    max-width: 800px;
}

.p24-dark-hero__buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

/* --- Simple Hero (News) --- */
.p24-simple-hero {
    padding: 64px 0 48px;
}

.p24-simple-hero__inner {
    max-width: 1286px;
    margin: 0 auto;
    padding: 0 24px;
}

.p24-simple-hero__title {
    font-size: 64px;
    font-weight: 400;
    line-height: 120%;
    color: var(--p24-navy);
    margin: 0 0 12px;
    font-style: italic;
}

.p24-simple-hero__subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text);
    max-width: 600px;
}

/* --- Featured Section (Guide al Credito header + 2 large cards) --- */
.p24-featured {
    padding: 64px 0;
}

.p24-featured__inner {
    max-width: 1286px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.p24-featured__sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.p24-featured__title {
    font-size: 38px;
    font-weight: 400;
    line-height: 130%;
    color: var(--p24-navy);
    margin: 0;
    font-style: italic;
}

.p24-featured__cards {
    flex: 1;
    display: flex;
    gap: 26px;
}

.p24-featured__cards .p24-article {
    flex: 1;
}

/* --- Article Card --- */
.p24-article {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

a.p24-article--link {
    cursor: pointer;
    transition: transform .2s ease;
}

a.p24-article--link:hover {
    transform: translateY(-4px);
}

a.p24-article--link:hover .p24-article__title {
    color: var(--p24-navy);
}

.p24-article__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #F8F8F8;
    margin-bottom: 16px;
    border-radius: 12px;
}

.p24-article__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.p24-article:hover .p24-article__image img {
    transform: scale(1.03);
}

.p24-article__label {
    font-size: 12px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--p24-text);
    margin-bottom: 4px;
}

.p24-article__title {
    font-size: 16px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text);
    margin: 0;
}

.p24-article__title a {
    color: inherit;
    text-decoration: none;
}

.p24-article__title a:hover {
    color: var(--p24-navy);
}

/* --- Article Grid (3 columns) --- */
.p24-article-grid {
    padding: 0 0 80px;
}

.p24-article-grid__inner {
    max-width: 1286px;
    margin: 0 auto;
    padding: 0 24px;
}

.p24-article-grid__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 26px;
}

.p24-article-grid__more {
    text-align: center;
    margin-top: 48px;
}

/* --- Split FAQ (title left + accordion right) --- */
.p24-split-faq {
    padding: 80px 0;
    border-top: 1px solid var(--p24-border);
}

.p24-split-faq__inner {
    max-width: 1286px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 64px;
    align-items: flex-start;
}

.p24-split-faq__sidebar {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.p24-split-faq__title {
    font-size: 38px;
    font-weight: 400;
    line-height: 140%;
    color: var(--p24-navy);
    margin: 0;
    font-style: italic;
}

.p24-split-faq__accordion {
    flex: 1;
}

/* --- Contact CTA Bar --- */
.p24-contact-cta {
    padding: 48px 0;
}

.p24-contact-cta__box {
    max-width: 1286px;
    margin: 0 auto;
    padding: 40px 48px;
    background: var(--p24-bg-teal);
    display: flex;
    align-items: center;
    gap: 40px;
    border-radius: 0;
}

.p24-contact-cta__heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.p24-contact-cta__title {
    font-size: 32px;
    font-weight: 400;
    line-height: 140%;
    color: var(--p24-navy);
    margin: 0;
    font-style: italic;
}

.p24-contact-cta__sub {
    font-size: 14px;
    color: var(--p24-text-muted);
}

.p24-contact-cta__info {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.p24-contact-cta__item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--p24-text);
}

.p24-contact-cta__icon {
    width: 40px;
    height: 40px;
    background: var(--p24-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.p24-contact-cta__icon svg {
    width: 18px;
    height: 18px;
    color: var(--p24-navy-dark);
}

.p24-contact-cta__detail strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--p24-text);
}

.p24-contact-cta__detail small {
    font-size: 12px;
    color: var(--p24-text-muted);
}

/* ==========================================================================
   LA VITA IN PRESTITO24 — LAVORA / PROFESSIONISTI / POSIZIONI
   ========================================================================== */

/* --- Vita Hero (photo left + content right) --- */
/* --- Vita Hero (photo left + content right) --- */
.p24-vita-hero {
    overflow: hidden;
}

.p24-vita-hero__grid {
    display: flex;
    min-height: 562px;
}

.p24-vita-hero__image {
    width: 630px;
    flex-shrink: 0;
    overflow: hidden;
    background: #F8F8F8;
}

.p24-vita-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.p24-vita-hero__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 13px;
    padding: 39px;
}

.p24-vita-hero__label {
    font-size: 12px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--p24-text);
}

.p24-vita-hero__title {
    font-size: 64px;
    font-weight: 400;
    line-height: 120%;
    color: #2E4970;
    margin: 0;
}

.p24-vita-hero__subtitle {
    font-size: 19px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text);
    max-width: 482px;
}

.p24-vita-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-top: 8px;
    text-decoration: none;
    color: var(--p24-text);
}

.p24-vita-hero__badge-icon {
    width: 39px;
    height: 39px;
    background: #2E4970;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.p24-vita-hero__badge-icon svg {
    width: 16px;
    height: 16px;
    color: #FFFFFF;
}

.p24-vita-hero__badge-text {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--p24-text);
}

/* --- Vita Content Split (sidebar card + main) --- */
.p24-vita-section {
    padding: 128px 0 0;
}

.p24-vita-section__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 76px 80px;
}

.p24-vita-section__layout {
    display: flex;
    gap: 64px;
    align-items: flex-start;
}

.p24-vita-section__sidebar {
    width: 376px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 48px;
    background: #F1F6F5;
}

.p24-vita-section__sidebar-heading {
    font-size: 32px;
    font-weight: 400;
    line-height: 140%;
    color: #2E4970;
    margin: 0;
}

.p24-vita-section__main {
    flex: 1;
}

.p24-vita-section__heading {
    font-size: 48px;
    font-weight: 400;
    line-height: 130%;
    color: #2E4970;
    margin: 0 0 44px;
    font-style: italic;
}

.p24-vita-section__body {
    font-size: 16px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text);
}

.p24-vita-section__body p {
    margin: 0 0 16px;
}

.p24-vita-section__photo {
    width: 100%;
    height: 560px;
    margin-top: 44px;
    border-radius: 10px;
    overflow: hidden;
}

.p24-vita-section__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Vita Values (title left + card right) --- */
.p24-vita-values {
    padding: 128px 0 0;
    background: transparent;
}

.p24-vita-values__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 76px 100px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.p24-vita-values__row {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.p24-vita-values__text {
    width: 500px;
    flex-shrink: 0;
}

.p24-vita-values__title {
    font-size: 48px;
    font-weight: 400;
    line-height: 130%;
    color: #2E4970;
    margin: 0 0 36px;
    font-style: italic;
}

.p24-vita-values__desc {
    font-size: 16px;
    line-height: 180%;
    color: var(--p24-text);
}

.p24-vita-values__card {
    flex: 1;
    background: #F1F6F5;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.p24-vita-value {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.p24-vita-value__left {
    width: 232px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.p24-vita-value__left svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.p24-vita-value__label {
    font-size: 16px;
    font-weight: 600;
    line-height: 140%;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #2E4970;
}

.p24-vita-value__desc {
    flex: 1;
    font-size: 16px;
    line-height: 180%;
    color: var(--p24-text);
    margin: 0;
}

.p24-vita-value__border {
    height: 1px;
    background: #F3F3F3;
}

.p24-vita-values__image {
    max-width: 956px;
    margin: 0 auto;
    background: #F8F8F8;
    overflow: hidden;
}

.p24-vita-values__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Vita CTA (light green card) --- */
.p24-vita-cta {
    padding: 100px 0;
}

.p24-vita-cta__inner {
    max-width: 1286px;
    margin: 0 auto;
    background: #F1F6F5;
    display: flex;
    align-items: flex-start;
    padding: 64px 51px;
    gap: 26px;
}

.p24-vita-cta__label-col {
    width: 254px;
    flex-shrink: 0;
}

.p24-vita-cta__label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--p24-text);
}

.p24-vita-cta__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: transparent;
}

.p24-vita-cta__title {
    font-size: 51px;
    font-weight: 400;
    line-height: 120%;
    color: #2E4970;
    margin: 0;
}

.p24-vita-cta__desc {
    font-size: 19px;
    line-height: 180%;
    color: var(--p24-text);
    max-width: 482px;
    margin-bottom: 32px;
}

.p24-vita-cta__content .p24-btn {
    align-self: flex-start;
}

/* --- Vita Quote (testimonial) --- */
.p24-vita-quote {
    padding: 48px 0;
}

.p24-vita-quote__inner {
    max-width: 1286px;
    margin: 0 auto;
    padding: 0 24px;
}

.p24-vita-quote__text {
    font-size: 16px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text-muted);
    font-style: italic;
    max-width: 800px;
}

/* --- Vita Dual Heading (title left + button right) --- */
.p24-vita-dual {
    padding: 80px 0 40px;
}

.p24-vita-dual__inner {
    max-width: 1286px;
    margin: 0 auto;
    padding: 0 24px;
}

.p24-vita-dual__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 24px;
}

.p24-vita-dual__title {
    font-size: 38px;
    font-weight: 400;
    line-height: 130%;
    color: var(--p24-navy);
    margin: 0;
    font-style: italic;
    max-width: 500px;
}

.p24-vita-dual__side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    flex-shrink: 0;
}

.p24-vita-dual__body {
    font-size: 16px;
    line-height: 180%;
    color: var(--p24-text);
    margin-bottom: 40px;
}

.p24-vita-dual__body p {
    margin: 0 0 16px;
}

.p24-vita-dual__photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.p24-vita-dual__photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* --- Posizioni: Simple Hero --- */
.p24-pos-hero {
    padding: 64px 0 48px;
}

.p24-pos-hero__inner {
    max-width: 1286px;
    margin: 0 auto;
    padding: 0 24px;
}

.p24-pos-hero__label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--p24-text-muted);
    margin-bottom: 8px;
}

.p24-pos-hero__title {
    font-size: 48px;
    font-weight: 400;
    line-height: 120%;
    color: var(--p24-navy);
    margin: 0 0 16px;
    font-style: italic;
}

.p24-pos-hero__subtitle {
    font-size: 16px;
    line-height: 180%;
    color: var(--p24-text);
    max-width: 640px;
}

/* --- Posizioni: Job List --- */
.p24-job-list {
    padding: 0 0 80px;
}

.p24-job-list__inner {
    max-width: 1286px;
    margin: 0 auto;
    padding: 0 24px;
}

.p24-job-row {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 32px 0;
    border-bottom: 1px solid var(--p24-border);
}

.p24-job-row:first-child {
    border-top: 1px solid var(--p24-border);
}

.p24-job-row__title {
    font-size: 20px;
    font-weight: 400;
    line-height: 140%;
    color: var(--p24-navy);
    margin: 0;
    font-style: italic;
    width: 240px;
    flex-shrink: 0;
}

.p24-job-row__desc {
    flex: 1;
    font-size: 14px;
    line-height: 170%;
    color: var(--p24-text-muted);
}

.p24-job-row__cta {
    flex-shrink: 0;
}

/* --- Candidatura Split (text left + form right) --- */
.p24-candidatura {
    padding: 80px 0;
}

.p24-candidatura__inner {
    max-width: 1286px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 64px;
    align-items: flex-start;
}

.p24-candidatura__text {
    width: 380px;
    flex-shrink: 0;
}

.p24-candidatura__label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--p24-text-muted);
    margin-bottom: 8px;
}

.p24-candidatura__title {
    font-size: 38px;
    font-weight: 400;
    line-height: 130%;
    color: var(--p24-navy);
    margin: 0 0 20px;
    font-style: italic;
}

.p24-candidatura__desc {
    font-size: 16px;
    line-height: 180%;
    color: var(--p24-text);
}

.p24-candidatura__form {
    flex: 1;
    background: var(--p24-bg-teal);
    padding: 40px;
    border-radius: 12px;
}

.p24-candidatura__form .p24-form-group {
    margin-bottom: 20px;
}

.p24-candidatura__form .p24-form-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--p24-text);
    margin-bottom: 8px;
}

.p24-candidatura__form .p24-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--p24-border);
    border-radius: 8px;
    font-family: var(--p24-font);
    font-size: 14px;
    background: var(--p24-white);
    color: var(--p24-text);
    transition: border-color var(--p24-transition);
    box-sizing: border-box;
}

.p24-candidatura__form .p24-form-input:focus {
    outline: none;
    border-color: var(--p24-green);
}

.p24-candidatura__form .p24-form-input::placeholder {
    color: var(--p24-text-muted);
}

.p24-candidatura__form select.p24-form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.p24-candidatura__file {
    display: flex;
    align-items: center;
    gap: 12px;
}

.p24-candidatura__file-info {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--p24-border);
    border-radius: 8px;
    background: var(--p24-white);
    font-size: 13px;
    color: var(--p24-text-muted);
}

.p24-candidatura__file-btn {
    padding: 10px 20px;
    border: 1px solid var(--p24-border);
    border-radius: 8px;
    font-family: var(--p24-font);
    font-size: 13px;
    font-weight: 500;
    background: var(--p24-white);
    color: var(--p24-text);
    cursor: pointer;
    white-space: nowrap;
}

.p24-candidatura__privacy {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.p24-candidatura__privacy input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.p24-candidatura__privacy-text {
    font-size: 12px;
    line-height: 170%;
    color: var(--p24-text-muted);
}

/* ==========================================================================
   CONTATTI
   ========================================================================== */

/* --- Contatti Hero (image left + content right) --- */
.p24-contatti-hero {
    overflow: hidden;
    padding: 64px 0 26px;
}

.p24-contatti-hero .p24-container {
    max-width: 1286px;
}

.p24-contatti-hero__grid {
    display: flex;
    min-height: 562px;
    gap: 26px;
}

.p24-contatti-hero__image {
    width: 630px;
    flex-shrink: 0;
    overflow: hidden;
    background: #F8F8F8;
    border-radius: 10px;
}

.p24-contatti-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p24-contatti-hero__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 39px;
}

.p24-contatti-hero__label {
    font-size: 12px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--p24-text);
}

.p24-contatti-hero__title {
    font-size: 64px;
    font-weight: 400;
    line-height: 120%;
    color: #2E4970;
    margin: 0;
    font-style: italic;
}

.p24-contatti-hero__subtitle {
    font-size: 19px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text);
    max-width: 482px;
}

/* --- Contatti: Servizi sul territorio --- */
.p24-contatti-servizi {
    padding: 77px 0 0;
}

.p24-contatti-servizi__inner {
    max-width: 1286px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 26px;
}

.p24-contatti-servizi__spacer {
    width: 302px;
    flex-shrink: 0;
}

.p24-contatti-servizi__main {
    flex: 1;
    max-width: 630px;
}

.p24-contatti-servizi__title {
    font-size: 39px;
    font-weight: 400;
    line-height: 130%;
    color: #203654;
    margin: 0 0 26px;
    font-style: italic;
}

.p24-contatti-servizi__desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 180%;
    color: #203654;
}

/* --- Contatti: Sedi Grid --- */
.p24-contatti-sedi {
    padding: 129px 0 130px;
}

.p24-contatti-sedi__inner {
    max-width: 1286px;
    margin: 0 auto;
    padding: 0 24px;
}

.p24-contatti-sedi__label {
    font-size: 12px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--p24-text);
    margin-bottom: 6px;
}

.p24-contatti-sedi__border {
    height: 1px;
    background: var(--p24-border);
    margin-bottom: 26px;
}

.p24-contatti-sedi__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.p24-sede-card {
    width: 100%;
    aspect-ratio: 1;
    padding: 39px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.p24-sede-card--photo {
    background-size: cover;
    background-position: center;
    color: var(--p24-white);
}

.p24-sede-card--photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.p24-sede-card--empty {
    background: var(--p24-white);
}

.p24-sede-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.p24-sede-card__city {
    font-size: 26px;
    font-weight: 400;
    line-height: 140%;
    color: var(--p24-white);
    margin: 0;
}

.p24-sede-card__address {
    font-size: 19px;
    font-weight: 400;
    line-height: 160%;
    color: var(--p24-white);
    margin: 0;
}

/* --- Contatti: Info Cards (sede legale, telefono, email) --- */
.p24-contatti-info {
    padding: 80px 0 0;
}

.p24-contatti-info__inner {
    max-width: 1286px;
    margin: 0 auto;
    padding: 0 76px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.p24-contatti-info-card {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 376px;
    position: relative;
    overflow: hidden;
}

.p24-contatti-info-card--dark {
    background-size: cover;
    background-position: center;
    color: var(--p24-white);
}

.p24-contatti-info-card--dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.p24-contatti-info-card--light {
    background: #F3F5FC;
    color: var(--p24-text);
}

.p24-contatti-info-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 32px;
}

.p24-contatti-info-card__label {
    font-size: 12px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.p24-contatti-info-card__value {
    font-size: 24px;
    font-weight: 400;
    line-height: 160%;
    margin: 0;
}

/* --- Contatti: CTA Section --- */
.p24-contatti-cta {
    padding: 100px 0;
}

.p24-contatti-cta__box {
    max-width: 1286px;
    margin: 0 auto;
    padding: 64px 51px;
    background: #F3F5FC;
    display: flex;
    gap: 26px;
}

.p24-contatti-cta__label-col {
    width: 254px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--p24-text);
}

.p24-contatti-cta__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 39px;
}

.p24-contatti-cta__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.p24-contatti-cta__title {
    font-size: 51px;
    font-weight: 400;
    line-height: 120%;
    color: #2E4970;
    margin: 0;
    font-style: italic;
    max-width: 855px;
}

.p24-contatti-cta__subtitle {
    font-size: 19px;
    font-weight: 400;
    line-height: 180%;
    color: var(--p24-text);
    max-width: 482px;
}

/* Scroll Reveal */
.p24-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.p24-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .p24-reveal { opacity: 1; transform: none; transition: none; }
}

/* Article Content */
.p24-article__content { font-size: 17px; line-height: 180%; color: var(--p24-text); }
.p24-article__content h2 { font-size: 1.5rem; margin: 2em 0 .75em; }
.p24-article__content h3 { font-size: 1.25rem; margin: 1.5em 0 .5em; }
.p24-article__content p { margin: 0 0 1.25em; }
.p24-article__content a { color: var(--p24-green); text-decoration: underline; }

/* --- Preventivo page grid --- */
.p24-preventivo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* ==========================================================================
   WPFORMS — Global Override (P24 Design System)
   ========================================================================== */

/* Reset WPForms defaults */
div.wpforms-container-full .wpforms-form,
div.wpforms-container-full .wpforms-form * {
    font-family: var(--p24-font) !important;
    box-sizing: border-box;
}

div.wpforms-container-full {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

div.wpforms-container-full .wpforms-form {
    margin: 0 !important;
    padding: 0 !important;
}

/* Field spacing */
div.wpforms-container-full .wpforms-form .wpforms-field {
    padding: 0 0 20px !important;
    margin: 0 !important;
}

/* Labels */
div.wpforms-container-full .wpforms-form .wpforms-field-label,
div.wpforms-container-full .wpforms-form legend.wpforms-field-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 140% !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    color: var(--p24-navy) !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
}

div.wpforms-container-full .wpforms-form .wpforms-required-label {
    color: var(--p24-green) !important;
}

/* Sublabels (First, Last under name fields) */
div.wpforms-container-full .wpforms-form .wpforms-field-sublabel {
    font-size: 0 !important;
    line-height: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Text, email, tel, number inputs */
div.wpforms-container-full .wpforms-form input[type="text"],
div.wpforms-container-full .wpforms-form input[type="email"],
div.wpforms-container-full .wpforms-form input[type="tel"],
div.wpforms-container-full .wpforms-form input[type="url"],
div.wpforms-container-full .wpforms-form input[type="number"] {
    height: 52px !important;
    padding: 0 16px !important;
    border: 1px solid #D9DFE6 !important;
    border-radius: 8px !important;
    background: var(--p24-white) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 52px !important;
    color: var(--p24-text) !important;
    transition: border-color .2s ease, box-shadow .2s ease !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100% !important;
}

div.wpforms-container-full .wpforms-form input[type="text"]:focus,
div.wpforms-container-full .wpforms-form input[type="email"]:focus,
div.wpforms-container-full .wpforms-form input[type="tel"]:focus,
div.wpforms-container-full .wpforms-form input[type="url"]:focus,
div.wpforms-container-full .wpforms-form input[type="number"]:focus {
    border-color: var(--p24-green) !important;
    box-shadow: 0 0 0 3px rgba(54, 221, 109, 0.12) !important;
}

div.wpforms-container-full .wpforms-form input::placeholder {
    color: #A0A9B4 !important;
    font-weight: 400 !important;
}

/* Select dropdowns */
div.wpforms-container-full .wpforms-form select {
    height: 52px !important;
    padding: 0 40px 0 16px !important;
    border: 1px solid #D9DFE6 !important;
    border-radius: 8px !important;
    background-color: var(--p24-white) !important;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%232E4970' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: var(--p24-text) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    transition: border-color .2s ease, box-shadow .2s ease !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100% !important;
}

div.wpforms-container-full .wpforms-form select:focus {
    border-color: var(--p24-green) !important;
    box-shadow: 0 0 0 3px rgba(54, 221, 109, 0.12) !important;
}

/* Textarea */
div.wpforms-container-full .wpforms-form textarea {
    padding: 14px 16px !important;
    border: 1px solid #D9DFE6 !important;
    border-radius: 8px !important;
    background: var(--p24-white) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 160% !important;
    color: var(--p24-text) !important;
    min-height: 120px !important;
    resize: vertical !important;
    transition: border-color .2s ease, box-shadow .2s ease !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100% !important;
}

div.wpforms-container-full .wpforms-form textarea:focus {
    border-color: var(--p24-green) !important;
    box-shadow: 0 0 0 3px rgba(54, 221, 109, 0.12) !important;
}

div.wpforms-container-full .wpforms-form textarea::placeholder {
    color: #A0A9B4 !important;
    font-weight: 400 !important;
}

/* Name field row (side-by-side first/last) */
div.wpforms-container-full .wpforms-form .wpforms-field-row {
    display: flex !important;
    gap: 16px !important;
}

div.wpforms-container-full .wpforms-form .wpforms-field-row-block {
    flex: 1 !important;
    width: auto !important;
    padding: 0 !important;
    float: none !important;
}

div.wpforms-container-full .wpforms-form .wpforms-field-row-block.wpforms-first {
    padding: 0 !important;
}

/* Checkbox & radio styling */
div.wpforms-container-full .wpforms-form .wpforms-field-checkbox ul,
div.wpforms-container-full .wpforms-form .wpforms-field-gdpr-checkbox ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

div.wpforms-container-full .wpforms-form .wpforms-field-checkbox ul li,
div.wpforms-container-full .wpforms-form .wpforms-field-gdpr-checkbox ul li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
}

div.wpforms-container-full .wpforms-form .wpforms-field-checkbox input[type="checkbox"],
div.wpforms-container-full .wpforms-form .wpforms-field-gdpr-checkbox input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    border: 1.5px solid #D9DFE6 !important;
    border-radius: 4px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: var(--p24-white) !important;
    cursor: pointer !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    transition: all .15s ease !important;
    position: relative !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
}

div.wpforms-container-full .wpforms-form .wpforms-field-checkbox input[type="checkbox"]:checked,
div.wpforms-container-full .wpforms-form .wpforms-field-gdpr-checkbox input[type="checkbox"]:checked {
    background: var(--p24-green) !important;
    border-color: var(--p24-green) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1 5L4.5 8.5L11 1.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

div.wpforms-container-full .wpforms-form .wpforms-field-label-inline {
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 160% !important;
    color: var(--p24-text-muted) !important;
    cursor: pointer !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Hide fieldset borders for checkbox/name fields */
div.wpforms-container-full .wpforms-form fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-inline-size: auto !important;
}

/* Submit button */
div.wpforms-container-full .wpforms-form .wpforms-submit-container {
    padding: 8px 0 0 !important;
    margin: 0 !important;
    text-align: left !important;
}

div.wpforms-container-full .wpforms-form button.wpforms-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 28px !important;
    background: var(--p24-green) !important;
    color: var(--p24-white) !important;
    border: none !important;
    border-radius: 100px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0.4px !important;
    cursor: pointer !important;
    transition: background .2s ease, transform .1s ease !important;
    box-shadow: none !important;
    text-transform: none !important;
    line-height: 1.4 !important;
    width: auto !important;
}

div.wpforms-container-full .wpforms-form button.wpforms-submit:hover {
    background: var(--p24-green-hover) !important;
    transform: translateY(-1px) !important;
}

div.wpforms-container-full .wpforms-form button.wpforms-submit:active {
    transform: translateY(0) !important;
}

/* Error states */
div.wpforms-container-full .wpforms-form .wpforms-error,
div.wpforms-container-full .wpforms-form label.wpforms-error {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #E74C3C !important;
    margin-top: 4px !important;
    padding: 0 !important;
}

div.wpforms-container-full .wpforms-form input.wpforms-error,
div.wpforms-container-full .wpforms-form select.wpforms-error,
div.wpforms-container-full .wpforms-form textarea.wpforms-error {
    border-color: #E74C3C !important;
}

/* Confirmation message */
div.wpforms-container-full .wpforms-confirmation-container-full {
    background: #ECFDF3 !important;
    border: 1px solid #A3E6C0 !important;
    border-radius: 10px !important;
    padding: 24px !important;
    color: var(--p24-text) !important;
    font-size: 15px !important;
    line-height: 160% !important;
}

/* --- Context: Preventivo form inside home/product card --- */
.p24-home-form__card div.wpforms-container-full .wpforms-form,
.p24-form-section__card div.wpforms-container-full .wpforms-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.p24-home-form__card div.wpforms-container-full,
.p24-form-section__card div.wpforms-container-full {
    background: transparent !important;
}

/* --- Context: Candidatura form --- */
.p24-candidatura__form div.wpforms-container-full .wpforms-form .wpforms-field {
    padding-bottom: 24px !important;
}

.p24-candidatura__form div.wpforms-container-full .wpforms-form textarea {
    min-height: 140px !important;
}

/* Phone field - hide the sublabel if present */
div.wpforms-container-full .wpforms-form .wpforms-field-phone .wpforms-field-sublabel {
    display: none !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1300px) {
    .p24-split__grid { flex-direction: column; }
    .p24-split--reverse .p24-split__grid { flex-direction: column; }
    .p24-team__grid { grid-template-columns: repeat(2, 1fr); }
    .p24-photo-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .p24-stats__row { flex-wrap: wrap; }
    .p24-stats__item { flex: 1 1 calc(50% - 13px); min-width: 200px; }
    .p24-cta-navy__inner { flex-direction: column; align-items: flex-start; text-align: left; padding: 48px 40px; }

    .p24-chi-hero__grid { flex-direction: column; }
    .p24-chi-hero__image { width: 100%; height: 400px; }
    .p24-chi-hero__content { min-height: auto; padding: 32px 24px; }
    .p24-chi-hero__title { font-size: 48px; }
    .p24-chi-layout { flex-direction: column; padding: 0 40px; }
    .p24-chi-sidebar { width: 100%; }
    .p24-chi-sec { padding-top: 80px; }
    .p24-chi-sec--sm { padding-top: 64px; }
    .p24-chi-stats__row { flex-wrap: wrap; }
    .p24-chi-stat { width: calc(50% - 13px); height: auto; min-height: 260px; }
    .p24-chi-stat--wide { width: 100%; }
    .p24-chi-team__row { flex-wrap: wrap; }
    .p24-chi-member { width: calc(50% - 13px); }
    .p24-chi-member__photo { width: 100%; height: auto; aspect-ratio: 302/434; }
    .p24-chi-team-info { width: calc(50% - 13px); }
    .p24-chi-cta__box { flex-direction: column; padding: 48px 32px; }
    .p24-chi-cta__label { width: auto; }
    .p24-chi-cta__title { font-size: 40px; }

    .p24-featured__inner { flex-direction: column; }
    .p24-featured__sidebar { width: 100%; flex-direction: row; align-items: center; gap: 24px; }
    .p24-featured__cards { flex-direction: column; }
    .p24-article-grid__list { grid-template-columns: repeat(2, 1fr); }
    .p24-split-faq__inner { flex-direction: column; }
    .p24-split-faq__sidebar { width: 100%; flex-direction: row; align-items: center; gap: 24px; }
    .p24-contact-cta__box { flex-direction: column; align-items: flex-start; gap: 24px; padding: 32px 24px; }
    .p24-contact-cta__info { flex-direction: column; align-items: flex-start; gap: 20px; }

    .p24-vita-hero__grid { flex-direction: column; }
    .p24-vita-hero__image { width: 100%; height: 400px; }
    .p24-vita-hero__content { padding: 40px 24px; }
    .p24-vita-hero__title { font-size: 48px; }
    .p24-vita-section__inner { padding: 0 24px 60px; }
    .p24-vita-section__layout { flex-direction: column; }
    .p24-vita-section__sidebar { width: 100%; }
    .p24-vita-section__heading { font-size: 36px; }
    .p24-vita-section__photo { height: auto; }
    .p24-vita-values__inner { padding: 0 24px 60px; }
    .p24-vita-values__row { flex-direction: column; gap: 40px; }
    .p24-vita-values__text { width: 100%; }
    .p24-vita-values__title { font-size: 36px; }
    .p24-vita-value { flex-direction: column; gap: 16px; }
    .p24-vita-value__left { width: auto; }
    .p24-vita-cta__inner { flex-direction: column; padding: 48px 24px; }
    .p24-vita-cta__label-col { width: auto; }
    .p24-vita-cta__title { font-size: 32px; }
    .p24-vita-cta__desc { font-size: 16px; }
    .p24-vita-dual__header { flex-direction: column; }
    .p24-vita-dual__photos { grid-template-columns: 1fr; }
    .p24-job-row { flex-direction: column; align-items: flex-start; gap: 16px; }
    .p24-job-row__title { width: auto; }
    .p24-candidatura__inner { flex-direction: column; }
    .p24-candidatura__text { width: 100%; }

    .p24-come-funziona__grid { flex-direction: column; }
    .p24-come-funziona__sidebar { width: 100%; padding: 0; flex-direction: row; align-items: center; gap: 24px; }
    .p24-vantaggi__grid { flex-direction: column; }
    .p24-vantaggi__image { width: 100%; }
    .p24-vantaggi__image img { width: 100%; height: 400px; }
    .p24-steps__grid { flex-wrap: wrap; }
    .p24-steps__item { flex: 1 1 calc(50% - 13px); min-width: 200px; }
    .p24-delega__grid { flex-direction: column; }
    .p24-delega__text { flex: none; }
    .p24-faq-section__grid { flex-direction: column; }
    .p24-faq-section__info { flex: none; }
    .p24-form-section__grid { flex-direction: column; }
    .p24-form-section__info { width: 100%; padding: 0; }
    .p24-form-section__card { padding: 40px; }

    .p24-home-hero__text { flex: 0 0 50%; max-width: 50%; padding: 40px; }
    .p24-home-hero__title { font-size: 56px; }
    .p24-home-work__top { flex-direction: column; }
    .p24-home-work__info { width: 100%; padding: 32px 0; }
    .p24-home-work__image { max-width: 100%; }
    .p24-home-work__cards { flex-wrap: wrap; }
    .p24-home-services__card { width: calc(33.33% - 18px); height: auto; min-height: 280px; }
    .p24-home-vantaggi__grid { flex-direction: column; }
    .p24-home-vantaggi__image { width: 100%; }
    .p24-home-vantaggi__image img { width: 100%; height: 400px; }
    .p24-home-form__grid { flex-direction: column; }
    .p24-home-form__info { width: 100%; padding: 40px 0; }
    .p24-home-form__card { padding: 40px; }

    .p24-contatti-hero__grid { flex-direction: column; }
    .p24-contatti-hero__image { width: 100%; height: 400px; }
    .p24-contatti-hero__content { padding: 32px 24px; }
    .p24-contatti-hero__title { font-size: 48px; }
    .p24-contatti-servizi__inner { flex-direction: column; }
    .p24-contatti-servizi__spacer { display: none; }
    .p24-contatti-servizi__main { max-width: 100%; }
    .p24-contatti-sedi__grid { grid-template-columns: repeat(3, 1fr); }
    .p24-contatti-info__inner { padding: 0 24px; }
    .p24-contatti-cta__box { flex-direction: column; padding: 48px 32px; }
    .p24-contatti-cta__label-col { width: auto; }
    .p24-contatti-cta__title { font-size: 40px; }
}

@media (max-width: 1024px) {
    .p24-home-promo__grid { flex-wrap: wrap; }
    .p24-home-promo__card { flex: 1 1 calc(50% - 13px); min-width: 240px; }
    .p24-home-promo__footer { flex-direction: column; align-items: flex-start; }
    .p24-home-conv__box { flex-direction: column; align-items: center; text-align: center; padding: 40px 30px; }
    .p24-footer__main { grid-template-columns: repeat(2, 1fr); }
    .p24-home-sedi__box { flex-direction: column; }

    .p24-header__navbar { padding: 24px 0; gap: 24px; }
    .p24-header__nav { gap: 20px; }
    .p24-header__nav > li > a { font-size: 13px; letter-spacing: 0.5px; }
    .p24-header__cta .p24-btn { padding: 12px 18px; font-size: 13px; min-width: 150px; }

    .p24-home-hero__text { padding: 32px; }
    .p24-home-hero__title { font-size: 48px; }
    .p24-home-services__card { width: calc(50% - 18px); }

    .p24-chi-hero__content { padding: 24px 16px; }
    .p24-contatti-hero__content { padding: 24px 16px; }

    .p24-article-grid__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {

    /* --- WPForms --- */
    div.wpforms-container-full .wpforms-form .wpforms-field-row {
        flex-direction: column !important;
        gap: 0 !important;
    }
    div.wpforms-container-full .wpforms-form .wpforms-field-row-block {
        width: 100% !important;
    }
    div.wpforms-container-full .wpforms-form .wpforms-field-row-block.wpforms-first {
        margin-bottom: 20px !important;
    }
    div.wpforms-container-full .wpforms-form button.wpforms-submit {
        width: 100% !important;
    }

    /* --- Header mobile --- */
    .p24-header__inner { padding: 12px 16px !important; position: relative !important; }
    .p24-header__navbar { gap: 12px !important; padding: 12px 0 !important; }
    .p24-header__nav { display: none !important; }
    .p24-header__burger { display: flex !important; flex-direction: column; }
    .p24-header__right { gap: 12px !important; }
    .p24-header__border { display: none !important; }
    .p24-header__cta .p24-btn { padding: 10px 16px; font-size: 13px; min-width: auto !important; }

    .p24-header__nav.is-open {
        display: flex !important; flex-direction: column !important;
        position: absolute !important; top: 100% !important; left: 0 !important; right: 0 !important;
        background: var(--p24-white) !important; box-shadow: 0 8px 30px rgba(0,0,0,.12) !important;
        padding: 16px 24px !important; gap: 0 !important; z-index: 999 !important;
    }
    .p24-header__nav.is-open > li { border-bottom: 1px solid var(--p24-border); }
    .p24-header__nav.is-open > li:last-child { border-bottom: none; }
    .p24-header__nav.is-open a { display: block; padding: 14px 0; font-size: 16px; }
    .p24-header__nav.is-open .sub-menu {
        position: static; visibility: visible; opacity: 1; transform: none;
        box-shadow: none; padding-left: 16px; border-radius: 0; min-width: 0;
    }
    .p24-header__nav.is-open .sub-menu a { font-size: 14px; padding: 10px 0; color: var(--p24-text-muted); }

    /* --- Global sections --- */
    .p24-section { padding: 48px 0; }
    .p24-container { padding: 0 16px; }

    /* --- Generic page hero --- */
    .p24-page-hero__title { font-size: 36px; }
    .p24-page-hero__buttons { flex-direction: column; }
    .p24-page-hero__buttons .p24-btn { width: 100%; justify-content: center; }

    /* --- Split layouts --- */
    .p24-split__title { font-size: 28px; }
    .p24-split__title--large { font-size: 24px; }

    /* --- Stats --- */
    .p24-stats__value { font-size: 36px; }
    .p24-stats__row--large .p24-stats__value { font-size: 40px; }
    .p24-stats__item { flex: 1 1 100%; }

    /* --- Grids --- */
    .p24-photo-grid--3 { grid-template-columns: 1fr; }
    .p24-team__grid { grid-template-columns: 1fr; }

    /* --- CTAs --- */
    .p24-cta-overlay__title { font-size: 32px; }
    .p24-cta-overlay__box { padding: 40px 24px; }
    .p24-cta-navy__inner { padding: 40px 24px; }
    .p24-cta-navy__title { font-size: 28px; }

    /* --- Chi siamo --- */
    .p24-chi-hero__title { font-size: 36px; }
    .p24-chi-hero__image { height: 260px; }
    .p24-chi-layout { padding: 0 16px; gap: 40px; }
    .p24-chi-main__title { font-size: 28px; }
    .p24-chi-main__image { height: 280px; }
    .p24-chi-values { padding: 20px; }
    .p24-chi-values__row { flex-direction: column; gap: 8px; align-items: flex-start; }
    .p24-chi-values__label { width: auto; }
    .p24-chi-stat { width: 100%; }
    .p24-chi-stat__number { font-size: 40px; }
    .p24-chi-team__title { font-size: 28px; }
    .p24-chi-team__row { flex-direction: column; }
    .p24-chi-member { width: 100%; }
    .p24-chi-member__photo { width: 100%; }
    .p24-chi-team-info { width: 100%; }
    .p24-chi-cta__title { font-size: 28px; }
    .p24-chi-cta__desc { font-size: 15px; }
    .p24-chi-cta__box { padding: 32px 20px; }
    .p24-chi-sec { padding-top: 56px; }
    .p24-chi-sec--sm { padding-top: 40px; }

    /* --- Approfondimenti / News --- */
    .p24-dark-hero__title { font-size: 28px; }
    .p24-dark-hero__inner { padding: 48px 16px; }
    .p24-dark-hero__buttons { flex-direction: row; flex-wrap: wrap; }
    .p24-simple-hero__title { font-size: 36px; }
    .p24-featured__title { font-size: 28px; }
    .p24-featured__cards { flex-direction: column; }
    .p24-featured__inner { padding: 48px 16px; }
    .p24-article-grid__list { grid-template-columns: 1fr; }
    .p24-article-grid__inner { padding: 0 16px 48px; }
    .p24-split-faq__title { font-size: 28px; }
    .p24-split-faq__inner { padding: 48px 16px; }
    .p24-contact-cta__title { font-size: 22px; }
    .p24-contact-cta__box { padding: 24px 16px; }

    /* --- Vita / Lavora / Professionisti --- */
    .p24-vita-hero__title { font-size: 32px; }
    .p24-vita-hero__subtitle { font-size: 16px; }
    .p24-vita-hero__image { height: 260px; }
    .p24-vita-section { padding: 60px 0 0; }
    .p24-vita-section__heading { font-size: 28px; }
    .p24-vita-section__sidebar { padding: 32px; }
    .p24-vita-section__sidebar-heading { font-size: 24px; }
    .p24-vita-values { padding: 60px 0 0; }
    .p24-vita-values__title { font-size: 28px; }
    .p24-vita-values__card { padding: 24px; gap: 32px; }
    .p24-vita-cta { padding: 48px 0; }
    .p24-vita-cta__title { font-size: 24px; }
    .p24-vita-dual__title { font-size: 24px; }

    /* --- Posizioni --- */
    .p24-pos-hero__title { font-size: 28px; }
    .p24-pos-hero__inner { padding: 48px 16px; }
    .p24-job-list__inner { padding: 0 16px; }
    .p24-candidatura__title { font-size: 24px; }
    .p24-candidatura__inner { padding: 48px 16px; }
    .p24-candidatura__form { padding: 24px 16px; }

    /* --- Prodotti (hero overlay + sezioni) --- */
    .p24-hero-overlay__title { font-size: 28px; }
    .p24-hero-overlay__content { padding: 40px 16px 32px; }
    .p24-hero-overlay { min-height: 360px; }
    .p24-come-funziona__title { font-size: 24px; }
    .p24-vantaggi__title { font-size: 24px; }
    .p24-vantaggi__item-title { font-size: 16px; }
    .p24-vantaggi__image img { height: 300px; }
    .p24-steps__grid { flex-direction: column; }
    .p24-steps__item { flex: none; }
    .p24-steps__number { font-size: 48px; }
    .p24-delega__title { font-size: 24px; }
    .p24-delega__images { grid-template-columns: 1fr; }
    .p24-faq-section__title { font-size: 24px; }
    .p24-consulenza__box { padding: 32px 16px; }
    .p24-consulenza__title { font-size: 24px; }

    /* --- Form sections --- */
    .p24-form-section { padding: 48px 0; }
    .p24-form-section__title { font-size: 24px; }
    .p24-form-section__desc { font-size: 18px; }
    .p24-form-section__phone { font-size: 20px; }
    .p24-form-section__card { padding: 24px 16px; }
    .p24-form-fields__row { flex-direction: column; }

    /* --- Contatti --- */
    .p24-contatti-hero__title { font-size: 28px; }
    .p24-contatti-hero__image { height: 260px; }
    .p24-contatti-hero { padding: 32px 0 16px; }
    .p24-contatti-servizi__title { font-size: 24px; }
    .p24-contatti-sedi__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .p24-contatti-sedi { padding: 48px 0; }
    .p24-contatti-sedi__label { font-size: 11px; }
    .p24-contatti-info__inner { grid-template-columns: 1fr; padding: 0 16px; }
    .p24-contatti-cta__title { font-size: 28px; }
    .p24-contatti-cta__box { padding: 32px 16px; }
    .p24-contatti-cta { padding: 48px 0; }

    /* --- Homepage sections --- */
    .p24-home-hero__grid { flex-direction: column; }
    .p24-home-hero__text { flex: none; max-width: 100%; padding: 32px 16px; }
    .p24-home-hero__title { font-size: 36px; }
    .p24-home-hero__subtitle { font-size: 16px; }
    .p24-home-hero__visual { min-height: 260px; }
    .p24-home-hero__buttons { flex-direction: column; gap: 12px; }

    .p24-home-promo { padding: 40px 0; }
    .p24-home-promo__label { font-size: 13px; }
    .p24-home-promo__grid { flex-direction: column; }
    .p24-home-promo__card { flex: none; }
    .p24-home-promo__footer { flex-direction: column; align-items: flex-start; gap: 16px; }

    .p24-home-work { padding: 48px 0; }
    .p24-home-work__title { font-size: 32px; }
    .p24-home-work__cards { flex-direction: column; }
    .p24-home-services__card { width: 100%; height: auto; min-height: 200px; }

    .p24-home-vantaggi { padding: 48px 0; }
    .p24-home-vantaggi__title { font-size: 28px; }
    .p24-home-vantaggi__image img { height: 300px; }

    .p24-home-conv { padding: 48px 0; }
    .p24-home-conv__title { font-size: 28px; }
    .p24-home-conv__circles { flex-direction: column; align-items: center; }
    .p24-home-conv__circle { width: 140px; height: 140px; }

    .p24-home-form { padding: 48px 0; }
    .p24-home-form__title { font-size: 28px; }
    .p24-home-form__info { width: 100%; padding: 0 0 32px; }
    .p24-home-form__card { padding: 24px 16px; }

    .p24-home-sedi__title { font-size: 28px; }
    .p24-home-sedi__box { padding: 32px 16px; gap: 24px; }
    .p24-home-sedi { padding: 48px 0; }

    /* --- Preventivo page --- */
    .p24-preventivo-grid { grid-template-columns: 1fr; gap: 24px; }
    .p24-preventivo-split__form { margin-top: 24px; }

    /* --- Footer --- */
    .p24-footer__main {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 16px 32px;
    }
    .p24-footer__bottom { padding: 16px; }
    .p24-footer__disclaimer { padding: 16px; }
    .p24-footer__disclaimer p { font-size: 11px; }
    .p24-footer__legal { font-size: 11px; }
    .p24-footer__heading { margin-bottom: 12px; }
}

@media (max-width: 480px) {
    .p24-home-hero__title { font-size: 30px; }
    .p24-home-hero__text { padding: 24px 16px; }
    .p24-home-hero__buttons .p24-btn { width: 100%; justify-content: center; }
    .p24-home-hero__visual { min-height: 220px; }

    .p24-header__logo img { max-width: 130px; height: auto; }
    .p24-header__cta .p24-btn svg { width: 18px; height: 18px; }
    .p24-header__cta .p24-btn { padding: 8px 12px; font-size: 0; gap: 0; }
    .p24-header__cta .p24-btn svg { font-size: initial; width: 20px; height: 20px; }

    .p24-chi-hero__title { font-size: 28px; }
    .p24-chi-hero__image { height: 220px; }

    .p24-contatti-sedi__grid { grid-template-columns: 1fr; }
    .p24-contatti-hero__title { font-size: 24px; }

    .p24-page-hero__title { font-size: 28px; }
    .p24-dark-hero__title { font-size: 24px; }
    .p24-simple-hero__title { font-size: 28px; }
    .p24-pos-hero__title { font-size: 24px; }
    .p24-vita-hero__title { font-size: 24px; }
    .p24-hero-overlay__title { font-size: 24px; }

    .p24-home-promo__val { font-size: 28px; }

    .p24-btn { padding: 12px 20px; font-size: 14px; }
    .p24-btn--sm { padding: 10px 16px; font-size: 13px; }

    .p24-home-sedi__title { font-size: 24px; }
    .p24-home-sedi__subtitle { font-size: 16px; }

    .p24-contact-cta__box { flex-direction: column; gap: 16px; }
    .p24-contact-cta__info { flex-direction: column; gap: 12px; }

    .p24-footer__brand img { max-width: 120px; }
}
