/* ============================================
   TURNOVER — Design System
   Palette ufficiale:
   - Yellow Green  #8CC63F
   - Fresh Sky     #29ABE2
   - Alabaster     #EAEAEA
   - Pale Sky      #C0D6DF
   - Iron Grey     #474F55
============================================ */

:root {
  --c-green: #8CC63F;
  --c-green-dark: #7AB032;
  --c-blue: #29ABE2;
  --c-blue-dark: #1E8FBF;
  --c-grey-light: #EAEAEA;
  --c-pale-sky: #C0D6DF;
  --c-pale-sky-bg: #E6F0F4;
  --c-iron: #474F55;
  --c-text: #474F55;
  --c-text-muted: #6B747B;
  --c-white: #FFF;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 4px rgb(0 0 0 / 5%);
  --shadow-md: 0 4px 12px rgb(0 0 0 / 8%);
  --shadow-lg: 0 8px 24px rgb(0 0 0 / 10%);
  --container-max: 1200px;
  --header-h: 64px;
  --font-sans: "Calibri", "Carlito", "Segoe UI", -apple-system, blinkmacsystemfont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.2;
  color: var(--c-iron);
}

p { margin: 0 0 1em; }

sup {
  font-size: .6em;
  vertical-align: super;
  line-height: 0;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.text-center { text-align: center; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  color: var(--c-text-muted);
  margin-bottom: 8px;
  font-weight: 700;
}

.eyebrow.small {
  font-size: 11px;
  margin-bottom: 4px;
}

.section-title {
  color: var(--c-blue);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--c-iron);
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 700;
  margin-bottom: 32px;
}

.narrow-text {
  max-width: 880px;
  margin: 0 auto;
}

/* ============================================
   HEADER
============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-blue);
  height: var(--header-h);
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo img {
  height: 28px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu a {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: opacity .2s;
}

.nav-menu a:hover {
  opacity: .75;
  text-decoration: none;
}

.nav-cta {
  background: var(--c-green);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: background .2s;
}

.nav-cta:hover {
  background: var(--c-green-dark);
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform .25s, opacity .25s;
}

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  background: #fff url('assets/hero-farmacista.webp') no-repeat right center;
  background-size: contain;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 460px;
  padding: 48px 24px;
}

.hero-content {
  grid-column: 1;
  position: relative;
  z-index: 2;
  max-width: 540px;
}

.hero-logo {
  width: 240px;
  margin-bottom: 16px;
}

.hero h1 {
  color: var(--c-iron);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

.hero-ribbon {
  background: var(--c-green);
  color: #fff;
  padding: 14px 0;
  font-weight: 700;
  font-size: 18px;
}

/* ============================================
   INTRO
============================================ */
.intro {
  padding: 56px 0;
  background: #fff;
}

.intro p {
  max-width: 980px;
  margin: 0 auto 1em;
  font-size: 17px;
  line-height: 1.65;
}

/* ============================================
   SECTION BACKGROUNDS
============================================ */
.section-pale {
  background: var(--c-pale-sky-bg);
  padding: 64px 0;
  text-align: center;
}

.section-white {
  background: #fff;
  padding: 64px 0;
}

/* ============================================
   BENEFIT BLOCKS (gestore / freelance)
============================================ */
.benefit-block {
  padding: 64px 0;
  background: #fff;
}

.benefit-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 32px;
}

.benefit-grid.reverse {
  grid-template-columns: 1fr 1.3fr;
}

.benefit-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
}

.benefit-title {
  color: var(--c-green);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  margin: 0;
}

.benefit-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  object-position: 30% center;
  aspect-ratio: 4/5;
  width: 100%;
}

/* Steps box (verde) */
.steps-box {
  background: var(--c-green);
  color: #fff;
  padding: 24px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.steps-box h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 12px;
}

.steps-box ol {
  margin: 0;
  padding-left: 24px;
  display: grid;
  gap: 6px;
}
.steps-box li { line-height: 1.5; }
.steps-box strong { font-weight: 700; }

/* ============================================
   FAQ
============================================ */
.faq-list {
  max-width: 860px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--c-grey-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}

.faq-item[open] {
  border-color: var(--c-blue);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  color: var(--c-iron);
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--c-blue);
  transition: transform .25s;
}

.faq-icon::before {
  top: 9px; left: 2px;
  width: 16px; height: 2px;
}

.faq-icon::after {
  top: 2px; left: 9px;
  width: 2px; height: 16px;
}
.faq-item[open] .faq-icon::after { transform: scaleY(0); }

.faq-answer {
  padding: 0 20px 18px;
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.6;
}
.faq-answer p { margin: 0; }

/* ============================================
   TESTIMONIALS
============================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.testimonial {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  border-top: 4px solid var(--c-green);
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -6px;
  left: 18px;
  font-size: 64px;
  color: var(--c-blue);
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial blockquote {
  margin: 0 0 12px;
  padding-top: 12px;
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text);
}

.testimonial figcaption {
  color: var(--c-iron);
  font-size: 14px;
  border-top: 1px solid var(--c-grey-light);
  padding-top: 12px;
}

/* ============================================
   PLANS
============================================ */
.plans-section {
  background: #fff;
  padding: 64px 0;
}

.plans-logo {
  width: 200px;
  margin: 8px auto 40px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  text-align: left;
}

.plan {
  background: var(--c-pale-sky-bg);
  border-top: 4px solid var(--c-green);
  padding: 28px 24px;
  border-radius: var(--radius-md);
  transition: transform .25s, box-shadow .25s;
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.plan.plan-featured {
  border-top-color: var(--c-blue);
}

.plan-title {
  color: var(--c-blue);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.plan-title span {
  color: var(--c-green);
  font-size: 15px;
}

.plan-featured .plan-title {
  color: var(--c-green);
}

.plan-featured .plan-title span {
  color: var(--c-blue);
}

.plan p {
  color: var(--c-text);
  font-size: 14px;
  margin: 0;
}

.plans-cta-label {
  color: var(--c-iron);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 20px;
}

.plan-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-pill {
  background: var(--c-blue);
  color: #fff;
  border: 0;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s;
  font-family: inherit;
}
.btn-pill:hover { background: var(--c-blue-dark); }
.btn-pill:active { transform: scale(.98); }

/* Store badges */
.store-label {
  color: var(--c-iron);
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 15px;
}

.badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge {
  display: block;
  transition: opacity .2s;
}

.store-badge:hover {
  opacity: .85;
  text-decoration: none;
}

.store-badge svg {
  height: 44px;
  width: auto;
  display: block;
}

/* ============================================
   FORM
============================================ */
.form-section {
  background: var(--c-pale-sky-bg);
  padding: 64px 0;
}

.form-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.form-tab {
  background: #fff;
  border: 2px solid var(--c-blue);
  color: var(--c-blue);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}

.form-tab.active {
  background: var(--c-blue);
  color: #fff;
}

.form-intro {
  text-align: center;
  color: var(--c-iron);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 24px;
}

.contact-form {
  display: none;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.contact-form.active { display: block; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field.full { grid-column: 1 / -1; }
.form-field.small { max-width: 120px; }

.form-field label {
  font-size: 13px;
  color: var(--c-iron);
  font-weight: 700;
}

.form-field input {
  padding: 10px 12px;
  border: 1px solid var(--c-grey-light);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--c-text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.form-field.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.form-field.checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.form-field input:focus {
  outline: 0;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgb(41 171 226 / 15%);
}

.form-field input:invalid:not(:placeholder-shown, :focus) {
  border-color: #e74c3c;
}

.form-field.checkbox label {
  font-weight: 400;
  font-size: 14px;
}

.btn-submit {
  display: block;
  margin: 16px auto 0;
  background: var(--c-green);
  color: #fff;
  border: 0;
  padding: 12px 36px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  font-family: inherit;
}
.btn-submit:hover { background: var(--c-green-dark); }

/* ============================================
   FOOTER
============================================ */
.site-footer {
  background: var(--c-iron);
  color: #cfd4d7;
  padding: 56px 0 0;
}

.site-footer h4 {
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
}
.site-footer a { color: #cfd4d7; }

.site-footer a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer-brand img {
  width: 160px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.5;
}

.footer-info p {
  font-size: 14px;
  line-height: 1.7;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 10%);
  padding: 20px 0;
  font-size: 13px;
  color: #8a9399;
  text-align: center;
}
.footer-bottom p { margin: 0; }

/* ============================================
   TOAST
============================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--c-iron);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  font-size: 15px;
  z-index: 1000;
  opacity: 0;
  transition: transform .3s, opacity .3s;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (width <= 900px) {
  .hero {
    background-size: cover;
    background-position: 75% bottom;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 300px;
  }

  .benefit-grid,
  .benefit-grid.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .benefit-grid.reverse .benefit-image { order: 2; }
  .benefit-image { justify-self: stretch; }

  .benefit-image img {
    aspect-ratio: 16/10;
    object-position: top center;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (width <= 768px) {
  .hero {
    background-image: url('assets/hero-farmacista-mob2.webp');
    background-position: 65% bottom;
  }

  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--c-blue);
    flex-direction: column;
    gap: 0;
    padding: 16px 24px;
    transform: translateY(-120%);
    transition: transform .3s;
    box-shadow: 0 8px 20px rgb(0 0 0 / 15%);
  }
  .nav-menu.open { transform: translateY(0); }

  .nav-menu a:not(.nav-cta) {
    padding: 12px 0;
    border-bottom: 1px solid rgb(255 255 255 / 15%);
    width: 100%;
  }

  .nav-cta {
    align-self: flex-start;
    margin-top: 8px;
    padding: 8px 20px;
    width: auto;
  }
  .hero h1 { font-size: 26px; }
  .hero-logo { width: 180px; }
  #img-farmacista-prof { content: url('assets/farmacista-prof-mobile.jpeg'); }
  .form-row { grid-template-columns: 1fr; }
  .form-field.small { max-width: none; }
  .contact-form { padding: 20px; }

  .intro, .section-pale, .section-white, .benefit-block, .plans-section, .form-section {
    padding: 48px 0;
  }
}
