/* /contacts/contact.css */

/* TOKENS */
:root{
  --frame: clamp(18px, 3vw, 48px);
  --gutter: clamp(26px, 4vw, 70px);
  --side-col: 180px;

  /* spacing */
  --nav-h: 64px; /* must match the global navbar height in /style.css */
  --nav-gap: 56px; /* extra spacing below navbar */
  --title-to-card: clamp(56px, 7vw, 110px);
  --side-to-card-top: clamp(120px, 12vw, 180px);

  /* colors */
  --accent: #ff3b2f;
  --red: #e34a45;

  --ink: #111;
  --muted: rgba(0,0,0,0.60);
  --hair: rgba(0,0,0,0.08);
}

/* PAGE BASE */
body.page-contact{
  background:#fff;
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* NAVBAR */

/* WRAP — spacing below navbar */
.c-wrap{
  flex: 1;
  padding-top: calc(var(--nav-h) + var(--nav-gap));
}

.c-inner{
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--frame);
}

.c-grid{
  display: grid;
  grid-template-columns: var(--side-col) 1fr;
  column-gap: var(--gutter);
  align-items: start;
}

/* CONTACT */
.c-contact{
  padding: clamp(26px, 3.6vw, 44px) 0 clamp(96px, 10vw, 160px);
}

.c-sideText{
  margin: var(--side-to-card-top) 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(0,0,0,0.55);
  max-width: 20ch;
}

.c-title{
  margin: 0 0 var(--title-to-card);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.92;
  font-size: clamp(72px, 7.6vw, 132px);
}

.c-panel{
  width: 100%;
  border: 1px solid var(--hair);
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1.55fr;
}

.c-panelLeft{
  padding: 44px 44px 42px;
  border-right: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
}

.c-phone{
  font-size: 11px;
  color: rgba(0,0,0,0.55);
  margin-bottom: 6px;
}

.c-email{
  display: inline-block;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-decoration: none;
}

.c-block{
  margin-top: 22px;
}

.c-label{
  font-size: 10px;
  color: rgba(0,0,0,0.50);
  margin-bottom: 6px;
}

.c-text{
  font-size: 12px;
  line-height: 1.6;
  color: rgba(0,0,0,0.72);
  max-width: 46ch;
}

/* socials pinned to bottom */
.c-social{
  margin-top: auto;
  display: grid;
  gap: 6px;
}

.c-socialLink{
  font-size: 12px;
  color: var(--ink);
  text-decoration: none;
}

.c-socialIco{
  color: var(--accent);
  margin-right: 8px;
}

.c-panelRight{
  background: var(--red);
  color: #fff;
  padding: 44px 44px 42px;
}

.c-formTitle{
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.95;
}

.c-form{
  display: grid;
  gap: 16px;
}

.c-input{
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.55);
  padding: 12px 0;
  color: #fff;
  outline: none;
  font-size: 13px;
}

.c-input::placeholder{
  color: rgba(255,255,255,0.65);
}

.c-textarea{
  min-height: 96px;
  resize: vertical;
}

.c-btn{
  margin-top: 8px;
  width: 210px;
  height: 42px;
  border: 0;
  background: #111;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

/* APPROACH */
.c-approach{
  padding: clamp(90px, 10vw, 180px) 0 clamp(62px, 7vw, 122px);
}

.c-sideLabel{
  margin-top: 8px;
  font-size: 11px;
  color: rgba(0,0,0,0.45);
}

.c-approachTitle{
  margin: 0;
  max-width: 78ch;
  font-size: clamp(16px, 1.7vw, 22px);
  line-height: 1.55;
  font-weight: 600;
  color: var(--ink);
}

.c-approachText{
  margin: 14px 0 0;
  max-width: 92ch;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

/* FAQ */
.c-faq{
  padding: clamp(62px, 7vw, 122px) 0;
  border-top: 1px solid var(--hair);
}

.c-faqTitle{
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.06em;
  font-size: clamp(66px, 6.2vw, 118px);
  line-height: 0.92;
}

.c-faqDesc{
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(0,0,0,0.55);
  max-width: 32ch;
}

.c-faqCta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 12px;
  text-decoration: none;
  color: var(--ink);
}

.c-faqCtaIco{
  color: var(--accent);
}

.c-qa{
  border-top: 1px solid var(--hair);
  padding: 18px 0;
}
.c-qa:last-child{
  border-bottom: 1px solid var(--hair);
}

.c-q{
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--ink);
}
.c-q::-webkit-details-marker{
  display: none;
}

.c-q::after{
  content: "+";
  color: var(--accent);
  font-weight: 600;
}

.c-qa[open] .c-q::after{
  content: "−";
}

.c-a{
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 92ch;
}

/* RESPONSIVE */
@media (max-width: 980px){
  :root{
    --side-to-card-top: 0px;
    --nav-gap: 18px;
  }

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

  .c-sideText{
    margin: 0 0 18px;
    max-width: 52ch;
  }

  .c-title{
    text-align: center;
  }

  .c-panel{
    grid-template-columns: 1fr;
  }

  .c-panelLeft{
    border-right: 0;
    border-bottom: 1px solid var(--hair);
    padding: 26px;
  }

  .c-panelRight{
    padding: 26px;
  }

  .c-btn{
    width: 100%;
  }
}
/* NAVBAR — match About (Contact only) */
body.page-contact header.nav,
body.page-contact header.nav .nav__inner{
  background: #000 !important;
  background-color: #000 !important;
}

/* NAV */
/* SOCIAL HOVER — arrow rotates "upright" */
.c-socialLink{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.c-socialIco{
  display: inline-block;
  transition: transform 220ms ease, opacity 220ms ease;
  transform-origin: 50% 60%;
}

/* Hover / focus */
.c-socialLink:hover .c-socialIco,
.c-socialLink:focus-visible .c-socialIco{
  transform: rotate(45deg) translateY(-1px); /* ↗ becomes ↑ */
  opacity: 1;
}

.c-socialLink:focus-visible{
  outline: 2px solid rgba(255, 59, 47, 0.35);
  outline-offset: 4px;
  border-radius: 6px;
}/* CONTACT BUTTON — premium hover (same as landing) */
.c-btn{
  margin-top: 8px;
  width: fit-content;
  padding: 14px 26px;
  height: auto;

  border: none;
  border-radius: 2px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  background: #111;
  color: #fff;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    background-color .25s ease,
    color .25s ease,
    gap .25s ease,
    transform .12s ease;
}

.c-btnArrow{
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s ease, transform .25s ease;
}

/* hover: invert + arrow appears */
.c-btn:hover{
  background: #fff;
  color: #000;
  gap: 18px;
}
.c-btn:hover .c-btnArrow{
  opacity: 1;
  transform: translateX(0);
}

/* press */
.c-btn:active{
  transform: translateY(1px);
}

/* mobile: full width (come già avevi) */
@media (max-width: 980px){
  .c-btn{ width: 100%; }
}
/* CONTACTS — BURGER MENU SUPPORT (HTML + CSS only) */

@media (max-width: 900px){

  /* Nav must stay fixed on Contacts too */
  body.page-contact header.nav,
  body.page-contact .nav{
    position: fixed !important;
    top: 0; left: 0; right: 0;
    z-index: 2147483647 !important;
  }

  /* Make sure nav inner is clickable */
  body.page-contact .nav__inner{
    pointer-events: auto !important;
  }

  /* Hide desktop links on mobile (keep logo + burger) */
  body.page-contact .nav__link--desktop{
    display: none !important;
  }

  /* Show burger on mobile (white on black) */
  body.page-contact .nav__burger{
    display: inline-flex !important;
    margin-left: auto !important;

    color: #fff !important;
    opacity: 1 !important;
    pointer-events: auto !important;

    position: relative !important;
    z-index: 2147483647 !important;
  }

  body.page-contact .nav__burgerIcon::before,
  body.page-contact .nav__burgerIcon::after{
    background: #fff !important;
  }

  /* Mobile menu overlay must be fixed */
  body.page-contact .mobile-menu{
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483646 !important;
  }

  /* Panel must be fixed too (your earlier requirement) */
  body.page-contact .mobile-menu__panel{
    position: fixed !important;
    inset: 0 !important;
    height: 100dvh !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}
/* Disable mobile auto-link styling for phone numbers */
body.page-contact a[href^="tel"]{
  color: inherit !important;
  text-decoration: none !important;
  font-weight: inherit;
}

/* iOS Safari extra safety */
body.page-contact a[x-apple-data-detectors],
body.page-contact a[x-apple-data-detectors-type="telephone"]{
  color: inherit !important;
  text-decoration: none !important;
}
