/* =====================================================================
   FONDAMENTA - SCALA TIPOGRAFICA UNICA
   Unico punto in cui si decidono le dimensioni dei testi del sito.
   Per cambiare una dimensione basta modificare la variabile qui sotto.
   (Creato il 16/10/2026)
   ===================================================================== */

:root {
    /* Titoli */
    --fnd-fs-title-xl: clamp(40px, 6vw, 90px);    /* titoli di sezione / nome progetto */
    --fnd-fs-title-l:  clamp(30px, 3.2vw, 48px);    /* frasi manifesto, call to action */
    --fnd-fs-title-m:  clamp(24px, 2.4vw, 36px);    /* titoli di card e blocchi */

    /* Testi */
    --fnd-fs-text-l:   clamp(16px, 1.2vw, 18px);    /* paragrafi introduttivi */
    --fnd-fs-text:     15px;                        /* testo corrente */
    --fnd-fs-text-s:   13px;                        /* footer, didascalie, contatori */

    /* Etichette (Montserrat maiuscolo) */
    --fnd-fs-label:    12px;

    --fnd-lh-text-l:   1.55;
    --fnd-lh-text:     1.6;
}

/* ---------- TITOLO XL ---------- */
.uk-heading-xlarge:not(.fnd-reviews__title),
.uk-heading-large,
.fs .fs-title {
    font-size: var(--fnd-fs-title-xl) !important;
}

/* ---------- TITOLO L ---------- */
.uk-heading-small,
.uk-heading-medium,
.fnd-reviews__title,
.fc .fc-title {
    font-size: var(--fnd-fs-title-l) !important;
}

/* ---------- TITOLO M ---------- */
.uk-h1,
.uk-h2:not(.uk-h6),
.uk-h3,
#progetti.fnd-projects-index .project-grid .el-title,
.fnd-services__list .el-title,
#grid-project .el-title,
.fs .fs-step__title,
.ac-panel__title,
.ff-el-section-title {
    font-size: var(--fnd-fs-title-m) !important;
}

/* ---------- TESTO GRANDE ---------- */
.uk-text-large,
.fnd-hero__intro,
.fnd-hero__intro p,
.fnd-mh__intro,
.fnd-services-intro p,
.fnd-review__text,
.fnd-manifesto__text > *,
.fnd-about-statement__text > *,
.fc .fc-lead,
.fs .fs-intro,
.fs .fs-item__name,
.fc .fc-step__title,
.el-content.uk-h4 {
    font-size: var(--fnd-fs-text-l) !important;
    line-height: var(--fnd-lh-text-l) !important;
}

@media (min-height: 761px) {
    .fnd-card__desc,
    .fnd-card__desc p {
        font-size: var(--fnd-fs-text-l) !important;
        line-height: var(--fnd-lh-text-l) !important;
    }
}

/* ---------- TESTO ---------- */
[id^="template-FndBk0110"] .el-content:not(.uk-h4):not(.uk-text-large):not(.uk-button),
.fnd-step__text,
.ac-panel__label,
.fs-step__text,
.fnd-approach__text p {
    font-size: var(--fnd-fs-text) !important;
    line-height: var(--fnd-lh-text) !important;
}

/* ---------- TESTO PICCOLO ---------- */
.fnd-footer-company,
.fnd-footer-company *,
.fnd-stack__index-title,
.fs-stat__label,
.fs-timeline__meta,
.fs-step__year,
.fs .fs-site__caption,
.fs .fs-item__status,
.fs .fs-item__desc,
.fc .fc-step__text,
.fc-step__num,
.fc-row__label,
.fc .fc-copy,
.fnd-gallery .fnd-gallery__count {
    font-size: var(--fnd-fs-text-s) !important;
}

/* ---------- ETICHETTA ---------- */
.uk-text-meta,
.uk-h6,
.fnd-hero__value > p,
.project-grid .el-meta,
#slider-home .el-title,
.ac-panel__cta,
.fnd-hero-scan__quota,
.fnd-card__strip,
.fs .fs-site__note,
[id^="template-FndBk0110"] .el-title.uk-text-meta,
[id^="template-FndBk0110"] .el-title.uk-h5,
.fnd-gallery-bar__count,
.fnd-reviews__count,
.uk-nav-default,
.ffc-plabel,
.fc-extra__label {
    font-size: var(--fnd-fs-label) !important;
}

/* ---------- TELEFONO: elementi che esistono solo nella versione mobile ---------- */
.project-grid .el-content {
    font-size: var(--fnd-fs-text) !important;
}

.fc-extra a {
    font-size: var(--fnd-fs-text-s) !important;
}

/* hero della home su telefono: etichette alla misura standard, con spaziatura un po' piu' stretta
   perche' stiano su una riga anche su schermi da 360px */
.fnd-mh__meta,
.fnd-mh__quota,
.fnd-mh__values,
.fnd-mh__values * {
    font-size: var(--fnd-fs-label) !important;
    letter-spacing: 1px !important;
}

/* i tre valori stanno in colonne strette: senza spaziatura "CONTEMPORANEO" entra intero */
.fnd-mh__values,
.fnd-mh__values * {
    letter-spacing: 0 !important;
}
