/* ============================================
   SMART BUONO - Landing Page Styles
   Mobile-first responsive design
   ============================================ */

/* --- DESIGN TOKENS --- */
:root {
  --color-primary: #3DBFFF;
  --color-primary-dark: #173a4d;
  --color-text: #1a1a1a;
  --color-text-secondary: #555;
  --color-text-light: #333;
  --color-bg: #ffffff;
  --color-bg-light: #eaf7ff;
  --color-border: #dcdcdc;
  --color-error: #d32f2f;
  --color-success: #2e7d32;
  --font-family: 'Rethink Sans', system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-full: 999px;
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea {
  font-family: inherit;
}

/* --- FOCUS VISIBLE --- */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  min-height: 72px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  box-shadow: 0 1px 0 rgba(20, 50, 86, 0.04);
}

.header__logo {
  display: flex;
  min-width: 0;
  align-items: center;
  line-height: 0;
}

.header__logo-img {
  width: min(212px, calc(100vw - 104px));
  height: auto;
  max-height: 28px;
  object-fit: contain;
  object-position: left center;
}

.header__nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 16px;
  left: 16px;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: var(--color-bg);
  box-shadow: 0 18px 40px rgba(23, 56, 94, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.header__nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.header__nav a {
  min-height: 44px;
  padding: 11px 14px;
  border-radius: var(--radius-full);
  color: var(--color-primary-dark);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.header__nav a:hover,
.header__nav a:focus-visible,
.header__nav a[aria-current='page'] {
  background: rgba(61, 191, 255, 0.14);
  color: var(--color-primary-dark);
}

.header__menu-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: transparent;
  color: var(--color-primary-dark);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header__menu-toggle:hover,
.header__menu-toggle:focus-visible {
  border-color: var(--color-primary);
  background: rgba(61, 191, 255, 0.12);
}

.header__menu-icon,
.header__menu-icon::before,
.header__menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: '';
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header__menu-icon {
  position: relative;
}

.header__menu-icon::before,
.header__menu-icon::after {
  position: absolute;
  left: 0;
}

.header__menu-icon::before {
  top: -6px;
}

.header__menu-icon::after {
  top: 6px;
}

.header__menu-toggle[aria-expanded='true'] .header__menu-icon {
  background: transparent;
}

.header__menu-toggle[aria-expanded='true'] .header__menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.header__menu-toggle[aria-expanded='true'] .header__menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--color-bg);
  padding: 40px 20px 48px;
  overflow: hidden;
}

.hero__container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

/* Mobile: show mobile image, hide collage */
.hero__mobile-img {
  display: block;
  width: 100%;
  margin-bottom: 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero__mobile-img-element {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.hero__collage {
  display: none;
}

.hero__content {
  text-align: center;
  padding: 0 12px;
}

.hero__title {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 14px;
}

.hero__subtitle {
  max-width: 420px;
  margin: 0 auto 24px;
  font-size: 16px;
  font-weight: 400;
  color: #444;
  line-height: 1.5;
}

.hero__cta {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-primary-dark);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  min-height: 44px;
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(61, 191, 255, 0.35);
}

.hero__img {
  border-radius: 18px;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* ============================================
   BLUE BAND
   ============================================ */
.band {
  background: var(--color-primary);
  text-align: center;
  padding: 48px 20px 56px;
}

.band__label {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-bg-light);
  text-transform: uppercase;
}

.band__title {
  font-size: clamp(1.75rem, 5vw, 2.625rem);
  font-weight: 500;
  color: var(--color-bg);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.band__text {
  max-width: 680px;
  margin: 0 auto;
  font-size: 16px;
  font-weight: 400;
  color: #f2fbff;
  line-height: 1.5;
}

/* ============================================
   APP SECTION
   ============================================ */
.app {
  background: var(--color-bg);
  padding: 64px 20px;
}

.app__title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 48px;
}

.app__row {
  max-width: 1000px;
  margin: 0 auto 56px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.app__row:last-child {
  margin-bottom: 0;
}

.app__phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}


.app__phone-screen {
  width: 150px;
  height: 312px;
  border-radius: 24px;
  object-fit: cover;
}

.app__features {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 480px;
}

.app__feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.app__feature-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 55ch;
}

/* ============================================
   PARTNERS - SLIDER RESPONSIVE
   ============================================ */
.partners {
  background: var(--color-primary);
  text-align: center;
  padding: 48px 20px 56px;
}

.partners__title {
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 700;
  color: var(--color-bg);
  margin-bottom: 12px;
}

.partners__text {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 14px;
  color: var(--color-bg-light);
  line-height: 1.5;
}

.partners__slider {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.partners__viewport {
  overflow: hidden;
  width: 100%;
}

.partners__track {
  display: flex;
  align-items: stretch;
  transition: transform 0.45s ease-out;
  width: 100%;
}

.partners__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.partners__grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 12px;
  padding: 4px 0 12px;
  width: 100%;
  margin: 0 auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

.partners__grid::-webkit-scrollbar {
  height: 4px;
}

.partners__grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

.partners__logo-card {
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  flex: 0 0 calc(50% - 6px);
  scroll-snap-align: start;
}

.partners__logo-card:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.partners__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}

.partners__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.partners__controls[hidden] {
  display: none;
}

.partners__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-bg);
  cursor: pointer;
  transition: background-color 0.2s ease-out, color 0.2s ease-out, transform 0.2s ease-out;
}

.partners__arrow:hover,
.partners__arrow:focus-visible {
  background: var(--color-bg);
  color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.partners__arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.partners__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.partners__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-full);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease-out, transform 0.2s ease-out;
}

.partners__dot[aria-current='true'] {
  background: var(--color-bg);
  transform: scale(1.15);
}

.partners__slider.is-ready .partners__grid {
  overflow: visible;
  scrollbar-width: none;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .partners__slider.is-ready .partners__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .partners__logo-card {
    min-width: 0;
  }
}

/* Desktop (1024px+): griglia statica 9 colonne x 2 righe */
@media (min-width: 1024px) {
  .partners {
    padding: 56px 24px 64px;
  }

  .partners__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    gap: 16px;
    padding-bottom: 0;
    scrollbar-width: auto;
  }

  .partners__logo-card {
    height: 100px;
    padding: 16px;
    flex: 0 0 calc((100% - (var(--partner-columns) - 1) * 16px) / var(--partner-columns));
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners__track,
  .partners__arrow,
  .partners__dot,
  .partners__logo-card {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }
}

/* ============================================
   BENEFITS
   ============================================ */
.benefits {
  background: var(--color-bg);
  padding: 64px 20px 96px;
}

.benefits__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.benefits__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.benefits__title-accent {
  color: var(--color-primary);
}

.benefits__subtitle {
  max-width: 560px;
  margin: 0 auto;
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.benefits__list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.benefits__item {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.benefits__item-img-wrapper {
  width: 100%;
  max-width: 360px;
}

.benefits__item-img {
  border-radius: var(--radius-md);
  object-fit: cover;
  width: 100%;
  height: auto;
}

.benefits__item-img--full {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-md);
}

.benefits__item-full {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefits__item-full-caption {
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 720px;
  margin: 0 auto;
}

.benefits__item-content {
  width: 100%;
  max-width: 480px;
}

.benefits__item-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.benefits__item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.benefits__item-list li {
  font-size: 15px;
  color: var(--color-text-light);
  padding-left: 22px;
  position: relative;
}

.benefits__item-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact {
  background: var(--color-bg);
  padding: 24px 20px 80px;
}

.contact__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 12px;
}

.contact__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.contact__subtitle {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.contact__form {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  width: 100%;
}

/* Honeypot - visually hidden */
.contact__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.contact__form-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__form-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 4px;
}

.contact__form-heading h2 {
  color: var(--color-primary-dark);
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0;
}

.contact__form-heading p {
  color: var(--color-text-secondary);
  font-size: 14px;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.contact__help {
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

.contact__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.contact__required {
  color: var(--color-error);
}

.contact__input {
  box-sizing: border-box;
  font-size: 14px;
  max-width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.3s ease-out;
  min-height: 44px;
  width: 100%;
}

.contact__input:focus {
  border-color: var(--color-primary);
}

.contact__input--error {
  border-color: var(--color-error);
}

.contact__input--textarea {
  resize: vertical;
  min-height: 100px;
}

.contact__error {
  font-size: 12px;
  color: var(--color-error);
  min-height: 0;
  transition: min-height 0.3s ease-out;
}

.contact__error:not(:empty) {
  min-height: 18px;
}

/* Checkbox privacy */
.contact__field--checkbox {
  margin-top: 8px;
}

.contact__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.contact__checkbox {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--color-primary);
  min-width: 20px;
  min-height: 20px;
}

.contact__checkbox-text {
  flex: 1;
}

.contact__link {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.3s ease-out;
}

.contact__link:hover,
.contact__link:focus-visible {
  color: var(--color-primary-dark);
}

.contact__submit {
  align-self: center;
  margin-top: 8px;
  background: var(--color-primary);
  color: var(--color-primary-dark);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, opacity 0.3s ease-out;
  min-height: 44px;
  min-width: 44px;
}

.contact__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(61, 191, 255, 0.35);
}

.contact__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.contact__feedback {
  text-align: center;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

.contact__feedback--success {
  background: #e8f5e9;
  color: var(--color-success);
}

.contact__feedback--error {
  background: #ffebee;
  color: var(--color-error);
}

.support-confirmation {
  position: fixed;
  inset: 0;
  width: min(90vw, 440px);
  max-height: calc(100vh - 40px);
  margin: auto;
  padding: 32px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  text-align: center;
  box-shadow: 0 16px 48px rgba(23, 58, 77, 0.2);
}

.support-confirmation::backdrop {
  background: rgba(23, 58, 77, 0.65);
}

.support-confirmation h2 {
  color: var(--color-primary-dark);
  font-size: 24px;
  line-height: 1.25;
}

.support-confirmation--error h2 {
  color: var(--color-error);
}

.support-confirmation p {
  margin-top: 16px;
}

.support-confirmation__close {
  min-height: 44px;
  margin-top: 24px;
  padding: 10px 32px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-primary-dark);
  font-size: 15px;
  font-weight: 600;
}

.support-confirmation__close:focus-visible {
  outline: 3px solid var(--color-primary-dark);
  outline-offset: 3px;
}

/* ============================================
   SUPPORT PAGE
   ============================================ */
.support-page {
  background: var(--color-bg);
  padding: 64px 20px 96px;
}

.support-page__header {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.support-page__eyebrow {
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.support-page__title {
  color: var(--color-text);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 16px;
}

.support-page__subtitle {
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 640px;
}

.support-page__grid {
  align-items: start;
  display: grid;
  gap: 32px;
  margin: 0 auto;
  max-width: 1040px;
}

.support-page__grid > * {
  min-width: 0;
}

.support-page__grid > .contact__form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(23, 58, 77, 0.08);
  max-width: none;
  padding: 24px;
}

.support-page__grid > .support-faq {
  background: var(--color-bg-light);
  border: 1px solid #cfe0e8;
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(23, 58, 77, 0.08);
  padding: 24px;
}

.support-page__panel {
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  display: grid;
  gap: 12px;
  line-height: 1.7;
  margin: 0 auto 32px;
  max-width: 1040px;
  padding: 24px;
}

.support-page__panel strong {
  color: var(--color-text);
}

/* ============================================
   SUPPORT PORTAL CHAT
   ============================================ */
.support-portal {
  background: var(--color-bg-light);
  padding: 48px 20px 96px;
}

.support-portal__container {
  margin: 0 auto;
  max-width: 760px;
}

.support-portal__header {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  padding: 24px 28px;
}

.support-portal__eyebrow {
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.support-portal__title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.support-portal__ref {
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.support-portal__badge {
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
}

.support-portal__badge--open {
  background: #fff3cd;
  color: #8a6100;
}

.support-portal__badge--in_progress {
  background: var(--color-bg-light);
  color: var(--color-primary-dark);
}

.support-portal__badge--resolved {
  background: #e6f4ea;
  color: var(--color-success);
}

.support-portal__badge--closed {
  background: #ececec;
  color: var(--color-text-secondary);
}

.support-portal__title {
  color: var(--color-text);
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
}

.support-portal__meta {
  color: var(--color-text-secondary);
  font-size: 13px;
  margin: 0;
}

.support-portal__toast {
  background: var(--color-bg-light);
  border-radius: var(--radius-sm);
  color: var(--color-primary-dark);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  padding: 12px 16px;
  text-align: center;
}

.support-portal__thread {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.support-portal__bubble-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.support-portal__bubble-row--customer {
  align-items: flex-end;
}

.support-portal__bubble-row--operator {
  align-items: flex-start;
}

.support-portal__author {
  align-items: center;
  color: var(--color-text-secondary);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
}

.support-portal__avatar {
  align-items: center;
  border-radius: var(--radius-full);
  display: inline-flex;
  flex-shrink: 0;
  height: 26px;
  justify-content: center;
  object-fit: cover;
  width: 26px;
}

.support-portal__bubble {
  border-radius: var(--radius-md);
  line-height: 1.6;
  max-width: 78%;
  padding: 14px 18px;
}

.support-portal__bubble p {
  margin: 0;
  white-space: pre-line;
}

.support-portal__bubble--customer {
  background: var(--color-primary-dark);
  border-bottom-right-radius: 4px;
  color: #fff;
}

.support-portal__bubble--operator {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 4px;
  color: var(--color-text);
}

.support-portal__timestamp {
  color: var(--color-text-secondary);
  font-size: 11px;
}

.support-portal__form {
  position: relative;
}

.support-portal__error {
  color: var(--color-error);
  font-size: 13px;
  margin-bottom: 8px;
}

.support-portal__input-bar {
  align-items: flex-end;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 10px;
  padding: 10px 10px 10px 20px;
}

.support-portal__input-bar textarea {
  border: none;
  color: var(--color-text);
  flex: 1;
  font-family: inherit;
  font-size: 14px;
  max-height: 160px;
  min-height: 24px;
  outline: none;
  padding: 8px 0;
  resize: none;
}

.support-portal__send {
  align-items: center;
  background: var(--color-primary-dark);
  border: none;
  border-radius: var(--radius-full);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.support-portal__send:hover {
  background: var(--color-primary);
}

@media (max-width: 600px) {
  .support-portal__bubble {
    max-width: 90%;
  }
}

.support-faq {
  margin: 0;
  max-width: none;
}

.support-faq__header {
  margin-bottom: 16px;
}

.support-faq__title {
  color: var(--color-text);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.support-faq__list {
  display: grid;
  gap: 12px;
}

.support-faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  overflow: hidden;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.support-faq__item summary {
  padding: 20px 24px;
  color: var(--color-primary-dark);
  cursor: pointer;
  font-weight: 700;
}

.support-faq__item[open] summary {
  background: transparent;
}

.support-faq__item[open] {
  background: #dff4ff;
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(23, 58, 77, 0.1);
}

.support-faq__answer {
  padding: 0 24px 22px;
  color: var(--color-text-secondary);
}

.support-faq__answer > * + * {
  margin-top: 12px;
}

/* ============================================
   CTA FINALE
   ============================================ */
.cta-finale {
  background: var(--color-bg);
  padding: 64px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-finale__content {
  max-width: 600px;
  margin-bottom: 40px;
}

.cta-finale__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.cta-finale__text {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 55ch;
  margin: 0 auto;
}

.cta-finale__phone {
  position: relative;
}

.cta-finale__phone-screen {
  width: 150px;
  height: 312px;
  border-radius: 24px;
  object-fit: cover;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 32px;
  color: var(--color-primary-dark);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.legal-page__back:hover,
.legal-page__back:focus-visible {
  color: var(--color-primary);
}

.legal-page__back svg {
  flex-shrink: 0;
}

.legal-page__header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--color-primary);
}

.legal-page__company {
  margin-bottom: 24px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.legal-page__company::first-line {
  color: var(--color-text);
  font-weight: 700;
}

.legal-page__title {
  margin-bottom: 8px;
  color: var(--color-primary-dark);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
}

.legal-page__subtitle {
  color: var(--color-text-secondary);
  font-size: 1rem;
  font-weight: 500;
}

.legal-page__body {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.legal-page__body p {
  margin-bottom: 1.2em;
}

.legal-page__body h2 {
  margin-top: 2em;
  margin-bottom: 0.6em;
  color: var(--color-primary-dark);
  font-size: 1.1rem;
  font-weight: 700;
}

.legal-page__body h3 {
  margin-top: 1.4em;
  margin-bottom: 0.5em;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 700;
}

.legal-page__body ul,
.legal-page__body ol {
  margin-bottom: 1.2em;
  padding-left: 1.5em;
}

.legal-page__body ul {
  list-style: disc;
}

.legal-page__body ol {
  list-style: decimal;
}

.legal-page__body li {
  margin-bottom: 0.4em;
}

.legal-page__body table {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-bottom: 1.2em;
  border-collapse: collapse;
  overflow-x: auto;
  font-size: 0.92rem;
}

.legal-page__body th,
.legal-page__body td {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  text-align: left;
  vertical-align: top;
}

.legal-page__body th {
  background: var(--color-bg-light);
  color: var(--color-primary-dark);
  font-weight: 700;
}

.legal-page__body code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--color-bg-light);
  font-size: 0.9em;
}

.legal-page__body .cookie-table th {
  background: var(--color-primary);
  color: #fff;
}

.legal-page__body .cookie-table tr:nth-child(even) td {
  background: #f5fbff;
}

.cookie-note {
  margin: 1.5em 0;
  padding: 14px 18px;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #eaf7ff;
  font-size: 0.95rem;
}

.cookie-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.cookie-badge--necessary {
  background: #d4edda;
  color: #155724;
}

.cookie-badge--functional {
  background: #d1ecf1;
  color: #0c5460;
}

.contact__checkbox-text a {
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: none;
}

.footer__wave-section {
  background: var(--color-bg);
  padding-top: 8px;
  position: relative;
  text-align: center;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -40px;
  padding: 12px 24px;
  line-height: 0;
  position: relative;
  z-index: 10;
  /*background: var(--color-bg);
  border-radius: var(--radius-full);*/
}

.footer__logo-img {
  height: 24px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.footer__wave {
  position: relative;
  line-height: 0;
  margin-top: 0;
  margin-bottom: -10px;
  width: 100%;
}

.footer__wave svg {
  width: 100%;
  height: 80px;
  display: block;
}

.footer__content {
  background: var(--color-primary);
  padding: 40px 20px 24px;
  text-align: center;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
}

.footer__link {
  font-size: 13px;
  color: var(--color-primary-dark);
  font-weight: 500;
  transition: opacity 0.3s ease-out;
  padding: 4px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer__link:hover {
  opacity: 0.8;
}

.footer__company {
  font-size: 12px;
  color: var(--color-primary-dark);
  opacity: 0.75;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer__copy {
  font-size: 13px;
  color: var(--color-primary-dark);
  opacity: 0.7;
}

/* ============================================
   RESPONSIVE - TABLET (>= 768px)
   ============================================ */
@media (min-width: 768px) {
  .legal-page {
    padding: 80px 40px 100px;
  }

  .header {
    min-height: 78px;
    padding: 16px clamp(24px, 5vw, 72px);
  }

  .header__logo-img {
    width: auto;
    height: 32px;
    max-height: none;
  }

  .header__menu-toggle {
    display: none;
  }

  .header__nav {
    position: static;
    display: flex;
    align-items: center;
    gap: clamp(2px, 1vw, 12px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .header__nav a {
    min-height: 40px;
    padding: 9px clamp(8px, 1.1vw, 16px);
    font-size: 14px;
  }

  .header__nav a:hover,
  .header__nav a:focus-visible {
    background: rgb(61, 191, 255);
  }

  /* Hero tablet: mantieni layout mobile (immagine + testo), migliora padding */
  .hero {
    padding: 48px 32px 56px;
  }

  .hero__mobile-img {
    max-width: 560px;
    margin: 0 auto 40px;
  }

  .hero__subtitle {
    max-width: 520px;
  }

  /* App section: 2-column grid */
  .app {
    padding: 80px 24px;
  }

  .app__row {
    flex-direction: row;
    gap: 48px;
  }

  .app__row--reverse {
    flex-direction: row-reverse;
  }

  .app__phones {
    gap: 18px;
  }

/* Benefits: grid layout */
  .benefits__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .benefits__item-img-wrapper {
    max-width: none;
  }

  .benefits__item-content {
    max-width: none;
  }

  /* Form: 2-column rows */
  .contact__form-row {
    flex-direction: row;
    gap: 16px;
  }

  .contact__form-row .contact__field {
    flex: 1;
  }

  /* Footer */
  .footer__wave svg {
    height: 100px;
  }

  .footer__logo {
    margin-bottom: -50px;
    padding: 16px 32px;
  }

  .footer__logo-img {
    height: 28px;
  }

  .footer__links {
    flex-direction: row;
    gap: 24px;
    justify-content: center;
  }

  .footer__content {
    padding: 48px 24px 28px;
  }
}

/* ============================================
   RESPONSIVE - SUPPORT DESKTOP (>= 1100px)
   ============================================ */
@media (min-width: 1100px) {
  .support-page__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    max-width: 1240px;
  }

  .support-page__grid > .contact__form,
  .support-page__grid > .support-faq {
    padding: 32px;
  }
}

/* ============================================
   RESPONSIVE - DESKTOP (>= 1024px)
   ============================================ */
@media (min-width: 1024px) {
  /* Hero: abilita collage da desktop in su */
  .hero {
    padding: 0;
  }

  .hero__mobile-img {
    display: none;
  }

  .hero__collage {
    display: block;
    position: relative;
    height: 750px;
    max-height: 90vh;
    width: 100%;
  }

  .hero__img-wrapper {
    position: absolute;
    overflow: hidden;
    border-radius: 16px;
  }

  .hero__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 620px;
    z-index: 10;
    padding: 0 30px;
    text-align: center;
  }

  .hero__container {
    min-height: 750px;
    max-height: 90vh;
    width: 100%;
    max-width: 100%;
  }

  /* 1. Top left - donna al bar (ROSSO) */
  .hero__img-wrapper--1 {
    top: 30px;
    left: 16%;
    width: 190px;
    height: 228px;
  }

  /* 2. Top right - pagamento smartphone ristorante (VERDE ACQUA) */
  .hero__img-wrapper--2 {
    top: 25px;
    right: 14%;
    width: 280px;
    height: 190px;
  }

  /* 3. Center left - uomo con smartphone (VERDE CHIARO) */
  .hero__img-wrapper--3 {
    top: 280px;
    left: 3%;
    width: 175px;
    height: 224px;
  }

  /* 4. Bottom left - tavolata dall'alto (CORALLO) */
  .hero__img-wrapper--4 {
    top: 525px;
    left: 14%;
    width: 300px;
    height: 215px;
  }

  /* 5. Middle right - donna al supermercato (VIOLA) */
  .hero__img-wrapper--5 {
    top: 235px;
    right: 9%;
    width: 175px;
    height: 210px;
  }

  /* 6. Bottom right - pranzo tra persone (ROSA) */
  .hero__img-wrapper--6 {
    top: 465px;
    right: 14%;
    width: 280px;
    height: 200px;
  }

  .hero__title {
    font-size: 52px;
  }

  /* Band */
  .band {
    padding: 56px 24px 64px;
  }

  /* App */
  .app__title {
    margin-bottom: 56px;
  }

  .app__row {
    margin-bottom: 72px;
  }

  .app__feature-title {
    font-size: 20px;
  }

  /* Benefits */
  .benefits {
    padding: 80px 24px 120px;
  }

  .benefits__list {
    gap: 56px;
  }

  .benefits__header {
    margin-bottom: 56px;
  }

  /* Contact */
  .contact {
    padding: 24px 24px 96px;
  }

  /* CTA Finale */
  .cta-finale {
    padding: 80px 24px;
  }
}

/* ============================================
   RESPONSIVE - LARGE (>= 1280px)
   ============================================ */
@media (min-width: 1280px) {
  .hero__container {
    min-height: 850px;
    max-height: 92vh;
    width: 100%;
    max-width: 100%;
  }

  .hero__collage {
    height: 850px;
    max-height: 92vh;
    width: 100%;
  }

  /* 1. Top left - donna al bar (ROSSO) */
  .hero__img-wrapper--1 {
    top: 40px;
    left: 15%;
    width: 220px;
    height: 264px;
  }

  /* 2. Top right - pagamento smartphone ristorante (VERDE ACQUA) */
  .hero__img-wrapper--2 {
    top: 35px;
    right: 13%;
    width: 320px;
    height: 217px;
  }

  /* 3. Center left - uomo con smartphone (VERDE CHIARO) */
  .hero__img-wrapper--3 {
    top: 325px;
    left: 4%;
    width: 200px;
    height: 256px;
  }

  /* 4. Bottom left - tavolata dall'alto (CORALLO) */
  .hero__img-wrapper--4 {
    top: 600px;
    left: 13%;
    width: 345px;
    height: 240px;
  }

  /* 5. Middle right - donna al supermercato (VIOLA) */
  .hero__img-wrapper--5 {
    top: 270px;
    right: 8%;
    width: 200px;
    height: 240px;
  }

  /* 6. Bottom right - pranzo tra persone (ROSA) */
  .hero__img-wrapper--6 {
    top: 530px;
    right: 13%;
    width: 320px;
    height: 225px;
  }

  .hero__content {
    max-width: 700px;
    padding: 0 40px;
  }
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  margin: 0 auto;
  max-width: 360px;
  background: var(--color-primary-dark);
  color: #fff;
  z-index: 9999;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.35s ease;
}

.cookie-banner--visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner__text {
  font-size: 0.8rem;
  line-height: 1.55;
  margin: 0 0 12px;
}

.cookie-banner__link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__link:hover,
.cookie-banner__link:focus-visible {
  color: #fff;
}

.cookie-banner__btn {
  display: block;
  width: 100%;
  background: var(--color-primary);
  color: var(--color-primary-dark);
  border: none;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.2s, transform 0.1s;
}

.cookie-banner__btn:hover {
  background: #fff;
}

.cookie-banner__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.cookie-banner__btn:active {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: none;
  }
}

@media (min-width: 1024px) {
  .cookie-banner {
    left: auto;
    right: 24px;
    margin: 0;
    width: 280px;
    max-width: none;
    bottom: 24px;
  }
}
