/* Regular */
@font-face {
  font-family: "Muli";
  src: url("../fonts/Muli.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Italic (regular) */
@font-face {
  font-family: "Muli";
  src: url("../fonts/Muli-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Muli";
  src: url("../fonts/Muli-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Muli";
  src: url("../fonts/Muli-Semi-BoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Muli";
  src: url("../fonts/Muli-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Muli";
  src: url("../fonts/Muli-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Muli";
  src: url("../fonts/Muli-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Muli";
  src: url("../fonts/Muli-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ============================
     Typography
  ============================ */
  --font-primary: "Muli", -apple-system, BlinkMacSystemFont, "Segoe UI",
                  Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* Weights from all loaded Muli variants */
  --fw-extralight: 200;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --fw-black: 900;   

  /* Font styles */
  --fs-normal: normal;
  --fs-italic: italic;

  /* ============================
     Colors
  ============================ */
  --color-text: #000000;
  --color-white: #ffffff;
  --color-retailer: #05b1b1;
  --color-retailer-light: rgba(5, 177, 177, 0.2);
  --color-brand: #0078bb;
  --color-green: #95c88b;
  --color-blue: #8dcae9;
  --gradient-title: linear-gradient(to right, var(--color-green), var(--color-blue));
  --color-bg: #ffffff;
  --color-border: #eeeeee;

  /* ============================
     Layout & Spacing
  ============================ */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --role-cap-gap: 20px;
  --border-radius: 6px;
  --transition: all 0.3s ease;
  --switcher-overlap: clamp(190px, 10vw, 190px);
  --role-content-offset: clamp(320px, 12vw, 200px);
  --edge-pad: clamp(40px, 10vw, 140px);
  --role-diameter: calc(100vw);
  --role-drop: clamp(50px, 12vw, 140px);
  --role-content-offset: clamp(70px, 10vw, 260px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; font-synthesis: none; }
body {
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  font-style: var(--fs-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x : hidden;
}

/* ============================
   Font utility classes
============================ */
.text-200  { font-family: var(--font-primary); font-weight: var(--fw-extralight); font-style: var(--fs-normal); }  /* ExtraLight */
.text-200i { font-family: var(--font-primary); font-weight: var(--fw-extralight); font-style: var(--fs-italic); }  /* ExtraLight Italic */

.text-300  { font-family: var(--font-primary); font-weight: var(--fw-light);      font-style: var(--fs-normal); }  /* Light */
.text-300i { font-family: var(--font-primary); font-weight: var(--fw-light);      font-style: var(--fs-italic); }  /* Light Italic */

.text-400  { font-family: var(--font-primary); font-weight: var(--fw-regular);    font-style: var(--fs-normal); }  /* Regular */
.text-400i { font-family: var(--font-primary); font-weight: var(--fw-regular);    font-style: var(--fs-italic); }  /* Regular Italic */

.text-600  { font-family: var(--font-primary); font-weight: var(--fw-semibold);   font-style: var(--fs-normal); }  /* SemiBold */
.text-600i { font-family: var(--font-primary); font-weight: var(--fw-semibold);   font-style: var(--fs-italic); }  /* SemiBold Italic */

.text-700  { font-family: var(--font-primary); font-weight: var(--fw-bold);       font-style: var(--fs-normal); }  /* Bold */
.text-700i { font-family: var(--font-primary); font-weight: var(--fw-bold);       font-style: var(--fs-italic); }  /* Bold Italic */

.text-800  { font-family: var(--font-primary); font-weight: var(--fw-extrabold); font-style: var(--fs-normal); }
.text-900  { font-family: var(--font-primary); font-weight: var(--fw-black);      font-style: var(--fs-normal); }


/* Titles */
h1, .title { font-family: var(--font-primary); font-weight: var(--fw-black); }

/* Subtitles */
h2, h3, .subtitle, .chip, .faq-title, .faq-q {
  font-family: var(--font-primary); font-weight: var(--fw-black);
}

/* Paragraphs / body copy */
p, li, .paragraph, .r-text p, .case-study p {
  font-family: var(--font-primary); font-weight: var(--fw-semibold);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }

.container { width: 100%; max-width: none; margin-inline: 0; }
.container--narrow { width: 90%; max-width: 1200px; margin-inline: auto; }

.site-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-sm) 0;
  position: relative;
}
.header-container { position: relative; height: 60px; }
.site-header .logo {
  height: 48px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.login-btn {
  position: absolute;
  top: 50%;
  right: var(--spacing-sm);
  transform: translateY(-50%);
  background: var(--gradient-title);
  color: var(--color-white);
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  border-radius: 999px;
}
@media (max-width: 768px) {
  .site-header .logo { height: 40px; }
  .login-btn { padding: 0.4rem 1rem; font-size: 0.75rem; }
}

.hero {
  text-align: center;
  padding: var(--spacing-lg) 0;
  background-color: var(--color-bg);
}
.hero h1 {
  font-size: 5.5rem;
  margin-bottom: var(--spacing-sm);
  font-weight: var(--fw-black); 
}
.hero p {
  font-size: 1.75rem;
  font-weight: var(--fw-semibold);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; padding: 0 var(--spacing-sm); }
}

.video-section {
  text-align: center;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: var(--spacing-md) auto 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--border-radius);
}
.video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-toggle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.video-toggle:hover { background: rgba(0, 0, 0, 0.1); }
.video-toggle.hidden { opacity: 0; pointer-events: none; }
.video-toggle::before,
.video-toggle::after { grid-area: 1 / 1; }
.video-toggle::before {
  content: "";
  width: 80px;
  height: 80px;
  border: 4px solid var(--color-retailer);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transition: transform 0.3s, background 0.3s;
}
.video-toggle:hover::before { transform: scale(1.05); background: rgba(255, 255, 255, 0.8); }
.video-toggle.play::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 20px 0 20px 32px;
  border-color: transparent transparent transparent var(--color-retailer);
  transform: translateX(2px);
}
.video-toggle.pause::after {
  content: "";
  width: 40px;
  height: 40px;
  background:
    linear-gradient(var(--color-retailer) 0 0) no-repeat left center,
    linear-gradient(var(--color-retailer) 0 0) no-repeat right center;
  background-size: 10px 40px;
}
@media (max-width: 768px) {
  .video-toggle::before { width: 60px; height: 60px; border-width: 3px; }
  .video-toggle.play::after { border-width: 16px 0 16px 24px; }
  .video-toggle.pause::after { background-size: 6px 30px; width: 30px; height: 30px; }
}


.role-section {
  position: relative;
  width: 100%;
  height: calc(var(--role-diameter) / 2 + var(--role-drop));
  /* z-index: 1; */
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.role-section::before {
  content: "";
  position: absolute;
  /* left: 0; */
  top: calc(100% - var(--role-drop) - var(--role-diameter) / 2);
  /* transform: translateX(-50%); */
  width: var(--role-diameter);
  height: var(--role-diameter);
  background: var(--color-retailer-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.role-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--role-drop);
  pointer-events: none;
  z-index: 0;
}

.role-content {
  /* position: absolute; */
  /* transform: translateX(-50%); */
  top: var(--role-content-offset);
  left: 50%;
  width: min(92%, 1100px);
  text-align: center;
  z-index: 1;
}

.role-arrow {
  width: clamp(24px, 3vw, 36px);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.role-content h2 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.role-content p {
  font-size: clamp(1rem, 2.2vw, 1.75rem);
  line-height: 1.35;
  margin: 0;
  color: var(--color-text);
}

@media (max-width: 768px) {
  :root {
    --role-diameter: 100vw;
    --role-drop: clamp(86px, 8vw, 120px);
    --role-content-offset: clamp(46px, 10vw, 120px);
  }

  .role-section {
    height: calc(var(--role-diameter) / 2 + var(--role-drop));
  }

  .role-content {margin-top: -10vw;width: 92%;}
}


.switcher {
  position: relative;
  z-index: 3;
  margin-top: calc(var(--switcher-overlap) * -1);
  /* top: -40%; */
  /* margin-bottom: -40%; */
}
.switcher-stage { position: relative; }

.panel {
  display: none;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: none;
  isolation: isolate;
}
.panel.is-active { display: block; }

.panel-cap {
  position: relative;
  z-index: 0;
  width: 100%;
  background-repeat: no-repeat;
  background-size: cover;            /* default (desktop) */
  background-color: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.panel-cap--top {
  background-position: center top;
  background-image: var(--cap-top);
  height: clamp(140px, 24vw, 320px);
}
.panel-cap--bottom {
  background-position: center bottom;
  background-image: var(--cap-bottom);
  height: clamp(160px, 26vw, 360px);
  background-color: #d9f2ee;
}

.panel-body {
  position: relative;
  z-index: 1;
  background: var(--panel-bg, transparent);
  transform: translateZ(0);
}

.panel--retailer {
  --panel-bg: var(--color-retailer);
  --cap-top: url("../images/Retailer/Retailer_Top.svg");
  --cap-bottom: url("../images/Retailer/Retailer_Bottom.svg");
}
.panel--brand {
  --panel-bg: var(--color-brand);
  --cap-top: url("../images/Brand/Brand_Top.svg");
  --cap-bottom: url("../images/Brand/Brand_Bottom.svg");
}

.panel--retailer .video-section {
  margin: var(--spacing-lg) auto 0;
}

@media (max-width: 768px) {
  .switcher { margin-top: calc(var(--switcher-overlap) * -0.5); }
  .panel { overflow: visible; }

  .panel-cap {
    background-position: center;
    height: auto;
  }
  .panel-cap--top   { aspect-ratio: 1440 / 320; }
  .panel-cap--bottom{
    aspect-ratio: 1440 / 360;
    background-color: #d9f2ee;
  }

  .panel--retailer {
    --cap-top: url("../images/Retailer/Mobile_Retailer_Top.svg");
    --cap-bottom: url("../images/Retailer/Mobile_Retailer_Bottom.svg");
  }
  .panel--brand {
    --cap-top: url("../images/Brand/Mobile_Brand_Top.svg");
    --cap-bottom: url("../images/Brand/Mobile_Brand_Bottom.svg");
  }

  .panel-body { padding: clamp(20px, 6vw, 40px) 0; }
}



.chip {
  display: inline;
  font-weight: var(--fw-black);
  color: #ffffff;
  font-size: 42px;
  background: var(--gradient-title);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0.12em 0.15em 0.12em 0.15em;
  line-height: 1.6;
}

.r-block {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.r-block.r-reverse { grid-template-columns: 0.95fr 1.05fr; }

.r-text h3 {
  font-weight: var(--fw-extrabold);
  font-size: 35px;
  line-height: 1.1;
  color: #fff;
  margin: 40px 0 40px;
}
.r-text p {
  font-size: 28px;
  font-weight: var(--fw-semibold);
  color: #fff;
  opacity: 0.98;
  line-height: 1.2;
  margin: 0 0 8px 0;
}

.r-list {
  margin: 12px 0 0 0;
  padding-left: 1.1em;
  color: #fff;
  /* Match paragraph sizing/leading in .r-text p */
  font-size: 28px;
  line-height: 1.2;
}

.r-list-faq {
  margin: 12px 0 0 0;
  padding-left: 1.1em;
  color: #222;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}
.r-list li {
  /* Match paragraph spacing rhythm */
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.r-media {
  --media-h: clamp(360px, 42vw, 680px);
  position: relative;
  min-height: var(--media-h);
  width: 100%;
  display: flex;
  align-items: center;
  pointer-events: none; 
}
.r-block:not(.r-reverse) .r-media { justify-content: flex-end; }
.r-block.r-reverse .r-media { justify-content: flex-start; }
.r-block:not(.r-reverse) .r-text { padding-left: var(--edge-pad); }
.r-block.r-reverse .r-text { padding-right: var(--edge-pad); }

.r-media img {
  display: block;
  width: 75%;
  max-width: none;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.r-one .r-media { --media-h: clamp(420px, 48vw, 760px); margin-top: -260px; }
.r-two .r-media { --media-h: clamp(360px, 44vw, 700px); }
.r-three .r-media { --media-h: clamp(380px, 46vw, 720px); }

.r-two{ margin-top: 80px; }

@media (max-width: 900px) {
  .r-block, .r-block.r-reverse { grid-template-columns: 1fr; }

  .r-one .r-media { --media-h: 0px;  margin-top: -90px; }

  .r-media {
    order: -1;
    justify-content: center;
    --media-h: clamp(180px, 48vw, 280px);
  }
  .r-media img {
    width: 38%;
  }

  .r-text { padding-inline: var(--edge-pad); }

  .chip { font-size: 16px; }
  .r-text h3 { font-size: 16px; margin: 20px 0; }
  .r-text p { font-size: 16px; line-height: 1.4; }
  /* Ensure lists match paragraph sizing/leading on mobile */
  .r-list { font-size: 16px; line-height: 1.4; }
  .r-list li { line-height: 1.4; margin: 0 0 8px 0; }
}

.case-study {
  --cs-bg: #d9f2ee;
  background: var(--cs-bg);
  padding-bottom: var(--spacing-lg);
  position: relative;
  z-index: 2;
}

.cs-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.cs-text { padding-right: var(--edge-pad); }
.cs-media { display: flex; justify-content: flex-start; padding-left: 0; }

.cs-media img {
  width: 75%;
  max-width: none;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 0;
}

.case-study .chip { margin: 0 0 14px 0; }

.case-study h3 {
  color: #000;
  font-weight: var(--fw-extrabold);
  font-size: 35px;
  line-height: 1.15;
  margin: 40px 0 40px;
}

.case-study p {
  color: #000;
  font-size: 28px;
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  margin: 0;
}

@media (max-width: 900px) {
  .cs-wrap {
    grid-template-columns: 1fr;
    gap: clamp(16px, 4vw, 28px);
  }

  .cs-media {
    order: -1;
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-left: 0;
    justify-content: flex-start;
  }

  .cs-media img {
    width: 55%;
    border-radius: 0;
  }

  .cs-text {
    padding-right: var(--edge-pad);
    padding-left: var(--edge-pad);
  }

  .case-study .chip { font-size: 16px; }
  .case-study h3 {
    font-size: 16px;
    margin: 20px 0;
    line-height: 1.4;
  }
  .case-study p {
    font-size: 16px;
    line-height: 1.45;
  }
}


.farmacie-gallery {
  background: #d9f2ee;
  padding: var(--spacing-lg) 0;
}

.farmacie-gallery .gallery-wrap {
  width: 65%;
  max-width: 1200px;
  margin: 0 auto;
}

.farmacie-gallery img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

@media (max-width: 900px) {
  .farmacie-gallery .gallery-wrap {
    width: 85%;
  }
}

.clienti {
  position: relative;
  padding: 0 0 clamp(60px, 8vw, 120px);
  overflow: hidden;
}

.clienti::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  background: #d9f2ee;
  width: var(--role-diameter);
  height: calc(var(--role-diameter)/2);
  z-index: 0;
  border-bottom-left-radius: 50% 100%;
  border-bottom-right-radius: 50% 100%;
}

.clienti::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(220px, 20vw, 250px);
  background: #d9f2ee;
}

.clienti-wrap {
  position: relative;
  z-index: 2;
  width: 65%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: clamp(40px, 6vw, 72px);
}

.clienti-eyebrow {
  margin: 0 0 14px 0;
  font-size: 18px;
  line-height: 1.2;
  font-style: italic;
  color: rgba(0, 0, 0, 0.5);
}

.clienti-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
}

@media (max-width: 900px) {
  .clienti-wrap {
    width: 85%;
  }
  .clienti::before {
    border-bottom-left-radius: 50% 100%;
    border-bottom-right-radius: 50% 100%;
  }
  .clienti-eyebrow {
    font-size: 16px;
  }
}

.eventi {
  position: relative;
  z-index: 1;
  margin-top: calc(-2 * clamp(80px, 10vw, 200px));
  padding: 0;
  background: transparent;
  overflow: visible;
}

.eventi-wrap {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
}

#eventi-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

@media (max-width: 900px) {
  .eventi {
    margin-top: calc(-2 * clamp(50px, 12vw, 120px));
  }
}

.contact {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * clamp(90px, 15vw, 180px));
  width: 100vw;
  display: grid;
  place-items: center;
  overflow: visible;
  z-index: 0;
}

.contact-bg {
  width: 100vw;
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: center top;
  pointer-events: none;
  z-index: 0;
  grid-area: 1 / 1;
}

.contact-wrap {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  width: min(70%, 900px);
  text-align: center;
  color: #000;
  padding: clamp(64px, 6vw, 100px) 0;
  margin: 0 auto;
  box-sizing: border-box;
}

.contact-title {
  font-weight: var(--fw-extrabold);
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  margin-bottom: 12px;
}

.contact-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.75rem);
  font-weight: var(--fw-semibold);
  margin-bottom: clamp(24px, 4vw, 40px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.6vw, 22px);
}

.contact-form .form-row {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
}

.contact-form input {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 14px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  background: #fff;
  box-sizing: border-box;
}

.contact-btn {
  align-self: flex-end;
  background: var(--gradient-title);
  color: #fff;
  /* font-weight: 700; */
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity .25s ease;
}
.contact-btn:hover { opacity: .85; }

@media (max-width: 768px) {
  .contact {
    margin-top: calc(-0.5 * clamp(90px, 15vw, 180px));
  }

  .contact-title {
    margin-bottom: 0;
  }

  .contact-wrap {
    width: 85%;
    padding: clamp(40px, 6vw, 64px) 0;
    margin: 0 auto;
  }

  .contact-subtitle,
  .contact-form input {
    font-size: 16px;
    font-weight: var(--fw-semibold)
  }

  .contact-form .form-row {
    gap: 12px;
    flex-wrap: wrap;
  }

  .contact-form input {
    padding: 10px 12px;
    flex: 1 1 calc(50% - 12px);
  }

  .contact-btn {
    align-self: center;
    padding: 0.6rem 1.5rem;
    font-size: 16px;
  }
}

.faq {
  position: relative;
  z-index: 3;
  padding: clamp(96px, 12vw, 160px) 0 clamp(80px, 10vw, 140px);
  background: #fff;
  border-top-left-radius: 50% 600px;
  border-top-right-radius: 50% 600px;
  margin-top: -300px;
}

.faq-wrap {
  width: 65%;
  max-width: 1200px;
  margin: 180px auto 0 auto;
}

.faq-title {
  text-align: center;
  font-weight: var(--fw-extrabold); 
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  margin-bottom: clamp(20px, 3vw, 36px);
  color: #000;
}

.faq-item + .faq-item {
  margin-top: clamp(16px, 2.6vw, 28px);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: clamp(18px, 2.4vw, 28px) 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: var(--fw-extrabold);
  line-height: 1.25;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-q:focus { outline: none; }
.faq-q:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 4px;
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  position: relative;
}
.faq-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform .25s ease;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
}
.faq-a > div {
  padding: 0 0 clamp(18px, 2.4vw, 24px);
  color: #222;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
}

.faq-item.is-open .faq-a { max-height: 420px; }
.faq-item.is-open .faq-icon::before {
  transform: translate(-50%, -50%) rotate(135deg);
}

@media (max-width: 768px) {
  .faq {
    padding: 40px 0 60px;
    border-top-left-radius: 80% 200px;
    border-top-right-radius: 80% 200px;
    margin-top: -50px;
  }

  .faq-wrap {
    width: 85%;
    margin: 100px auto 0 auto;
  }

  .faq-title {
    margin-bottom: 16px;
  }

  .faq-q {
    font-size: 16px;
    padding: 12px 0;
  }

  .faq-a > div {
    font-size: 16px;
    padding-bottom: 12px;
  }
}


.site-footer {
  margin-top: var(--spacing-lg);
  position: relative;
}
.footer-bg {
  background-color: #f9fafc;
  padding: var(--spacing-lg) 0;
  border-top-left-radius: 100px;
  border-top-right-radius: 100px;
  text-align: center;
}
.footer-content { max-width: 600px; margin: 0 auto; }
.footer-logo { height: 72px; margin: 0 auto var(--spacing-sm); }
.legal { font-size: 0.9rem; color: var(--color-text); margin-top: var(--spacing-md); }
@media (max-width: 768px) {
  .footer-logo { height: 56px; }
  .legal { font-size: 0.8rem; padding: 0 var(--spacing-sm); }
}
