/* Landing France: componenti circoscritti alla pagina mercato francese. */
.page-fr-market {
  --fr-navy: #00305f;
  --fr-blue: #004a99;
  --fr-blue-soft: #e8f1fb;
  --fr-line: rgba(0, 48, 95, 0.14);
  --fr-copy: #4a5a70;
  background: #ffffff;
}

.page-fr-market section {
  scroll-margin-top: 118px;
}

.page-fr-market header.glass-nav nav {
  gap: 2px;
}

.page-fr-market header.glass-nav nav a {
  padding-right: 8px;
  padding-left: 8px;
  font-size: 0.84rem;
}

.page-fr-market .nav-cta-stack .nav-cta {
  min-width: 164px;
  padding: 7px 13px;
}

.fr-mobile-language-links {
  display: none;
}

.fr-section {
  padding: clamp(76px, 9vw, 124px) 0;
}

.fr-kicker {
  color: var(--fr-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.21em;
  line-height: 1.4;
  text-transform: uppercase;
}

.fr-section-heading {
  display: grid;
  max-width: 850px;
  margin: 0 auto clamp(36px, 5vw, 58px);
  gap: 12px;
  text-align: center;
}

.fr-section-heading h2 {
  text-wrap: balance;
}

.fr-section-heading > p:last-child {
  max-width: 700px;
  margin: 0 auto;
  color: var(--fr-copy);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

.fr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fr-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.fr-button:hover {
  transform: translateY(-2px);
}

.fr-button:focus-visible,
.fr-audience-card a:focus-visible,
.fr-result-card a:focus-visible,
.fr-iso-card a:focus-visible,
.fr-quote a:focus-visible {
  outline: 3px solid rgba(31, 109, 180, 0.45);
  outline-offset: 3px;
}

.fr-button--primary {
  border-color: var(--fr-blue);
  background: linear-gradient(135deg, var(--fr-navy), var(--fr-blue), #0b579e);
  color: #ffffff;
  box-shadow: 0 17px 38px rgba(0, 48, 95, 0.22);
}

.fr-button--secondary {
  border-color: rgba(0, 48, 95, 0.2);
  background: #ffffff;
  color: var(--fr-navy);
}

.fr-button--light {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--fr-navy);
  cursor: pointer;
}

.fr-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(150px, 15vw, 190px) 0 clamp(74px, 8vw, 112px);
  background:
    radial-gradient(circle at 7% 12%, rgba(145, 185, 211, 0.22), transparent 30%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 82%);
}

.fr-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: clamp(42px, 6vw, 82px);
}

.fr-hero__copy {
  display: grid;
  gap: 24px;
}

.fr-hero h1 {
  max-width: 780px;
  color: var(--fr-blue);
  font-size: clamp(3rem, 5.2vw, 5.45rem);
  line-height: 0.98;
  text-wrap: balance;
}

.fr-hero__lead {
  max-width: 730px;
  color: var(--fr-copy);
  font-size: clamp(1.06rem, 1.55vw, 1.28rem);
  line-height: 1.7;
}

.fr-proof-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 710px;
  margin-top: 5px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--fr-line);
}

.fr-proof-list li {
  display: grid;
  gap: 1px;
  padding: 17px 14px 0 0;
}

.fr-proof-list li + li {
  padding-left: 17px;
  border-left: 1px solid var(--fr-line);
}

.fr-proof-list strong {
  color: var(--fr-navy);
  font-size: 0.95rem;
}

.fr-proof-list span {
  color: #6a7b8e;
  font-size: 0.82rem;
}

.fr-hero__media {
  position: relative;
  height: clamp(610px, 45vw, 680px);
  min-height: 0;
  overflow: hidden;
  border-radius: 30px;
  background: var(--fr-blue-soft);
  box-shadow: 0 30px 80px rgba(0, 48, 95, 0.18);
}

.fr-hero__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(0, 28, 63, 0.74) 100%);
  content: "";
  pointer-events: none;
}

.fr-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 28%;
}

.fr-hero__media figcaption {
  position: absolute;
  right: 26px;
  bottom: 24px;
  left: 26px;
  z-index: 1;
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  line-height: 1.45;
}

.fr-hero__media figcaption span {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fr-trust {
  padding: 34px 0 48px;
  background: #ffffff;
}

.fr-trust__inner {
  display: grid;
  min-width: 0;
  gap: 24px;
}

.fr-trust__inner > p {
  color: #6d7f91;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.fr-logo-carousel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.fr-logo-carousel__viewport {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 12px 0 34px;
  outline: none;
}

.fr-logo-carousel__viewport:focus-visible {
  border-radius: 20px;
  outline: 3px solid rgba(31, 109, 180, 0.38);
  outline-offset: 4px;
}

.fr-logo-carousel__track {
  --fr-logo-gap: clamp(14px, 2vw, 22px);
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: var(--fr-logo-gap);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.fr-logo-carousel__track .brand-card {
  flex: 0 0 var(--fr-logo-card-width, calc(16.6667% - 18.34px));
  margin: 0;
  animation: none;
  box-shadow: none;
}

.fr-logo-carousel__track .brand-card:hover {
  transform: none;
  box-shadow: none;
}

.fr-letter {
  background: #f6f9fd;
}

.fr-letter__grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
}

.fr-letter__media {
  height: 590px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 64px rgba(0, 48, 95, 0.16);
}

.fr-letter__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.fr-letter__copy {
  display: grid;
  gap: 20px;
}

.fr-letter__copy h2 {
  max-width: 760px;
  text-wrap: balance;
}

.fr-letter__copy > p:not(.fr-kicker) {
  max-width: 760px;
  color: var(--fr-copy);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
}

.fr-letter__copy .fr-letter__intro {
  color: var(--fr-navy);
  font-size: clamp(1.2rem, 2vw, 1.62rem);
  font-weight: 700;
  line-height: 1.5;
}

.fr-signature {
  display: grid;
  width: fit-content;
  gap: 2px;
  padding-top: 14px;
  border-top: 2px solid var(--fr-blue);
}

.fr-signature strong {
  color: var(--fr-navy);
  font-size: 1.05rem;
}

.fr-signature span {
  color: #708196;
  font-size: 0.9rem;
}

.fr-audiences {
  background: #ffffff;
}

.fr-audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.fr-audience-card {
  position: relative;
  display: grid;
  min-height: 510px;
  align-content: start;
  gap: 18px;
  overflow: hidden;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid var(--fr-line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(0, 48, 95, 0.08);
}

.fr-audience-card--agency {
  background: linear-gradient(145deg, var(--fr-navy), var(--fr-blue), #145ca2);
  color: #ffffff;
}

.fr-card-index {
  position: absolute;
  top: 24px;
  right: 28px;
  color: rgba(0, 48, 95, 0.15);
  font-family: 'Montserrat', sans-serif;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
}

.fr-audience-card--agency .fr-card-index {
  color: rgba(255, 255, 255, 0.18);
}

.fr-card-label {
  color: var(--fr-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fr-audience-card h3 {
  max-width: 520px;
  font-size: clamp(1.75rem, 2.7vw, 2.55rem);
  text-wrap: balance;
}

.fr-audience-card > p:not(.fr-card-label) {
  color: var(--fr-copy);
  font-size: 1.03rem;
}

.fr-audience-card ul,
.fr-service-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.fr-audience-card li,
.fr-service-card li {
  position: relative;
  padding-left: 22px;
}

.fr-audience-card li::before,
.fr-service-card li::before {
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fr-blue);
  content: "";
  transform: translateY(-50%);
}

.fr-audience-card > a {
  width: fit-content;
  margin-top: auto;
  color: var(--fr-blue);
  font-weight: 800;
}

.fr-audience-card--agency h3,
.fr-audience-card--agency .fr-card-label,
.fr-audience-card--agency > a {
  color: #ffffff;
}

.fr-audience-card--agency > p:not(.fr-card-label),
.fr-audience-card--agency li {
  color: rgba(255, 255, 255, 0.82);
}

.fr-audience-card--agency li::before {
  background: #ffffff;
}

.fr-services {
  background: #f6f9fd;
}

.fr-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.fr-service-card {
  display: grid;
  min-height: 430px;
  align-content: start;
  gap: 18px;
  padding: clamp(28px, 3.5vw, 40px);
  border: 1px solid var(--fr-line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(0, 48, 95, 0.065);
}

.fr-service-card__number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--fr-blue-soft);
  color: var(--fr-blue);
  font-weight: 800;
}

.fr-service-card h3 {
  font-size: clamp(1.45rem, 2vw, 1.95rem);
}

.fr-service-card > p,
.fr-service-card li {
  color: var(--fr-copy);
}

.fr-service-card ul {
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--fr-line);
}

.fr-local {
  background: #ffffff;
}

.fr-local__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(340px, 0.86fr);
  align-items: center;
  gap: clamp(42px, 7vw, 86px);
}

.fr-local__copy {
  display: grid;
  gap: 20px;
}

.fr-local__copy > p:not(.fr-kicker) {
  max-width: 740px;
  color: var(--fr-copy);
  font-size: 1.06rem;
}

.fr-check-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding: 0;
  list-style: none;
}

.fr-check-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 48, 95, 0.1);
  border-radius: 15px;
  color: var(--fr-copy);
  background: #fbfcfe;
}

.fr-check-list span {
  color: var(--fr-blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.fr-result-card {
  display: grid;
  min-height: 450px;
  align-content: center;
  gap: 20px;
  padding: clamp(34px, 5vw, 58px);
  border: 2px solid #0f6ad0;
  border-radius: 26px;
  background: linear-gradient(140deg, #00305f 0%, #004a99 58%, #236db2 100%);
  color: #ffffff;
  box-shadow: 0 28px 70px rgba(0, 48, 95, 0.24);
}

.fr-result-card__label {
  width: fit-content;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fr-result-card h3 {
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
}

.fr-result-card > p:not(.fr-result-card__label) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.fr-result-card a {
  width: fit-content;
  color: #ffffff;
  font-weight: 800;
}

.fr-method {
  background: linear-gradient(180deg, #f6f9fd, #ffffff);
}

.fr-section.fr-method {
  padding-bottom: clamp(34px, 4vw, 52px);
}

.fr-certification {
  background: #ffffff;
}

.fr-section.fr-certification {
  padding: 0;
}

.fr-method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}

.fr-method-grid li {
  position: relative;
  display: grid;
  min-height: 280px;
  align-content: start;
  gap: 14px;
  padding: 30px 26px;
  border: 1px solid var(--fr-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
}

.fr-method-grid li > span {
  color: var(--fr-blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.fr-method-grid h3 {
  font-size: 1.45rem;
}

.fr-method-grid p {
  color: var(--fr-copy);
}

.fr-references {
  background: #ffffff;
}

.fr-reference-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 20px;
}

.fr-iso-card,
.fr-quote {
  min-height: 400px;
  border-radius: 24px;
}

.fr-iso-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid var(--fr-line);
  background: #f7faff;
}

.fr-iso-card > img {
  width: 150px;
  height: 150px;
  padding: 10px;
  border-radius: 20px;
  background: #ffffff;
  object-fit: contain;
}

.fr-iso-card > div {
  display: grid;
  gap: 14px;
}

.fr-iso-card h2,
.fr-iso-card h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  text-wrap: balance;
}

.fr-iso-card p:not(.fr-card-label) {
  color: var(--fr-copy);
}

.fr-iso-card a,
.fr-quote a {
  width: fit-content;
  color: var(--fr-blue);
  font-weight: 800;
}

.fr-certification .fr-iso-card {
  width: 100%;
  max-width: 1080px;
  min-height: 0;
  margin: 0 auto;
}

.fr-reference-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.fr-reference-grid--single .fr-quote {
  width: 100%;
  max-width: 900px;
  min-height: 360px;
  margin: 0 auto;
}

.fr-quote {
  display: grid;
  align-content: center;
  gap: 25px;
  padding: clamp(34px, 5vw, 56px);
  background: linear-gradient(145deg, var(--fr-navy), var(--fr-blue));
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 48, 95, 0.18);
}

.fr-quote blockquote {
  color: #ffffff;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: clamp(1.45rem, 2.45vw, 2.05rem);
  font-weight: 700;
  line-height: 1.48;
}

.fr-quote figcaption {
  display: grid;
  gap: 2px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.fr-quote figcaption strong {
  color: #ffffff;
}

.fr-quote figcaption span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.fr-quote a {
  color: #ffffff;
}

.fr-faq .faq-section__header .fr-kicker {
  color: var(--fr-blue);
}

.fr-form-grid {
  display: contents;
}

.page-fr-market .contact__form select option {
  color: #15283f;
}

.page-fr-market .footer__links {
  flex-wrap: wrap;
  justify-content: flex-end;
  white-space: normal;
}

@media (max-width: 1120px) {
  .page-fr-market header.glass-nav nav a {
    font-size: 0.78rem;
  }

  .page-fr-market .nav-cta-stack .nav-cta {
    min-width: 148px;
    font-size: 0.72rem;
  }

  .fr-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.78fr);
    gap: 38px;
  }

  .fr-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fr-service-card {
    min-height: 0;
  }

  .fr-service-card:last-child {
    grid-column: 1 / -1;
  }

  .fr-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .page-fr-market section {
    scroll-margin-top: 95px;
  }

  .page-fr-market header.glass-nav nav a {
    font-size: 0.95rem;
  }

  .page-fr-market .nav-cta-stack .nav-cta {
    min-width: 122px;
    max-width: 136px;
    font-size: 0.68rem;
    line-height: 1.15;
    white-space: normal;
  }

  .fr-logo-carousel__track .brand-card {
    flex-basis: var(--fr-logo-card-width, calc(50% - 7px));
  }

  .fr-section {
    padding: var(--mobile-section) 0;
  }

  .fr-hero {
    padding: 54px 0 var(--mobile-section);
  }

  .fr-hero__grid,
  .fr-letter__grid,
  .fr-local__grid,
  .fr-reference-grid {
    grid-template-columns: 1fr;
  }

  .fr-hero__copy {
    gap: 20px;
  }

  .fr-hero h1 {
    font-size: clamp(2.55rem, 11vw, 4.25rem);
    line-height: 1;
  }

  .fr-hero__media {
    height: clamp(520px, 78vw, 620px);
    min-height: 0;
  }

  .fr-hero__media img {
    min-height: 0;
  }

  .fr-proof-list {
    grid-template-columns: 1fr;
  }

  .fr-proof-list li,
  .fr-proof-list li + li {
    padding: 12px 0;
    border-left: 0;
  }

  .fr-proof-list li + li {
    border-top: 1px solid var(--fr-line);
  }

  .fr-letter__media {
    height: min(560px, 125vw);
  }

  .fr-audience-grid,
  .fr-method-grid {
    grid-template-columns: 1fr;
  }

  .fr-service-grid {
    grid-template-columns: 1fr;
  }

  .fr-service-card:last-child {
    grid-column: auto;
  }

  .fr-audience-card {
    min-height: 0;
  }

  .fr-local__grid {
    gap: 34px;
  }

  .fr-result-card {
    min-height: 0;
  }

  .fr-method-grid li {
    min-height: 0;
  }

  .fr-iso-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .fr-iso-card > img {
    width: 110px;
    height: 110px;
  }

  .page-fr-market .footer__links {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .page-fr-market .nav-actions {
    gap: 4px;
  }

  .page-fr-market .lang-toggle {
    gap: 2px;
    padding: 4px 5px;
    font-size: 0.66rem;
  }

  .page-fr-market .nav-cta-stack .nav-cta {
    min-width: 104px;
    max-width: 112px;
    padding: 5px 6px;
    font-size: 0.6rem;
  }

  .fr-actions {
    display: grid;
  }

  .fr-button {
    width: 100%;
  }

  .fr-hero__media {
    height: clamp(470px, 125vw, 540px);
    min-height: 0;
    border-radius: 22px;
  }

  .fr-hero__media img {
    min-height: 0;
  }

  .fr-hero__media figcaption {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .fr-letter__media {
    height: 480px;
  }

  .fr-audience-card,
  .fr-service-card,
  .fr-result-card,
  .fr-quote {
    padding: 26px 22px;
    border-radius: 20px;
  }

  .fr-audience-card h3 {
    font-size: 1.75rem;
  }

  .fr-card-index {
    top: 18px;
    right: 20px;
    font-size: 2.5rem;
  }

  .fr-check-list li {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 13px 14px;
  }

  .fr-iso-card {
    grid-template-columns: 1fr;
    padding: 26px 22px;
  }

  .fr-iso-card > img {
    width: 96px;
    height: 96px;
  }

}

@media (max-width: 359px) {
  .page-fr-market .lang-toggle {
    display: none;
  }

  .fr-mobile-language-links {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
  }

  .page-fr-market header.glass-nav nav .fr-mobile-language-links a {
    width: auto;
    min-width: 42px;
    justify-content: center;
    padding: 7px 10px;
    border: 1px solid var(--fr-line);
    border-radius: 999px;
    color: var(--fr-navy);
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
  }

  .page-fr-market header.glass-nav nav .fr-mobile-language-links a[aria-current="page"] {
    border-color: var(--fr-blue);
    background: var(--fr-blue);
    color: #ffffff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fr-logo-carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }

  .fr-logo-carousel__track {
    transform: none !important;
  }

  .fr-logo-carousel__track .brand-card {
    animation: none;
    scroll-snap-align: start;
  }

  .fr-button {
    transition: none;
  }

  .fr-button:hover {
    transform: none;
  }
}
