/* =============================================
   OFFICINA 365 — Dark Design System
   ============================================= */
:root {
  --o365-bg: #070b10;
  --o365-bg-soft: #0d1219;
  --o365-bg-card: #121a24;
  --o365-bg-card-hover: #172030;
  --o365-primary: #008de3;
  --o365-primary-bright: #2aa8ff;
  --o365-primary-glow: rgba(0, 141, 227, 0.45);
  --o365-accent: #e8243f;
  --o365-accent-soft: rgba(232, 36, 63, 0.18);
  --o365-text: #e8edf4;
  --o365-text-muted: #8b95a8;
  --o365-border: rgba(255, 255, 255, 0.08);
  --o365-border-hover: rgba(0, 141, 227, 0.45);
  --o365-radius: 18px;
  --o365-radius-sm: 12px;
  --o365-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --o365-font: 'Inter', system-ui, sans-serif;
  --o365-display: 'Space Grotesk', 'Inter', sans-serif;
  --o365-nav-h: 76px;
  --o365-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --o365-container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.o365-dark {
  margin: 0;
  font-family: var(--o365-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--o365-text);
  background: var(--o365-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--o365-primary-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--o365-display); letter-spacing: -0.03em; line-height: 1.15; color: #fff; }
p { color: var(--o365-text-muted); margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.o365-container {
  width: min(var(--o365-container), calc(100% - 40px));
  margin-inline: auto;
}
.o365-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100000;
  background: var(--o365-accent); color: #fff; padding: 12px 20px; font-weight: 600;
}
.o365-skip:focus { left: 0; }

/* Buttons */
.o365-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.3s var(--o365-ease);
  text-decoration: none; white-space: nowrap;
}
.o365-btn--lg { padding: 15px 30px; font-size: 15px; }
.o365-btn--primary {
  background: linear-gradient(135deg, var(--o365-primary), #005fa3);
  color: #fff; box-shadow: 0 8px 32px var(--o365-primary-glow);
}
.o365-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--o365-primary-glow); color: #fff; }
.o365-btn--ghost {
  background: rgba(255,255,255,0.04); color: var(--o365-text); border-color: var(--o365-border);
}
.o365-btn--ghost:hover { border-color: var(--o365-border-hover); background: rgba(0,141,227,0.08); color: #fff; }
.o365-btn--accent {
  background: linear-gradient(135deg, var(--o365-accent), #b81830);
  color: #fff; box-shadow: 0 8px 32px rgba(232,36,63,0.35);
}
.o365-btn--accent:hover { transform: translateY(-2px); color: #fff; }

.o365-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--o365-primary-bright); margin-bottom: 14px;
}
.o365-eyebrow--light { color: rgba(255,255,255,0.7); }
.o365-gradient-text {
  background: linear-gradient(135deg, var(--o365-primary-bright), #7dd3fc 50%, var(--o365-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.o365-link { font-weight: 600; font-size: 14px; color: var(--o365-primary-bright); }
.o365-link:hover { color: #fff; }

/* Nav */
.o365-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(7, 11, 16, 0.82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--o365-border);
}
.o365-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--o365-nav-h); gap: 20px;
}
.o365-nav__brand {
  display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none;
}
.o365-nav__brand img { width: 44px; height: 44px; object-fit: contain; }
.o365-nav__brand-text { font-family: var(--o365-display); font-size: 18px; }
.o365-nav__brand-text strong { color: var(--o365-primary-bright); }
.o365-nav__menu { display: flex; align-items: center; gap: 8px; }
.o365-menu { display: flex; align-items: center; gap: 4px; }
.o365-menu a {
  display: block; padding: 8px 14px; color: var(--o365-text-muted); font-size: 14px; font-weight: 500;
  border-radius: 8px; transition: all 0.2s;
}
.o365-menu a:hover, .o365-menu .current-menu-item > a, .o365-menu a.is-active {
  color: #fff; background: rgba(0,141,227,0.1);
}
.o365-menu .current-menu-item > a, .o365-menu a.is-active { color: var(--o365-primary-bright); }
.o365-nav__cta { margin-left: 12px; }
.o365-nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  padding: 8px; cursor: pointer;
}
.o365-nav__toggle span {
  display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px;
  transition: 0.3s;
}

/* Hero */
.o365-hero {
  position: relative; overflow: hidden; padding: 72px 0 88px;
}
.o365-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.o365-hero__orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5;
  animation: o365Float 12s ease-in-out infinite;
}
.o365-hero__orb--1 {
  width: 480px; height: 480px; top: -120px; left: -80px;
  background: radial-gradient(circle, var(--o365-primary-glow), transparent 70%);
}
.o365-hero__orb--2 {
  width: 360px; height: 360px; bottom: -60px; right: -40px;
  background: radial-gradient(circle, var(--o365-accent-soft), transparent 70%);
  animation-delay: -4s;
}
.o365-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 80%);
}
@keyframes o365Float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -16px); }
}
.o365-hero__layout {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.o365-hero__title { font-size: clamp(2.4rem, 5vw, 3.75rem); font-weight: 700; margin: 0 0 20px; }
.o365-hero__lead { font-size: 18px; max-width: 520px; margin-bottom: 28px; }
.o365-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.o365-hero__badges { display: flex; flex-wrap: wrap; gap: 16px; }
.o365-hero__badges li {
  font-size: 13px; color: var(--o365-text-muted);
  padding-left: 18px; position: relative;
}
.o365-hero__badges li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--o365-primary);
}
.o365-hero__visual { position: relative; }
.o365-hero__frame {
  position: relative; border-radius: var(--o365-radius); overflow: hidden;
  border: 1px solid var(--o365-border);
  box-shadow: var(--o365-shadow);
}
.o365-hero__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.o365-hero__frame-glow {
  position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(0,141,227,0.35), transparent 40%, rgba(232,36,63,0.2));
  mix-blend-mode: screen; opacity: 0.6;
}

.o365-hero-slider__track {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--o365-bg-soft);
}
.o365-hero-slider__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.o365-hero-slider__slide.is-active {
  opacity: 1; visibility: visible; z-index: 1;
}
.o365-hero-slider__caption {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 12px 16px;
  background: rgba(18,26,36,0.92); border: 1px solid var(--o365-border);
  border-radius: var(--o365-radius-sm); backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  pointer-events: none;
}
.o365-hero-slider__caption strong { display: block; font-size: 13px; color: #fff; }
.o365-hero-slider__caption small { font-size: 11px; color: var(--o365-text-muted); }
.o365-hero-slider__caption-icon { font-size: 22px; line-height: 1; }
.o365-hero-slider__dots {
  position: absolute; right: 16px; bottom: 16px; z-index: 3;
  display: flex; gap: 8px;
}
.o365-hero-slider__dot {
  width: 10px; height: 10px; padding: 0; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.35); cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.o365-hero-slider__dot.is-active {
  background: var(--o365-primary);
  transform: scale(1.15);
  box-shadow: 0 0 0 3px rgba(0,141,227,0.25);
}
.o365-hero-slider__dot:hover { background: rgba(255,255,255,0.7); }

/* Sections */
.o365-section { padding: 88px 0; }
.o365-section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.o365-section__head h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin: 0; }
.o365-section__head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  text-align: left; max-width: none; margin-bottom: 40px;
}

/* Cards */
.o365-card {
  background: var(--o365-bg-card); border: 1px solid var(--o365-border);
  border-radius: var(--o365-radius); padding: 28px;
  transition: all 0.35s var(--o365-ease);
}
.o365-card:hover {
  border-color: var(--o365-border-hover);
  background: var(--o365-bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,141,227,0.1);
}
.o365-card__icon { font-size: 32px; margin-bottom: 16px; }
.o365-card h3 { font-size: 1.2rem; margin: 0 0 12px; }
.o365-card p { font-size: 15px; margin-bottom: 16px; }
.o365-pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Why + Bento */
.o365-why__layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.o365-why__copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 16px; }
.o365-checklist { margin-top: 24px; }
.o365-checklist li {
  position: relative; padding-left: 28px; margin-bottom: 12px;
  color: var(--o365-text-muted); font-size: 15px;
}
.o365-checklist li::before {
  content: '✓'; position: absolute; left: 0; color: var(--o365-primary-bright); font-weight: 700;
}
.o365-bento {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.o365-bento__item {
  padding: 20px; border-radius: var(--o365-radius-sm);
  background: rgba(255,255,255,0.03); border: 1px solid var(--o365-border);
  transition: border-color 0.3s;
}
.o365-bento__item:hover { border-color: var(--o365-border-hover); }
.o365-bento__item--wide { grid-column: span 2; }
.o365-bento__item h4 { margin: 0 0 6px; font-size: 15px; color: #fff; }
.o365-bento__item p { margin: 0; font-size: 13px; }

/* Stats */
.o365-stats {
  padding: 64px 0;
  background: linear-gradient(180deg, transparent, rgba(0,141,227,0.06), transparent);
  border-block: 1px solid var(--o365-border);
}
.o365-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.o365-stat__num {
  display: block; font-family: var(--o365-display); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: #fff; line-height: 1;
}
.o365-stat__label { display: block; margin-top: 8px; font-size: 14px; color: var(--o365-text-muted); }

/* CTA band */
.o365-cta-band__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 48px; border-radius: var(--o365-radius);
  background: linear-gradient(135deg, rgba(0,141,227,0.15), rgba(232,36,63,0.08));
  border: 1px solid var(--o365-border);
  box-shadow: var(--o365-shadow);
}
.o365-cta-band h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.o365-cta-band p { margin: 0; max-width: 560px; }

/* Blog */
.o365-blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.o365-card--blog { padding: 0; overflow: hidden; }
.o365-card__media { display: block; overflow: hidden; }
.o365-card__media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.5s var(--o365-ease); }
.o365-card--blog:hover .o365-card__media img { transform: scale(1.05); }
.o365-card--blog time, .o365-card--blog h3, .o365-card--blog p, .o365-card--blog .o365-link {
  padding-inline: 24px;
}
.o365-card--blog time { display: block; padding-top: 20px; font-size: 12px; color: var(--o365-text-muted); }
.o365-card--blog h3 { font-size: 1.05rem; margin: 8px 0; }
.o365-card--blog h3 a { color: #fff; }
.o365-card--blog .o365-link { display: inline-block; padding-bottom: 24px; }

/* Service & inner pages */
.o365-svc-hero {
  position: relative; min-height: 420px; display: flex; align-items: flex-end;
  padding: 120px 0 72px; background: var(--o365-bg-soft) center/cover no-repeat;
  background-image: linear-gradient(180deg, rgba(7,11,16,0.55) 0%, rgba(7,11,16,0.92) 75%), var(--hero-img, none);
}
.o365-svc-hero--product {
  background-image:
    linear-gradient(180deg, rgba(7,11,16,0.72) 0%, rgba(7,11,16,0.94) 78%),
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(0,141,227,0.15), transparent 60%),
    var(--hero-img, none);
}
.o365-svc-hero__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 20% 0%, rgba(0,141,227,0.18), transparent 60%);
}
.o365-svc-hero__inner { position: relative; max-width: 760px; }
.o365-svc-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 16px; }
.o365-svc-hero p { font-size: 18px; max-width: 640px; margin: 0; }
.o365-svc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.o365-svc-highlights__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: -40px; position: relative; z-index: 2; }
.o365-card--svc { padding: 32px; }
.o365-card__svg { width: 40px; height: 40px; margin-bottom: 18px; filter: brightness(0) saturate(100%) invert(56%) sepia(89%) saturate(2476%) hue-rotate(178deg); }
.o365-card--svc h3 { font-size: 1.15rem; }

.o365-svc-suite { background: var(--o365-bg-soft); border-block: 1px solid var(--o365-border); }
.o365-svc-suite__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.o365-svc-suite__item {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px;
  background: var(--o365-bg-card); border: 1px solid var(--o365-border); border-radius: var(--o365-radius-sm);
  transition: border-color 0.3s;
}
.o365-svc-suite__item:hover { border-color: var(--o365-border-hover); }
.o365-svc-suite__item img { flex-shrink: 0; filter: brightness(0) saturate(100%) invert(56%) sepia(89%) saturate(2476%) hue-rotate(178deg); }
.o365-svc-suite__item strong { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }
.o365-svc-suite__item span { display: block; font-size: 14px; color: var(--o365-text-muted); line-height: 1.5; }

.o365-svc-split--alt { background: rgba(0,141,227,0.04); }
.o365-svc-split__layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.o365-svc-split__layout--reverse { direction: rtl; }
.o365-svc-split__layout--reverse > * { direction: ltr; }
.o365-svc-split__copy h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 16px; }
.o365-svc-quote {
  margin-top: 20px; padding: 16px 20px; border-left: 3px solid var(--o365-primary);
  background: rgba(0,141,227,0.08); border-radius: 0 var(--o365-radius-sm) var(--o365-radius-sm) 0;
  color: var(--o365-text); font-style: italic; font-size: 15px;
}
.o365-svc-phone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  min-height: 280px; border-radius: var(--o365-radius);
  background: linear-gradient(145deg, var(--o365-bg-card), rgba(0,141,227,0.12));
  border: 1px solid var(--o365-border); box-shadow: var(--o365-shadow);
  overflow: hidden;
}
.o365-svc-phone span { font-family: var(--o365-display); font-weight: 600; color: #fff; }
.o365-svc-phone img { opacity: 0.9; }
.o365-svc-phone--photo {
  min-height: 0; padding: 0; background: transparent; border: none; box-shadow: none;
}
.o365-svc-phone__shot {
  width: min(100%, 320px); height: auto; border-radius: 28px;
  border: 1px solid var(--o365-border);
  box-shadow: 0 24px 48px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.04) inset;
  opacity: 1;
}

.o365-showcase { background: var(--o365-bg-soft); border-bottom: 1px solid var(--o365-border); }
.o365-showcase:first-of-type { border-top: 1px solid var(--o365-border); }
.o365-showcase + .o365-showcase { border-top: none; }
.o365-showcase__layout {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: center;
}
.o365-showcase--reverse .o365-showcase__layout { direction: rtl; }
.o365-showcase--reverse .o365-showcase__layout > * { direction: ltr; }
.o365-showcase--reverse .o365-showcase__frame--phone { right: auto; left: -8px; }
.o365-showcase__copy h2 { font-size: clamp(1.75rem, 3.5vw, 2.35rem); margin: 0 0 16px; }
.o365-showcase__copy p { margin: 0 0 20px; max-width: 520px; }
.o365-showcase__visual { position: relative; min-height: 320px; }
.o365-showcase__frame {
  margin: 0; border-radius: var(--o365-radius); overflow: hidden;
  border: 1px solid var(--o365-border); box-shadow: var(--o365-shadow);
  background: var(--o365-bg-card);
}
.o365-showcase__frame img { display: block; width: 100%; height: auto; }
.o365-showcase__frame--wide { position: relative; z-index: 1; }
.o365-showcase__frame--phone {
  position: absolute; right: -8px; bottom: -24px; width: 38%; max-width: 200px; z-index: 2;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.o365-svc-detail { background: var(--o365-bg-soft); border-block: 1px solid var(--o365-border); }
.o365-svc-detail__block {
  padding: 36px 0;
  border-bottom: 1px solid var(--o365-border);
}
.o365-svc-detail__block:last-child { border-bottom: none; padding-bottom: 0; }
.o365-svc-detail__block:first-child { padding-top: 0; }
.o365-svc-detail__block h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); margin: 0 0 20px; }
.o365-svc-why { background: rgba(0,141,227,0.03); }

.o365-svc-cross__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.o365-card--cross { display: block; color: inherit; text-decoration: none; }
.o365-card--cross h3 { margin-top: 0; }
.o365-card--cross .o365-link { margin-top: 8px; display: inline-block; }

/* Azienda */
.o365-about-story__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.o365-about-story__copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 20px; }
.o365-about-story__img { border-radius: var(--o365-radius); overflow: hidden; border: 1px solid var(--o365-border); box-shadow: var(--o365-shadow); }
.o365-about-values__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.o365-about-values__grid--3 { grid-template-columns: repeat(3, 1fr); }
.o365-about-company {
  background: var(--o365-bg-soft); border-block: 1px solid var(--o365-border);
}
.o365-about-company__card {
  max-width: 720px; margin: 0 auto; padding: 36px 40px;
  background: var(--o365-bg-card); border: 1px solid var(--o365-border);
  border-radius: var(--o365-radius); box-shadow: var(--o365-shadow);
}
.o365-about-company__list {
  margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 14px;
}
.o365-about-company__list li {
  display: grid; grid-template-columns: 140px 1fr; gap: 12px; font-size: 15px;
}
.o365-about-company__list strong { color: #fff; font-weight: 600; }
.o365-card--value .o365-card__emoji { font-size: 28px; display: block; margin-bottom: 12px; }
.o365-about-diff__list { display: grid; gap: 20px; max-width: 820px; margin: 0 auto; }
.o365-about-diff__item {
  display: flex; gap: 24px; align-items: flex-start; padding: 28px 32px;
  background: var(--o365-bg-card); border: 1px solid var(--o365-border); border-radius: var(--o365-radius);
}
.o365-about-diff__num {
  flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: linear-gradient(135deg, var(--o365-primary), #005fa3);
  font-family: var(--o365-display); font-weight: 700; font-size: 20px; color: #fff;
}
.o365-about-diff__item h3 { margin: 0 0 8px; font-size: 1.1rem; }
.o365-about-diff__item p { margin: 0; }
a.o365-card--pillar { color: inherit; text-decoration: none; }

/* FAQ */
.o365-faq-hero {
  padding: 88px 0 56px; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(0,141,227,0.18), transparent 65%),
    linear-gradient(180deg, rgba(0,141,227,0.04), transparent);
  border-bottom: 1px solid var(--o365-border);
}
.o365-faq-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem); margin: 0 auto 16px; max-width: 820px;
}
.o365-faq-hero p { max-width: 640px; margin: 0 auto 32px; font-size: 18px; color: var(--o365-text-muted); }
.o365-faq-search { max-width: 560px; margin: 0 auto; text-align: left; }
.o365-faq-search__label {
  display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--o365-text-muted);
}
.o365-faq-search__field {
  position: relative; display: flex; align-items: center;
}
.o365-faq-search__icon {
  position: absolute; left: 18px; color: var(--o365-text-muted); pointer-events: none;
}
.o365-faq-search__input {
  width: 100%; padding: 16px 18px 16px 50px; border-radius: 999px;
  border: 1px solid var(--o365-border); background: rgba(255,255,255,0.04);
  color: #fff; font-size: 16px; transition: border-color 0.25s, box-shadow 0.25s;
}
.o365-faq-search__input::placeholder { color: rgba(255,255,255,0.35); }
.o365-faq-search__input:focus {
  outline: none; border-color: var(--o365-primary);
  box-shadow: 0 0 0 3px rgba(0,141,227,0.2);
}
.o365-faq { padding: 48px 0 72px; }
.o365-faq-nav {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: 40px; position: sticky; top: 72px; z-index: 5;
  padding: 12px 0; background: linear-gradient(180deg, var(--o365-bg) 70%, transparent);
}
.o365-faq-nav__pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid var(--o365-border);
  background: var(--o365-bg-card); color: var(--o365-text-muted);
  font-size: 14px; font-weight: 500; text-decoration: none; transition: all 0.25s;
}
.o365-faq-nav__pill:hover, .o365-faq-nav__pill.is-active {
  color: #fff; border-color: rgba(0,141,227,0.5);
  background: rgba(0,141,227,0.12);
}
.o365-faq__groups { display: grid; gap: 48px; }
.o365-faq__group-head {
  display: flex; align-items: center; gap: 18px; margin-bottom: 20px;
}
.o365-faq__group-icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  border-radius: 16px; font-size: 26px;
  background: linear-gradient(135deg, rgba(0,141,227,0.2), rgba(0,141,227,0.05));
  border: 1px solid var(--o365-border);
}
.o365-faq__group-head h2 { margin: 0 0 4px; font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
.o365-faq__group-head p { margin: 0; font-size: 14px; color: var(--o365-text-muted); }
.o365-accordion { display: grid; gap: 12px; }
.o365-accordion__item {
  border: 1px solid var(--o365-border); border-radius: var(--o365-radius);
  background: var(--o365-bg-card); overflow: hidden; transition: border-color 0.25s, box-shadow 0.25s;
}
.o365-accordion__item:hover { border-color: var(--o365-border-hover); }
.o365-accordion__item.is-open {
  border-color: rgba(0,141,227,0.45);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25), inset 3px 0 0 var(--o365-primary);
}
.o365-accordion__heading { margin: 0; font-size: inherit; font-weight: inherit; }
.o365-accordion__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 24px; border: 0; background: transparent; color: #fff;
  font: inherit; text-align: left; cursor: pointer;
}
.o365-accordion__q { font-weight: 600; font-size: 1.02rem; line-height: 1.45; }
.o365-accordion__icon {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--o365-border); position: relative; transition: transform 0.3s, background 0.3s;
}
.o365-accordion__icon::before,
.o365-accordion__icon::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px;
  background: var(--o365-primary-bright); transform: translate(-50%, -50%); transition: transform 0.3s;
}
.o365-accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.o365-accordion__item.is-open .o365-accordion__icon {
  background: rgba(0,141,227,0.15); transform: rotate(180deg);
}
.o365-accordion__item.is-open .o365-accordion__icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.o365-accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--o365-ease);
}
.o365-accordion__item.is-open .o365-accordion__panel { grid-template-rows: 1fr; }
.o365-accordion__answer {
  overflow: hidden;
  padding: 0 24px 0;
  color: var(--o365-text-muted); line-height: 1.7; font-size: 15px;
  opacity: 0;
  transition: opacity 0.25s ease, padding 0.35s var(--o365-ease);
}
.o365-accordion__item.is-open .o365-accordion__answer {
  padding: 0 24px 24px;
  opacity: 1;
}
.o365-accordion__answer p:first-child { margin-top: 0; }
.o365-accordion__answer p:last-child { margin-bottom: 0; }
.o365-faq__empty { text-align: center; color: var(--o365-text-muted); padding: 32px 0; }
.o365-faq__group.is-hidden, .o365-accordion__item.is-hidden { display: none; }

/* Pricing, compare, cases */
.o365-pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 32px; }
.o365-pricing__card { padding: 32px 28px; position: relative; }
.o365-pricing__card--featured { border-color: rgba(0,141,227,0.5); box-shadow: 0 0 0 1px rgba(0,141,227,0.25), var(--o365-shadow); }
.o365-pricing__badge {
  position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--o365-primary-bright);
  background: rgba(0,141,227,0.12); padding: 4px 10px; border-radius: 999px;
}
.o365-pricing__price { font-family: var(--o365-display); font-size: 2rem; font-weight: 700; color: #fff; margin: 12px 0 4px; }
.o365-pricing__period { font-size: 14px; color: var(--o365-text-muted); margin-bottom: 20px; }
.o365-pricing__notes { display: grid; gap: 10px; padding: 24px; background: var(--o365-bg-card); border: 1px solid var(--o365-border); border-radius: var(--o365-radius); }
.o365-pricing__notes li { padding-left: 22px; position: relative; font-size: 14px; color: var(--o365-text-muted); }
.o365-pricing__notes li::before { content: '✓'; position: absolute; left: 0; color: var(--o365-primary-bright); font-weight: 700; }
.o365-compare__wrap { overflow-x: auto; border: 1px solid var(--o365-border); border-radius: var(--o365-radius); }
.o365-compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.o365-compare th, .o365-compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--o365-border); }
.o365-compare th { background: var(--o365-bg-card); color: #fff; font-weight: 600; }
.o365-compare tr:last-child td { border-bottom: none; }
.o365-compare__yes { color: #4ade80; font-weight: 600; }
.o365-compare__no { color: #f87171; }
.o365-compare__mid { color: var(--o365-text-muted); }
.o365-cases__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.o365-cases__card { padding: 28px; }
.o365-cases__icon { font-size: 32px; display: block; margin-bottom: 12px; }
.o365-page-hero--landing { padding: 72px 0 48px; }
.o365-page-content h2 { margin: 2rem 0 1rem; font-size: 1.35rem; }
.o365-page-content ul, .o365-page-content ol { margin: 0 0 1.25rem; padding-left: 1.25rem; color: var(--o365-text-muted); }
.o365-page-content li { margin-bottom: 8px; }

/* Breadcrumbs & internal links */
.o365-breadcrumbs { padding: 16px 0 0; font-size: 13px; }
.o365-breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 0; list-style: none;
  color: var(--o365-text-muted);
}
.o365-breadcrumbs li:not(:last-child)::after {
  content: '›'; margin-left: 10px; color: var(--o365-text-muted); opacity: 0.6;
}
.o365-breadcrumbs a { color: var(--o365-text-muted); }
.o365-breadcrumbs a:hover { color: var(--o365-primary-bright); }
.o365-breadcrumbs [aria-current="page"] { color: #fff; }
.o365-internal-links { background: var(--o365-bg-soft); border-block: 1px solid var(--o365-border); }
.o365-internal-links__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.o365-internal-links__card {
  display: block; padding: 24px; color: inherit; text-decoration: none;
}
.o365-internal-links__icon { font-size: 24px; display: block; margin-bottom: 10px; }
.o365-internal-links__card h3 { margin: 0 0 6px; font-size: 1rem; }
.o365-internal-links__card p { margin: 0; font-size: 13px; }

/* Contatti */
.o365-contact-hero {
  padding: 88px 0 56px; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(0,141,227,0.18), transparent 65%),
    linear-gradient(180deg, rgba(0,141,227,0.04), transparent);
  border-bottom: 1px solid var(--o365-border);
}
.o365-contact-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 auto 16px; max-width: 820px; }
.o365-contact-hero p { max-width: 640px; margin: 0 auto; font-size: 18px; }
.o365-contact { padding: 48px 0 72px; }
.o365-contact__cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px;
}
.o365-contact__card { padding: 28px 24px; text-align: center; }
.o365-contact__card-icon { font-size: 32px; display: block; margin-bottom: 14px; }
.o365-contact__card h2 { margin: 0 0 8px; font-size: 1.1rem; }
.o365-contact__card p { margin: 0; font-size: 15px; }
.o365-contact__layout {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: start;
}
.o365-contact__form-wrap h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.o365-contact__form-wrap > p { margin-bottom: 28px; }
.o365-contact__email-panel {
  padding: 36px 32px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, rgba(0, 141, 227, 0.08) 0%, rgba(15, 23, 42, 0.6) 55%);
  border: 1px solid rgba(0, 141, 227, 0.25);
}
.o365-contact__email-panel-icon { font-size: 48px; display: block; margin-bottom: 16px; }
.o365-contact__email-panel h2 { margin: 10px 0 14px; }
.o365-contact__email-panel > p { margin: 0 0 24px; color: var(--o365-text-muted); line-height: 1.7; font-size: 16px; }
.o365-contact__email-points {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.o365-contact__email-points li {
  padding-left: 26px;
  position: relative;
  color: var(--o365-text-muted);
  font-size: 15px;
}
.o365-contact__email-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--o365-primary-bright);
  font-weight: 700;
}
.o365-contact__email-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.o365-contact__email-copy { margin: 20px 0 0; font-size: 14px; color: var(--o365-text-muted); }
.o365-contact__email-copy a { color: var(--o365-primary-bright); }
.o365-contact-form { display: grid; gap: 18px; }
.o365-contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.o365-field { display: grid; gap: 8px; }
.o365-field__label { font-size: 13px; font-weight: 600; color: var(--o365-text-muted); }
.o365-field input,
.o365-field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--o365-radius-sm);
  border: 1px solid var(--o365-border); background: rgba(255,255,255,0.04);
  color: #fff; font: inherit; transition: border-color 0.25s, box-shadow 0.25s;
}
.o365-field input::placeholder,
.o365-field textarea::placeholder { color: rgba(255,255,255,0.3); }
.o365-field input:focus,
.o365-field textarea:focus {
  outline: none; border-color: var(--o365-primary);
  box-shadow: 0 0 0 3px rgba(0,141,227,0.2);
}
.o365-field textarea { resize: vertical; min-height: 140px; }
.o365-contact-form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.o365-contact-form__status {
  margin: 0; padding: 14px 18px; border-radius: var(--o365-radius-sm); font-size: 14px;
}
.o365-contact-form__status.is-success {
  background: rgba(0,141,227,0.12); border: 1px solid rgba(0,141,227,0.35); color: #fff;
}
.o365-contact-form__status.is-error {
  background: rgba(232,36,63,0.12); border: 1px solid rgba(232,36,63,0.35); color: #fff;
}
.o365-contact__aside { display: grid; gap: 20px; }
.o365-contact__location { padding: 28px; }
.o365-contact__location h3 { margin: 8px 0 12px; }
.o365-contact__perks { margin: 20px 0 0; display: grid; gap: 10px; }
.o365-contact__perks li {
  padding-left: 22px; position: relative; font-size: 14px; color: var(--o365-text-muted);
}
.o365-contact__perks li::before {
  content: '✓'; position: absolute; left: 0; color: var(--o365-primary-bright); font-weight: 700;
}
.o365-contact__map {
  border-radius: var(--o365-radius); overflow: hidden;
  border: 1px solid var(--o365-border); aspect-ratio: 4/3; background: var(--o365-bg-card);
}
.o365-contact__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.2) contrast(1.05); }

/* Generic page */
.o365-page-hero {
  padding: 64px 0 48px; text-align: center; position: relative; overflow: hidden;
}
.o365-page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(0,141,227,0.12), transparent);
}
.o365-page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 16px; position: relative; }
.o365-page-hero p { max-width: 600px; margin: 0 auto; position: relative; font-size: 18px; }
.o365-page-content { padding: 48px 0 88px; }
.o365-page-content .o365-container { max-width: 800px; }
.o365-page-content h2, .o365-page-content h3 { margin-top: 2rem; }
.o365-features-list { display: grid; gap: 16px; margin-top: 32px; }
.o365-features-list li {
  padding: 20px 24px; background: var(--o365-bg-card); border: 1px solid var(--o365-border);
  border-radius: var(--o365-radius-sm);
}

/* Footer */
.o365-footer {
  margin-top: 40px; padding-top: 64px;
  background: var(--o365-bg-soft); border-top: 1px solid var(--o365-border);
}
.o365-footer__grid {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px;
  padding-bottom: 48px;
}
.o365-footer__tagline { color: var(--o365-text-muted); font-size: 14px; margin: 12px 0; }
.o365-footer__contact a { color: var(--o365-text-muted); font-size: 14px; }
.o365-footer__title { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin: 0 0 16px; }
.o365-footer__links a { display: block; color: var(--o365-text-muted); font-size: 14px; padding: 4px 0; }
.o365-footer__links a:hover { color: var(--o365-primary-bright); }
.o365-footer__bar { border-top: 1px solid var(--o365-border); padding: 20px 0; }
.o365-footer__bar-inner p { margin: 0; font-size: 13px; color: var(--o365-text-muted); }

/* Reveal */
.o365-reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--o365-ease), transform 0.7s var(--o365-ease);
  transition-delay: var(--delay, 0ms);
}
.o365-reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .o365-svc-highlights__grid, .o365-svc-suite__grid, .o365-svc-cross__grid,
  .o365-svc-split__layout, .o365-about-story__layout, .o365-about-values__grid, .o365-about-values__grid--3 { grid-template-columns: 1fr; }
  .o365-about-company__list li { grid-template-columns: 1fr; }
  .o365-svc-highlights__grid { margin-top: 0; }
  .o365-svc-split__layout--reverse { direction: ltr; }
  .o365-hero__layout, .o365-why__layout, .o365-showcase__layout { grid-template-columns: 1fr; }
  .o365-showcase__frame--phone { position: relative; right: auto; left: auto; bottom: auto; width: min(220px, 55%); margin: -48px auto 0; }
  .o365-showcase--reverse .o365-showcase__frame--phone { left: auto; }
  .o365-hero__visual { order: -1; max-width: 520px; margin-inline: auto; width: 100%; }
  .o365-pillars__grid, .o365-blog__grid { grid-template-columns: 1fr; }
  .o365-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .o365-footer__grid { grid-template-columns: 1fr 1fr; }
  .o365-cta-band__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
  .o365-contact__cards, .o365-contact__layout, .o365-contact-form__row, .o365-internal-links__grid, .o365-pricing__grid, .o365-cases__grid { grid-template-columns: 1fr; }
  .o365-footer__grid { grid-template-columns: 1fr 1fr; }
  .o365-faq-nav { top: 60px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .o365-faq-nav__pill { flex-shrink: 0; }
  .o365-accordion__trigger { padding: 18px 18px; }
  .o365-accordion__answer { padding: 0 18px 18px; }
  .o365-nav__toggle { display: flex; }
  .o365-nav__menu {
    position: fixed; inset: var(--o365-nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; padding: 20px;
    background: rgba(7,11,16,0.98); border-bottom: 1px solid var(--o365-border);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: 0.35s var(--o365-ease);
  }
  .o365-nav.is-open .o365-nav__menu { transform: none; opacity: 1; pointer-events: auto; }
  .o365-menu { flex-direction: column; align-items: stretch; }
  .o365-nav__cta { margin: 12px 0 0; text-align: center; }
  .o365-bento { grid-template-columns: 1fr; }
  .o365-bento__item--wide { grid-column: span 1; }
  .o365-footer__grid { grid-template-columns: 1fr; }
  .o365-section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .o365-reveal { opacity: 1; transform: none; transition: none; }
  .o365-hero__orb { animation: none; }
  .o365-hero-slider__slide { transition: none; }
}

/* Cookie banner — dark theme */
#o365-cookie .o365-cookie__inner {
  background: var(--o365-bg-card) !important;
  border: 1px solid var(--o365-border) !important;
  color: var(--o365-text) !important;
}
#o365-cookie .o365-cookie__title { color: #fff !important; }
#o365-cookie .o365-cookie__text { color: var(--o365-text-muted) !important; }
#o365-cookie .o365-cookie__text a { color: var(--o365-primary-bright) !important; }
