/* =========================================================
   FONTS
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&display=swap');

/* =========================================================
   RESET & BASE
   ========================================================= */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #000;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f7f9fb 20%,
    rgba(40, 92, 130, 0.35) 65%,
    rgba(40, 92, 130, 0.55) 100%
  );
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0;
}

p {
  margin: 0;
  opacity: 0.85;
}

/* =========================================================
   SECTION TITLES
   ========================================================= */
.section-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 10px;
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.32);
  backdrop-filter: saturate(180%) blur(6px);
  z-index: 10;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto; /* Logo | centered menu | language (hidden for now) */
  align-items: center;
}

/* Logo */
.logo img {
  height: 72px;
  width: auto;
  display: block;
}

/* Center menu block */
.nav-center {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

/* Main header menu */
.menu {
  list-style: none;
  margin: 0;
  padding: 0;

  display: grid;
  grid-template-columns:
    minmax(90px, 1fr)
    minmax(150px, 2fr)
    minmax(150px, 2fr)
    minmax(150px, 2fr)
    minmax(90px, 1fr);

  column-gap: 16px;
  align-items: center;
  justify-items: center;
}

.menu li {
  width: 100%;
  text-align: center;
}

.menu a {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  position: relative;
  text-align: center;
  line-height: 1.2;
  word-break: keep-all;
  overflow-wrap: normal;
}

/* Two-line items */
.menu-multiline {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-multiline span {
  display: block;
  line-height: 1.15;
}

/* Underline hover */
.menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: #000;
  transition: width 0.2s ease;
}

.menu a:hover::after { width: 100%; }

/* =========================================================
   LANGUAGE DROPDOWN (kept, but disabled for EN-only launch)
   ========================================================= */
.lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.25);
  padding: 6px 10px;
  cursor: pointer;
  opacity: 0.85;
}

.lang-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #000;
  margin-top: 1px;
  opacity: 0.75;
}

.lang-btn:hover { opacity: 1; border-color: rgba(0,0,0,0.45); }
.lang-btn:hover .lang-arrow { opacity: 1; }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 84px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.18);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 6px;
  display: none;
  z-index: 20;
}

.lang-menu a {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  color: #000;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
}

.lang-menu a:hover {
  opacity: 1;
  background: rgba(0,0,0,0.04);
}

.lang:hover .lang-menu { display: block; }
.lang:focus-within .lang-menu { display: block; }

/* TEMP: EN-only launch — hide switcher without deleting it */
.lang { display: none; }

/* =========================================================
   MAIN LAYOUT
   ========================================================= */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 0 0;
}

.hero h1 {
  font-size: 45px;
  line-height: 1.1;
  max-width: 20ch;
  margin-bottom: 22px;
}

/* =========================================================
   HERO SERVICES (index)
   ========================================================= */
.hero-services {
  display: flex;
  justify-content: center;
  gap: 44px;
  margin-top: 8px;
  margin-bottom: 0;
}

.hero-service {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #000;
}

.hero-service .line-1,
.hero-service .line-2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-service .line-2 { margin-top: 2px; }
.hero-service:hover { color: #000; }

/* =========================================================
   DIVIDERS
   ========================================================= */
.hero-divider,
.section-divider {
  width: 100%;
  max-width: 1100px;
  margin: 28px auto;
  border-bottom: 1px solid rgba(0,0,0,0.32);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  margin-top: 48px; /* Creates breathing space from the section above */
  padding: 28px 20px 32px;
  border-top: 1px solid rgba(0,0,0,0.18);
}

footer p {
  margin: 0 auto;
  max-width: 1100px;
  font-size: 13px;          /* Slightly more discreet */
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.4px;
  opacity: 0.7;
}

/* =========================================================
   RESPONSIVE (GENERAL)
   ========================================================= */
@media (max-width: 720px) {
  nav {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  .nav-center { max-width: 100%; }

  .menu {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 12px;
  }

  .hero h1 { font-size: 38px; }

  .hero-services {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }
}

/* =========================================================
   ABOUT (HOME)
   ========================================================= */
.about {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 10px;
}

.about-header {
  text-align: center;
  padding: 10px 0 16px;
}

.about-header-line { display: none; }

.about-header p {
  font-size: 13px;
  letter-spacing: 0.6px;
  opacity: 0.8;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding-top: 0;
  border-top: none;
}

.about-col h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 28px 0 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.about-kicker {
  margin: 0 0 14px;
  opacity: 0.75;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
}

.about-col p {
  font-size: 14px;
  line-height: 1.75;
  opacity: 0.9;
  margin: 0 0 16px;
  max-width: 62ch;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
}

/* Photo */
.about-photo {
  margin: 18px 0 22px;
  display: flex;
  justify-content: flex-start;
}

.about-photo img {
  width: 200px;
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
  box-shadow: none;
}

/* Logos */
.about-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
  margin-bottom: 22px;
  padding: 0;
  border: none;
  background: transparent;
}

.about-logos img {
  height: 50px;
  width: auto;
  max-width: 286px;
  object-fit: contain;
  display: block;
  opacity: 0.95;
}

/* Lists */
.about-list {
  margin: 0;
  padding-left: 18px;
}

.about-list li {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.65;
  opacity: 0.9;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
}

/* About: mobile */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-photo { justify-content: center; }
  .about-photo img { width: 220px; }

  .about-logos img { max-width: 160px; }
}

/* =========================================================
   PARTNERS
   ========================================================= */
.partners {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px 0;
  text-align: center;
}

.partners-spotlight {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px;
}

.partners-spotlight img {
  max-height: 80px;
  max-width: 320px;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.8s ease;
}

/* =========================================================
   CONTACT CTA (index + other pages)
   ========================================================= */
.contact-cta {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px 48px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}

.contact-details p {
  font-size: 15px;
  line-height: 1.9;
  opacity: 0.9;
}

.contact-label {
  font-weight: 700;
  opacity: 1;
  margin-bottom: 6px;
}

.contact-spacer { height: 18px; }

.contact-email {
  color: #000;
  text-decoration: none;
  font-weight: 400;
}

.contact-email:hover { text-decoration: underline; }

.contact-linkedin {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-linkedin img {
  height: 64px;
  width: auto;
  display: block;
}

.contact-aprlogo {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.contact-aprlogo img {
  height: 90px;
  width: auto;
  display: block;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
  }

  .contact-aprlogo { justify-content: center; }
}

/* Button-like link */
.cta-link {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  border: 1px solid rgba(0,0,0,0.35);
  transition: all 0.2s ease;
}

.cta-link:hover {
  border-color: #000;
  transform: translateY(-1px);
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 50;
  opacity: 0.7;
}

.back-to-top img {
  width: 26px;
  height: auto;
  display: block;
}

.back-to-top:hover {
  transform: translateY(-3px);
  opacity: 1;
}

/* =========================================================
   PAGE-SPECIFIC: full-width paragraphs
   ========================================================= */
.page-headhunting .about-col p,
.page-outplacement .about-col p,
.page-careercoaching .about-col p {
  max-width: none;
}

/* =========================================================
   APR TILES (shared system)
   ========================================================= */

/* Container */
.apr-tiles {
  width: 100%;
  display: grid;
  gap: 14px;           /* “trasparente” tra blocchi: si vede lo sfondo sotto */
  margin: 32px 0;
}

/* Default: 3 columns */
.apr-tiles-3 { grid-template-columns: repeat(3, 1fr); }

/* 4 blocks: 2x2 */
.apr-tiles-4 { grid-template-columns: repeat(2, 1fr); }

/* 8 blocks: 4x2 (headhunting) */
.apr-tiles-4x2 { grid-template-columns: repeat(4, 1fr); }

/* Tile */
.apr-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 26px 20px;
  min-height: 160px;

  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.25;

  color: #000;
}

/* Desktop height tweak for 2x2 */
@media (min-width: 901px){
  .apr-tiles-4 .apr-tile { min-height: 170px; }
}

/* Mobile: 1 column */
@media (max-width: 900px) {
  .apr-tiles,
  .apr-tiles-3,
  .apr-tiles-4,
  .apr-tiles-4x2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .apr-tile { min-height: 96px; }
}

/* Colors (EXACT) */
.apr-blue         { background: #ADD8E6; }
.apr-yellow       { background: #FFFACD; }
.apr-orange       { background: #FFDAB9; }
.apr-mint         { background: #BDFCC9; }

.apr-green        { background: #7AD879; }
.apr-lilac        { background: #E5E2F8; }
.apr-beige        { background: #F1E7DF; }
.apr-violet       { background: #B19CD9; }
.apr-violet-soft  { background: #B197D6; }

/* =========================================================
   APR TILES — “text tiles” (Why choose APR)
   ========================================================= */
.apr-tiles-text .apr-tile {
  flex-direction: column;   /* title above body */
  padding: 34px 28px;
  line-height: 1.6;
  font-size: 15px;
  text-align: center;
  text-transform: none;     /* keep normal casing for body text */
  letter-spacing: 0;
}

.apr-tiles-text .apr-tile-title {
  font-weight: 800;         /* bold title */
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.apr-tiles-text .apr-tile-body {
  font-weight: 400;         /* normal body */
  line-height: 1.6;
  opacity: 0.95;
}

/* =========================================================
   CAREER COACHING – IMAGE CONSISTENCY
   ========================================================= */
.page-careercoaching .cc-image {
  width: 100%;
  height: 320px;              /* Mid size: same visual weight for both images */
  object-fit: cover;          /* Crops instead of shrinking */
  object-position: center;    /* Centers the crop */
  display: block;
  border-top-left-radius: 64px;
  border-top-right-radius: 64px;
}
