/* ==========================================================================
   Creditis Bridge – foglio di stile
   ========================================================================== */

/* Font (ospitati in locale) ------------------------------------------------ */

@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/libre-caslon-text-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Libre Caslon Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/libre-caslon-text-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/montserrat-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-600-normal.woff2') format('woff2');
}

/* Variabili ---------------------------------------------------------------- */

:root {
  --navy: #0E2747;
  --navy-hover: #1C3A63;
  --beige: #B3A693;
  --beige-dark: #7A6C57;
  --cream: #F5F2EC;
  --cream-dark: #EFEAE1;
  --line: #E6E1D8;
  --line-dark: #D9D2C4;
  --text-muted: #46536A;
  --text-on-navy: #C8D0DC;
  --white: #FFFFFF;

  --serif: 'Libre Caslon Text', Georgia, serif;
  --sans: 'Montserrat', Arial, sans-serif;

  --wrap: 1180px;
  --pad-x: clamp(20px, 4vw, 48px);
}

/* Base --------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--beige-dark);
}

h1,
h2,
p {
  margin: 0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--beige-dark);
}

.placeholder {
  background: var(--cream-dark);
  padding: 0 5px;
}

/* Pulsanti ----------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 17px 34px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1.5px solid var(--navy);
  transition: background-color .15s, color .15s;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--navy-hover);
  border-color: var(--navy-hover);
  color: var(--white);
}

.btn--outline {
  color: var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* Header ------------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
}

.logo img {
  height: 52px;
  width: auto;
}

.header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 36px;
}

.main-nav a {
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--navy);
}

.main-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--beige);
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line-dark);
}

.lang-switch button {
  appearance: none;
  border: 0;
  margin: 0;
  cursor: pointer;
  padding: 8px 11px;
  font: 600 12px/1 var(--sans);
  letter-spacing: .08em;
  background: transparent;
  color: var(--text-muted);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
}

/* Home – apertura ---------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: #E9EEF4;
  min-height: clamp(520px, 46vw, 680px);
  display: flex;
  align-items: center;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% 40%;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(245, 247, 250, .96) 0%,
    rgba(245, 247, 250, .92) 40%,
    rgba(245, 247, 250, .7) 56%,
    rgba(245, 247, 250, 0) 78%
  );
}

.hero__inner {
  position: relative;
  width: 100%;
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.hero__content {
  max-width: min(500px, 52vw);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__eyebrow::before {
  content: "";
  width: 40px;
  height: 1.5px;
  background: var(--beige);
  flex: none;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.hero p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  text-wrap: pretty;
}

.hero__actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Home – a chi mi rivolgo -------------------------------------------------- */

.audience {
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: clamp(64px, 8vw, 104px);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.audience__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.audience__head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -.015em;
}

.audience__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.audience__item {
  border-top: 3px solid var(--navy);
  padding: 28px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audience__title {
  font-family: var(--serif);
  font-size: 24px;
}

.audience__text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Home – punti di forza ---------------------------------------------------- */

.strengths {
  background: var(--navy);
  color: var(--white);
}

.strengths__grid {
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: clamp(56px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
}

.strength {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 27px;
  border-left: 3px solid var(--beige);
}

.strength__title {
  font-family: var(--serif);
  font-size: 26px;
}

.strength__text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-on-navy);
}

/* Chi sono ----------------------------------------------------------------- */

.about {
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: clamp(64px, 8vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

/* Riquadro foto: proporzione fissa 4:5, larghezza legata alla colonna */
.about__portrait {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-right: 16px;
  margin-bottom: 16px;
  margin-top: 8px;
}

@media (max-width: 760px) {
  .about {
    grid-template-columns: minmax(0, 1fr);
  }

  .about__portrait {
    max-width: 260px;
  }
}

.about__portrait::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1.5px solid var(--beige);
}

/* Foto: si mostra intera nelle sue proporzioni (3:4 o quasi quadrata) */
.about__portrait img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
}

/* Segnaposto: stessa proporzione 3:4 della foto principale */
.portrait-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
}

/* Segnaposto temporaneo in attesa della foto */
.portrait-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--navy);
  background-image: radial-gradient(circle at 50% 42%, #16325A 0%, var(--navy) 62%);
}

.portrait-placeholder__initial {
  font-family: var(--serif);
  font-size: clamp(90px, 9vw, 130px);
  line-height: 1;
  color: var(--beige);
}

.portrait-placeholder__rule {
  width: 48px;
  height: 1.5px;
  background: var(--beige);
}

.portrait-placeholder__name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--text-on-navy);
}

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

.about h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.about h1 .placeholder {
  padding: 0 8px;
}

.about__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.55;
}

.about__bio {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
  text-wrap: pretty;
}

.facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.facts__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  width: 130px;
  padding-top: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--beige-dark);
}

.facts dd {
  flex: 1;
  min-width: 200px;
  margin: 0;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.5;
}

/* Contatti ----------------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
}

.contact__panel {
  padding: clamp(56px, 8vw, 112px) clamp(24px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}

.contact h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 54px);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.contact-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--navy);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.contact-item__icon {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.contact-item__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--beige-dark);
}

.contact-item__value {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  overflow-wrap: break-word;
}

.contact__photo {
  position: relative;
  min-height: clamp(320px, 40vw, 600px);
  overflow: hidden;
  background: var(--cream);
}

.contact__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 24% 55%;
}

/* Footer ------------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: var(--text-on-navy);
}

.footer-inner {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 14px;
}

.footer-contacts a {
  color: var(--white);
}

.footer-rule {
  height: 1px;
  margin: 0;
  border: 0;
  background: rgba(200, 208, 220, .18);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
}

.privacy-toggle {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: var(--white);
  text-decoration: underline;
}

.privacy {
  max-width: 820px;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.65;
}

.privacy[hidden] {
  display: none;
}

/* Schermi piccoli ---------------------------------------------------------- */

@media (max-width: 720px) {
  .hero__content {
    max-width: none;
  }

  .hero__veil {
    background: rgba(245, 247, 250, .9);
  }
}
