/* ============================================================
   Calaido — style.css (cumulativo per tutte le pagine)
   ============================================================ */

/* ============================================================
   Calaido — app.css · design system
   CSS puro, nessun framework. Variabili semantiche per tema.
   Temi: light · dark · dusk (terzo tema distintivo)
   ============================================================ */

/* ---------- Font self-hosted ---------- */
/* Inter — variabile (latin-ext + latin) */
@font-face {
 font-family: "Inter";
 font-style: normal;
 font-weight: 200 700;
 font-display: swap;
 src: url("../fonts/inter-latin-ext.woff2") format("woff2");
 unicode-range:
  U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
 font-family: "Inter";
 font-style: normal;
 font-weight: 200 700;
 font-display: swap;
 src: url("../fonts/inter-latin.woff2") format("woff2");
 unicode-range:
  U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Syne — variabile (latin-ext + latin) */
@font-face {
 font-family: "Syne";
 font-style: normal;
 font-weight: 400 800;
 font-display: swap;
 src: url("../fonts/syne-latin-ext.woff2") format("woff2");
 unicode-range:
  U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
 font-family: "Syne";
 font-style: normal;
 font-weight: 400 800;
 font-display: swap;
 src: url("../fonts/syne-latin.woff2") format("woff2");
 unicode-range:
  U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
 /* tipografia — Inter (body) + Syne (display) */
 --font-display: "Syne", "Inter", system-ui, sans-serif;
 --font-body: "Inter", system-ui, sans-serif;
 /* geometria */
 --radius: 14px;
 --radius-sm: 10px;
 --maxw: 1180px;
 --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
 --speed: 0.5s;
 /* colori semantici: definiti per tema in [data-theme] */
 --bg: var(--t-bg);
 --bg-2: var(--t-bg-2);
 --surface: var(--t-surface);
 --surface-2: var(--t-surface-2);
 --ink: var(--t-ink);
 --ink-soft: var(--t-ink-soft);
 --line: var(--t-line);
 --acc: var(--t-acc);
 --acc-2: var(--t-acc-2);
 --acc-text: var(--t-acc-text);
 --shadow: var(--t-shadow);
 --shadow-lg: var(--t-shadow-lg);
 --glow: var(--t-glow);
}

/* ---------- Tema LIGHT (default) ---------- */
html[data-theme="light"],
:root {
 --t-bg: #f6f8fc;
 --t-bg-2: #eef2fb;
 --t-surface: #ffffff;
 --t-surface-2: #f1f5ff;
 --t-ink: #0b1220;
 --t-ink-soft: #5b6b85;
 --t-line: #e4e9f3;
 --t-acc: #4f46e5;
 --t-acc-2: #38bdf8;
 --t-acc-text: #ffffff;
 --t-shadow:
  0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px rgba(16, 24, 40, 0.06);
 --t-shadow-lg: 0 24px 60px rgba(79, 70, 229, 0.16);
 --t-glow: radial-gradient(
  60% 60% at 50% 0%,
  rgba(79, 70, 229, 0.14),
  transparent 70%
 );
}

/* ---------- Tema DARK ---------- */
html[data-theme="dark"] {
 --t-bg: #070b15;
 --t-bg-2: #0c1222;
 --t-surface: #0e1526;
 --t-surface-2: #131b30;
 --t-ink: #e8eefb;
 --t-ink-soft: #93a1bd;
 --t-line: #1e2a42;
 --t-acc: #7c7ff5;
 --t-acc-2: #4cc3ff;
 --t-acc-text: #0b1020;
 --t-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.35);
 --t-shadow-lg: 0 24px 70px rgba(76, 195, 255, 0.12);
 --t-glow: radial-gradient(
  60% 60% at 50% 0%,
  rgba(124, 127, 245, 0.18),
  transparent 70%
 );
}

/* ============================================================
   Base
   ============================================================ */
*,
*::before,
*::after {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}
html {
 scroll-behavior: smooth;
}
body {
 font-family: var(--font-body);
 background: var(--bg);
 color: var(--ink);
 line-height: 1.6;
 -webkit-font-smoothing: antialiased;
 transition:
  background var(--speed) var(--ease),
  color var(--speed) var(--ease);
}
a {
 color: inherit;
 text-decoration: none;
}
button {
 font-family: inherit;
 cursor: pointer;
}
img {
 display: block;
 max-width: 100%;
}
.container {
 max-width: var(--maxw);
 margin: 0 auto;
 padding: 0 24px;
}
section {
 padding: 84px 0;
}

/* tipografia */
.h1 {
 font-family: var(--font-display);
 font-size: clamp(38px, 6.2vw, 72px);
 line-height: 1.02;
 letter-spacing: -0.035em;
 font-weight: 700;
}
.h2 {
 font-family: var(--font-display);
 font-size: clamp(30px, 4.4vw, 46px);
 line-height: 1.08;
 letter-spacing: -0.02em;
 font-weight: 700;
}
.eyebrow {
 font-family: var(--font-display);
 font-size: 13px;
 letter-spacing: 0.18em;
 text-transform: uppercase;
 font-weight: 600;
 color: var(--acc);
}
.lead {
 color: var(--ink-soft);
 font-size: 18px;
 max-width: 60ch;
}
.grad-text {
 background: linear-gradient(92deg, var(--acc), var(--acc-2));
 -webkit-background-clip: text;
 background-clip: text;
 color: transparent;
}

/* reveal on scroll */
.reveal {
 opacity: 0;
 transform: translateY(26px);
 transition:
  opacity 0.7s var(--ease),
  transform 0.7s var(--ease);
}
.reveal.in {
 opacity: 1;
 transform: none;
}

/* ============================================================
   Componenti
   ============================================================ */
.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 border-radius: 12px;
 font-weight: 600;
 font-size: 15px;
 padding: 12px 22px;
 border: 1px solid transparent;
 transition:
  transform 0.2s var(--ease),
  box-shadow 0.3s var(--ease),
  background 0.2s,
  border-color 0.2s;
}
.btn:hover {
 transform: translateY(-2px);
}
.btn--primary {
 background: linear-gradient(90deg, var(--acc), var(--acc-2));
 color: var(--acc-text);
 box-shadow: var(--shadow-lg);
}
.btn--primary:hover {
 box-shadow: 0 26px 70px color-mix(in srgb, var(--acc) 40%, transparent);
}
.btn--ghost {
 border-color: var(--line);
 color: var(--ink);
 background: var(--surface);
}
.btn--ghost:hover {
 border-color: var(--acc);
}

.card {
 border: 1px solid var(--line);
 background: var(--surface);
 border-radius: var(--radius);
 padding: 26px;
 transition:
  transform 0.3s var(--ease),
  box-shadow 0.3s var(--ease),
  border-color 0.3s;
}
.card:hover {
 transform: translateY(-6px);
 box-shadow: var(--shadow-lg);
 border-color: color-mix(in srgb, var(--acc) 40%, transparent);
}

.icon-btn {
 width: 40px;
 height: 40px;
 border-radius: 11px;
 border: 1px solid var(--line);
 background: var(--surface);
 color: var(--ink);
 display: inline-flex;
 align-items: center;
 justify-content: center;
 transition: 0.2s;
}
.icon-btn:hover {
 border-color: var(--acc);
}

/* chip */
.chip {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 padding: 7px 14px;
 border-radius: 999px;
 border: 1px solid var(--line);
 background: var(--surface);
 font-size: 13px;
 font-weight: 500;
 color: var(--ink-soft);
}
.chip .dot {
 width: 7px;
 height: 7px;
 border-radius: 50%;
 background: var(--acc-2);
 box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc-2) 22%, transparent);
}

/* animazioni */
@keyframes spin {
 to {
  transform: rotate(360deg);
 }
}

/* ---------- HOME (layout) ---------- */

/* ============================================================
   Calaido — home.css · layout della pagina home
   (app.css resta il design system)
   ============================================================ */

/* ---------- Navbar ---------- */
.nav {
 position: sticky;
 top: 0;
 z-index: 50;
 backdrop-filter: blur(12px);
 background: color-mix(in srgb, var(--bg) 72%, transparent);
 border-bottom: 1px solid var(--line);
}
.nav-inner {
 height: 72px;
 display: flex;
 align-items: center;
 gap: 28px;
}
.brand {
 display: flex;
 align-items: center;
 gap: 11px;
 font-family: var(--font-display);
 font-weight: 700;
 font-size: 22px;
 letter-spacing: -0.02em;
}
.brand .brand-mark {
 width: 30px;
 height: 30px;
 border-radius: 50%;
 object-fit: cover;
 box-shadow: 0 4px 14px color-mix(in srgb, var(--acc) 45%, transparent);
}
 box-shadow: 0 4px 14px color-mix(in srgb, var(--acc) 45%, transparent);
}
.nav-links {
 display: flex;
 gap: 4px;
 margin-left: auto;
}
.nav-links a {
 padding: 9px 14px;
 border-radius: 10px;
 color: var(--ink-soft);
 font-size: 14.5px;
 font-weight: 500;
 transition: 0.2s;
}
.nav-links a:hover {
 color: var(--ink);
}
.nav-links a.active {
 color: var(--ink);
 font-weight: 600;
}
.nav-right {
 display: flex;
 align-items: center;
 gap: 10px;
}

/* ---------- Selettore lingua ---------- */
.lang {
 position: relative;
}
.lang-btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 34px;
 height: 34px;
 padding: 0;
 border-radius: 50%;
 border: 1px solid var(--line);
 background: var(--surface-2);
 font-size: 17px;
 line-height: 1;
 transition: border-color 0.2s, transform 0.2s;
}
.lang-btn:hover {
 border-color: var(--acc);
 transform: scale(1.06);
}
.lang-menu {
 position: absolute;
 top: calc(100% + 8px);
 right: 0;
 z-index: 60;
 min-width: 140px;
 border: 1px solid var(--line);
 background: var(--surface);
 border-radius: 12px;
 box-shadow: var(--shadow-lg);
 padding: 6px;
 display: none;
 flex-direction: column;
}
.lang.open .lang-menu {
 display: flex;
}
.lang-menu button {
 text-align: left;
 padding: 9px 12px;
 border: none;
 border-radius: 8px;
 background: transparent;
 color: var(--ink);
 font-family: var(--font-body);
 font-size: 14px;
 cursor: pointer;
 transition: background 0.15s;
}
.lang-menu button:hover {
 background: var(--surface-2);
}
.lang-menu button.active {
 color: var(--acc);
 font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
 padding: 64px 0 40px;
 position: relative;
 overflow: hidden;
}
.hero::before {
 content: "";
 position: absolute;
 inset: 0;
 background: var(--glow);
 pointer-events: none;
}
.hero-inner {
 position: relative;
 text-align: center;
}
.hero .h1 {
 margin: 22px auto 0;
 max-width: 17ch;
}
.hero p.lead {
 margin: 20px auto 0;
}
.hero-cta {
 display: flex;
 gap: 14px;
 justify-content: center;
 margin-top: 32px;
 flex-wrap: wrap;
}

/* device + slider */
.device-wrap {
 margin: 54px auto 0;
 max-width: 1020px;
}
.device {
 position: relative;
 border-radius: 22px;
 overflow: hidden;
 box-shadow: var(--shadow-lg);
 border: 1px solid var(--line);
 background: var(--surface);
}
.device-bar {
 display: flex;
 align-items: center;
 gap: 6px;
 padding: 10px 14px;
 background: var(--surface);
 border-bottom: 1px solid var(--line);
}
.device-bar .d {
 width: 10px;
 height: 10px;
 border-radius: 50%;
}
.d1 {
 background: #ff5f57;
}
.d2 {
 background: #febc2e;
}
.d3 {
 background: #28c840;
}
.device-bar .url {
 flex: 1;
 margin-left: 10px;
 font-size: 12px;
 color: var(--ink-soft);
 background: var(--bg-2);
 padding: 5px 12px;
 border-radius: 8px;
}
.slider {
 position: relative;
 aspect-ratio: 16 / 9;
 overflow: hidden;
 user-select: none;
}
.slider img {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 object-fit: cover;
 transition: opacity 0.4s var(--ease);
}
.slider .after {
 clip-path: inset(0 0 0 var(--pos, 50%));
}
.divider {
 position: absolute;
 top: 0;
 bottom: 0;
 width: 3px;
 background: rgba(255, 255, 255, 0.9);
 left: var(--pos, 50%);
 transform: translateX(-50%);
 z-index: 5;
 cursor: ew-resize;
}
.divider::after {
 content: "";
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 width: 44px;
 height: 34px;
 border-radius: 999px;
 background: #fff;
 box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
 border: 1px solid #e5e7eb;
}
.slider .aicap {
 position: absolute;
 right: 14px;
 top: 14px;
 z-index: 6;
}
.ai-btn {
 width: 46px;
 height: 46px;
 border-radius: 999px;
 border: none;
 background: color-mix(in srgb, var(--surface) 82%, transparent);
 backdrop-filter: blur(6px);
 color: var(--acc);
 font-size: 20px;
 box-shadow: var(--shadow);
 display: flex;
 align-items: center;
 justify-content: center;
 transition: transform 0.25s var(--ease);
}
.ai-btn:hover {
 transform: scale(1.12) rotate(18deg);
}
.tabs {
 display: flex;
 gap: 8px;
 margin-top: 16px;
}
.tabs button {
 flex: 1;
 height: 6px;
 border-radius: 999px;
 border: none;
 background: var(--line);
 position: relative;
 overflow: hidden;
 cursor: pointer;
}
.tabs button.active {
 background: linear-gradient(90deg, var(--acc), var(--acc-2));
}

/* ---------- Features ---------- */
.features-head {
 text-align: center;
 max-width: 760px;
 margin: 0 auto 48px;
}
.features-head .h2 {
 margin-top: 10px;
}
.features-head .lead {
 margin: 16px auto 0;
}
.grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 18px;
}
.card .ic {
 width: 46px;
 height: 46px;
 border-radius: 12px;
 background: var(--surface-2);
 color: var(--acc);
 display: flex;
 align-items: center;
 justify-content: center;
 margin-bottom: 16px;
}
.card h3 {
 font-family: var(--font-display);
 font-size: 17px;
 font-weight: 700;
 margin-bottom: 8px;
}
.card p {
 color: var(--ink-soft);
 font-size: 14.5px;
}
.center {
 text-align: center;
}
.feat-cta {
 margin-top: 44px;
}

/* ---------- Contact ---------- */
.contact-container {
 max-width: 1280px;
}
.contact {
 border-radius: 22px;
 border: 1px solid var(--line);
 background: var(--surface);
 overflow: hidden;
 box-shadow: var(--shadow);
 display: flex;
 flex-direction: column;
 position: relative;
}
.contact-left {
 padding: 36px;
 display: flex;
 flex-direction: column;
 justify-content: center;
 z-index: 10;
}
.contact-left .h2 {
 margin: 6px 0 12px;
 font-size: clamp(24px, 3vw, 30px);
}
.contact-left .lead {
 margin-bottom: 22px;
 font-size: 16px;
}
.contact-right {
 position: absolute;
 bottom: 0;
 left: 0;
 right: 0;
 height: 80px;
 z-index: 0;
 overflow: hidden;
}
.contact-right .circles {
 position: absolute;
 inset: 0;
 display: flex;
 align-items: center;
 justify-content: center;
 height: 400%;
 aspect-ratio: 1;
 transform: translate(50%, -27%);
}
.contact-right .circle {
 position: absolute;
 border-radius: 50%;
 background: var(--acc);
 will-change: transform;
}
.contact-right .c4 { width: 80%; height: 80%; opacity: 0.2; transform: scale(0) rotate(120deg); }
.contact-right .c3 { width: 60%; height: 60%; opacity: 0.4; transform: scale(0) rotate(90deg); }
.contact-right .c2 { width: 40%; height: 40%; opacity: 0.6; transform: scale(0) rotate(60deg); }
.contact-right .c1 { width: 20%; height: 20%; opacity: 0.8; transform: scale(0) rotate(30deg); }

@media (min-width: 768px) {
 .contact {
  flex-direction: row;
 }
 .contact-left {
  width: 50%;
  padding: 44px;
 }
 .contact-right {
  position: relative;
  width: 50%;
  height: auto;
 }
 .contact-right .circles {
  transform: translate(10%, -37%);
 }
}

/* ---------- Footer ---------- */
.footer {
 border-top: 1px solid var(--line);
 padding: 60px 0 40px;
 background: var(--bg-2);
}
.foot-grid {
 display: grid;
 grid-template-columns: 1.4fr 1fr 1fr;
 gap: 40px;
}
.foot-grid h4 {
 font-family: var(--font-display);
 font-size: 15px;
 font-weight: 600;
 margin-bottom: 16px;
}
.foot-grid p {
 color: var(--ink-soft);
 font-size: 14px;
 max-width: 34ch;
}
.foot-grid a {
 display: block;
 color: var(--ink-soft);
 font-size: 14.5px;
 padding: 5px 0;
 transition: 0.2s;
}
.foot-grid a:hover {
 color: var(--ink);
}
.foot-grid .footer-hours {
 display: block;
 color: var(--ink-soft);
 font-size: 14px;
 padding: 5px 0;
}
.foot-grid a[data-i18n='footer_project'] {
 color: var(--acc);
 font-weight: 500;
}
.foot-grid a[data-i18n='footer_project']:hover {
 text-decoration: underline;
}
.foot-bottom {
 border-top: 1px solid var(--line);
 margin-top: 44px;
 padding-top: 24px;
 display: flex;
 justify-content: space-between;
 flex-wrap: wrap;
 gap: 14px;
 color: var(--ink-soft);
 font-size: 13.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
 .grid {
  grid-template-columns: 1fr 1fr;
 }
 .contact {
  grid-template-columns: 1fr;
 }
 .contact-right {
  min-height: 220px;
 }
 .foot-grid {
  grid-template-columns: 1fr;
  gap: 28px;
 }
 .nav-links {
  display: none;
 }
}
@media (max-width: 560px) {
 .grid {
  grid-template-columns: 1fr;
 }
}

/* ---------- PAGINE INTERNE ---------- */

/* ============================================================
   Calaido — pages.css
   Stili condivisi per le pagine interne (non la home).
   Usa i token del design system (app.css).
   ============================================================ */

/* intestazione pagina */
.page-head {
 padding: 64px 0 40px;
 position: relative;
 overflow: hidden;
 text-align: center;
}
.page-head::before {
 content: "";
 position: absolute;
 inset: 0;
 background: var(--glow);
 pointer-events: none;
}
.page-head-inner {
 position: relative;
}
.page-head .h1 {
 margin: 18px auto 0;
 max-width: 22ch;
}
.page-head .lead {
 margin: 18px auto 0;
}

section {
 padding: 60px 0;
}
section.alt {
 background: var(--bg-2);
}

/* griglia generica */
.grid-2 {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 20px;
}
.grid-3 {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 18px;
}

/* card generica */
.card {
 border: 1px solid var(--line);
 background: var(--surface);
 border-radius: var(--radius);
 padding: 26px;
 transition:
  transform 0.3s var(--ease),
  box-shadow 0.3s var(--ease),
  border-color 0.3s;
}
.card:hover {
 transform: translateY(-4px);
 box-shadow: var(--shadow-lg);
 border-color: color-mix(in srgb, var(--acc) 40%, transparent);
}
.card .ic {
 width: 46px;
 height: 46px;
 border-radius: 12px;
 background: var(--surface-2);
 color: var(--acc);
 display: flex;
 align-items: center;
 justify-content: center;
 margin-bottom: 16px;
}
.card h3 {
 font-family: var(--font-display);
 font-size: 17px;
 font-weight: 700;
 margin-bottom: 8px;
}
.card p {
 color: var(--ink-soft);
 font-size: 14.5px;
}

/* sezioni raggruppate (moduli) */
.mod-group {
 margin-bottom: 40px;
}
.mod-group .h3 {
 font-family: var(--font-display);
 font-size: 24px;
 font-weight: 700;
 margin-bottom: 8px;
}
.mod-group > p {
 color: var(--ink-soft);
 margin-bottom: 20px;
 max-width: 60ch;
}

/* prezzi (piani) */
.pricing {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 20px;
 max-width: 900px;
 margin: 0 auto;
}
.price-card {
 border: 1px solid var(--line);
 background: var(--surface);
 border-radius: var(--radius);
 padding: 30px;
 display: flex;
 flex-direction: column;
}
.price-card.featured {
 border-color: var(--acc);
 box-shadow: var(--shadow-lg);
}
.price-card h3 {
 font-family: var(--font-display);
 font-size: 22px;
 font-weight: 700;
 margin-bottom: 8px;
}
.price-card ul {
 list-style: none;
 margin: 18px 0;
 flex: 1;
}
.price-card li {
 display: flex;
 gap: 10px;
 align-items: flex-start;
 padding: 7px 0;
 color: var(--ink-soft);
 font-size: 14.5px;
}
.price-card li::before {
 content: "✓";
 color: var(--acc);
 font-weight: 700;
}

/* contatti */
.contact-page {
 display: grid;
 grid-template-columns: 1fr 1.2fr;
 gap: 40px;
 align-items: start;
}
.contact-info h3 {
 font-family: var(--font-display);
 font-size: 18px;
 font-weight: 700;
 margin: 22px 0 8px;
}
.contact-info a {
 color: var(--acc);
}
.contact-form .form-row {
 margin-bottom: 16px;
}
.contact-form label {
 display: block;
 font-size: 13.5px;
 font-weight: 600;
 margin-bottom: 6px;
}
.contact-form .input {
 width: 100%;
 padding: 11px 14px;
 border: 1px solid var(--line);
 border-radius: 10px;
 background: var(--surface);
 color: var(--ink);
 font-family: var(--font-body);
 font-size: 14.5px;
}
.contact-form .input:focus {
 outline: none;
 border-color: var(--acc);
}

/* testo legale (privacy/terms) */
.prose {
 max-width: 760px;
 margin: 0 auto;
}
.prose h2 {
 font-family: var(--font-display);
 font-size: 22px;
 font-weight: 700;
 margin: 32px 0 10px;
}
.prose p {
 color: var(--ink-soft);
 margin-bottom: 14px;
 line-height: 1.7;
}
.prose ul {
 margin: 0 0 14px 20px;
 color: var(--ink-soft);
}
.prose li {
 margin-bottom: 6px;
}

@media (max-width: 900px) {
 .grid-2,
 .grid-3,
 .contact-page {
  grid-template-columns: 1fr;
 }
 .page-head {
  padding-top: 48px;
 }
}

/* ---------- ESEMPI ---------- */

/* Calaido — esempi.css */
.examples {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.example {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s;
}
.example:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--acc) 40%, transparent);
}
.example img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.example.selected {
  border-color: var(--acc);
}
.example .cap {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.example .cap .slug {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}
.example .cap .tag {
  font-size: 12px;
  color: var(--ink-soft);
}

/* wrapper iframe configuratore */
.config-wrap {
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.config-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.config-title {
  font-family: var(--font-display);
  font-weight: 600;
}
#configIframe {
  width: 100%;
  height: 78vh;
  border: 0;
  display: block;
  background: #fff;
}

/* ============================================================
   ESEMPI — carousel cover-flow + configuratore
   ============================================================ */
.esempi-play {
  padding-top: 20px;
}
.carousel-wrap {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  height: 620px;
}
.carousel {
  position: absolute;
  inset: 0;
}
.slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80vw;
  max-width: 760px;
  cursor: pointer;
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
  will-change: transform, opacity;
}
.slide .frame {
  position: relative;
  /* immagini con trasparenza integrata: nessun card/bordo/sfondo */
  height: 470px;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.slide .slide-btn {
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
}
.slide .slide-btn .btn {
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.carousel-arrow:hover {
  border-color: var(--acc);
  transform: translateY(-50%) scale(1.08);
}
.carousel-arrow.left {
  left: 4px;
}
.carousel-arrow.right {
  right: 4px;
}

/* configuratore iframe */
.config-wrap {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.config-wrap[hidden] {
  display: none;
}
.config-box {
  width: min(1280px, calc((100vh - 48px) * 1.3333));
  aspect-ratio: 4 / 3;
  max-height: calc(100vh - 48px);
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.config-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.config-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}
#configIframe {
  flex: 1;
  width: 100%;
  border: 0;
  display: block;
  background: #fff;
}

@media (max-width: 700px) {
  .carousel-wrap {
    height: 480px;
  }
  .slide .frame {
    height: 360px;
  }
  .carousel-arrow {
    width: 38px;
    height: 38px;
  }
}

/* ============================================================
   ICONE Material Symbols (self-hosted) — come l'originale
   ============================================================ */
@font-face {
  font-family: 'Material Symbols Rounded';
  font-style: normal;
  font-weight: 100 700;
  src: url('../fonts/material-symbols-rounded-subset.woff2') format('woff2');
}
.ms {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* ============================================================
   PIANI (prezzi) — come l'originale
   ============================================================ */
.pricing-wrap {
  max-width: 80rem;
  margin: 0 auto;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 16px;
}
@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.price-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
@media (min-width: 768px) {
  .price-card {
    min-height: 700px;
  }
}
.price-card h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 24px;
}
.price-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}
.price-feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.price-feature .ms {
  color: var(--acc);
  font-size: 24px;
}
.price-feature span {
  font-weight: 300;
}
.price-services {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.price-services h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}
.price-services .svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.price-services .svc {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-services .svc .ms {
  font-size: 20px;
  color: var(--acc);
}
.price-services .svc span {
  font-size: 14px;
  font-weight: 300;
}
.price-card .btn {
  width: 100%;
  border-radius: 999px;
  margin-top: 24px;
}

/* ============================================================
   MODULI — gruppi + elementi (come l'originale)
   ============================================================ */
.moduli-sec {
  padding: 20px 0 60px;
}
.mod-group {
  display: block;
}
@media (min-width: 1024px) {
  .mod-group {
    display: flex;
    gap: 64px;
    align-items: flex-start;
  }
}
.mod-title-col {
  width: 100%;
  margin-bottom: 32px;
}
@media (min-width: 1024px) {
  .mod-title-col {
    width: 50%;
    position: sticky;
    top: 96px;
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .mod-group.mod--right .mod-title-col {
    order: 2;
  }
}
.mod-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 54px);
  line-height: 1.1;
  font-weight: 300;
  margin-bottom: 16px;
}
.mod-desc {
  color: var(--ink-soft);
  font-weight: 300;
}
.mod-list {
  width: 100%;
}
@media (min-width: 1024px) {
  .mod-list {
    width: 50%;
  }
  .mod-group.mod--right .mod-list {
    order: 1;
  }
}
.mod-list .ext-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ext-block {
  padding: 12px 16px 12px 12px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.ext-block:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.ext-icon {
  padding: 12px;
  background: var(--surface-2);
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ext-icon .ms {
  color: var(--acc);
  font-size: 36px;
}
.ext-body {
  flex: 1;
}
.ext-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 4px;
}
.ext-body p {
  color: var(--ink-soft);
  font-size: 14px;
}
.mod-group + .mod-group {
  margin-top: 80px;
}
@media (min-width: 1024px) {
  .mod-group + .mod-group {
    margin-top: 128px;
  }
}

/* ============================================================
   HOME — doppio carosello funzionalità (intrecciato, GSAP)
   ============================================================ */
.feat-rows {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feat-row {
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
}
.feat-row--1 {
  margin-left: 150px;
}
.feat-row--2 {
  margin-left: -150px;
}
.feat-card {
  padding: 12px 16px 12px 12px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  width: 300px;
  flex-shrink: 0;
}
.feat-card .fc-icon {
  padding: 12px;
  background: var(--surface-2);
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feat-card .fc-icon .ms {
  color: var(--acc);
  font-size: 36px;
}
.feat-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 4px;
}
.feat-card p {
  color: var(--ink-soft);
  font-size: 14px;
}
.feat-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 600px;
  pointer-events: none;
  z-index: 2;
}
.feat-fade.left {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.feat-fade.right {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

/* mobile: niente card funzionalità (nascoste del tutto) */
@media (max-width: 768px) {
  .feat-rows {
    display: none;
  }
}
