/* Affitti Brevi Facile - sito. Stile "fluffoso" clay: beige caldo, pesca, terracotta, blu piscina, salvia. */
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url('/nunito-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url('/nunito-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('/nunito-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('/fredoka-latin-600-normal.woff2') format('woff2'); }

:root {
  --bg: #f5ede3; --card: #fffaf4; --ink: #43301f; --muted: #7a6656; --line: #ead9c7;
  --terra: #d06a49; --terra-d: #b8553a; --peach: #f8cfae; --pool: #6dbacd; --pool-l: #cfeaf1; --sage: #a3bf9e; --sage-l: #dfe9dc;
  --shadow: 0 16px 30px -16px rgba(120, 70, 40, .35), 0 3px 8px rgba(120, 70, 40, .07), inset 0 2px 3px rgba(255, 255, 255, .85);
  --btn: 0 8px 16px -8px rgba(160, 70, 40, .6), inset 0 2px 2px rgba(255, 255, 255, .35), inset 0 -3px 5px rgba(120, 40, 20, .18);
  --r: 26px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 'Nunito', ui-rounded, system-ui, sans-serif; overflow-x: hidden; }
h1, h2, h3, .display { font-family: 'Fredoka', 'Nunito', ui-rounded, sans-serif; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.2rem; margin: 1.3em 0 .4em; }
a { color: var(--terra-d); }
img, svg { max-width: 100%; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.small { font-size: .88rem; color: var(--muted); }

.top { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand b { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.1rem; }
.brand small { color: var(--terra); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .68rem; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; }


.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn-primary { background: var(--terra); color: #fff !important; box-shadow: var(--btn); }
.btn-primary:hover { background: var(--terra-d); }
.btn-ghost { background: var(--card); color: var(--ink) !important; border: 2px solid var(--line); }
.nav .btn { padding: 9px 18px; font-size: .92rem; }

.hero { padding: 26px 0 40px; }
.hero-card { position: relative; overflow: hidden; border-radius: 40px; padding: clamp(26px, 5vw, 56px); background: radial-gradient(120% 120% at 15% 10%, #fde3cc 0%, #f8c9a6 45%, #e9967a 100%); box-shadow: var(--shadow); display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; }
.hero-card .eyebrow { display: inline-block; background: rgba(255, 250, 244, .8); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: .85rem; box-shadow: var(--shadow); }
.hero-card p.lead { font-size: 1.15rem; max-width: 34em; }
.hero-card .actions { display: flex; flex-wrap: nowrap; gap: 10px; margin-top: 22px; }
/* i due pulsanti dell'apertura sempre sulla stessa riga: su telefono metà larghezza ciascuno e testo più corto */
@media (max-width: 520px) {
  .hero-card .actions .btn { flex: 1 1 0; min-width: 0; padding: 12px 10px; font-size: .95rem; white-space: nowrap; }
  .hero-card .actions .solo-largo { display: none; }
}
@media (min-width: 521px) { .hero-card .actions .solo-stretto { display: none; } }
.hero-art { width: 100%; height: auto; }
@media (max-width: 860px) { .hero-card { grid-template-columns: 1fr; } .hero-art { max-height: 260px; } }

.section { padding: 36px 0; }
.section > .wrap > h2:first-child { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; padding-bottom: 30px; }
.card { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .7); }
.card h3 { margin-top: 6px; }
.card .ico { display: inline-flex; width: 52px; height: 52px; border-radius: 18px; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: var(--btn); }
.ico.peach { background: var(--peach); } .ico.pool { background: var(--pool-l); } .ico.sage { background: var(--sage-l); }
a.card { text-decoration: none; color: var(--ink); transition: transform .15s; } a.card:hover { transform: translateY(-2px); }
.post h2 { margin: .2em 0 .4em; font-size: 1.3rem; } .post .more { color: var(--terra-d); font-weight: 800; } .meta { color: var(--muted); font-size: .88rem; margin: 0; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.steps .card::before { counter-increment: s; content: counter(s); display: inline-flex; width: 38px; height: 38px; border-radius: 14px; align-items: center; justify-content: center; background: var(--pool); color: #fff; font-weight: 800; box-shadow: var(--btn); }

.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.price.best { outline: 3px solid var(--terra); }
.price ul { padding-left: 1.1em; } .price li { margin: .3em 0; }
.price .amount { font-family: 'Fredoka', sans-serif; font-size: 2rem; }

details.faq { background: var(--card); border-radius: 20px; padding: 14px 18px; margin: 10px 0; box-shadow: var(--shadow); }
details.faq summary { font-weight: 800; cursor: pointer; }

.page-head { padding: 26px 0 8px; } .lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.article { max-width: 780px; padding: 14px 0 40px; }
.crumbs { font-size: .88rem; color: var(--muted); } .crumbs a { color: var(--muted); }
.prose p, .prose li { font-size: 1.05rem; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); margin: 1.2em 0; font-size: .95rem; }
.prose th, .prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--peach); }
.prose blockquote { margin: 1.2em 0; padding: 14px 18px; background: var(--pool-l); border-radius: 18px; }
.prose blockquote p { margin: 0; }
.prose code { background: var(--card); padding: 1px 6px; border-radius: 6px; }
.table-wrap { overflow-x: auto; }
.cta-card { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: radial-gradient(120% 140% at 10% 0%, #fde3cc, #f6c19d); border-radius: 30px; padding: 22px; margin: 30px 0 10px; box-shadow: var(--shadow); }
.cta-title { font-family: 'Fredoka', sans-serif; font-size: 1.35rem; margin: 0; }
.cta-card p { margin: .2em 0; } .cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.disclaimer { font-size: .88rem; color: var(--muted); }

/* calcolatore */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.field { display: block; margin: 0 0 14px; }
.field span { display: block; font-weight: 800; font-size: .95rem; margin-bottom: 4px; }
.field small { display: block; color: var(--muted); font-size: .82rem; margin-top: 3px; }
.field input, .field select { width: 100%; height: 48px; border-radius: 18px; border: 2px solid var(--line); background: #fff; padding: 0 14px; font: inherit; font-weight: 700; color: var(--ink); }
.field input:focus, .field select:focus { outline: 3px solid var(--peach); border-color: var(--terra); }
.check { display: flex; gap: 10px; align-items: flex-start; background: #f3e7da; border-radius: 18px; padding: 12px; margin-bottom: 14px; font-weight: 700; font-size: .95rem; }
.check input { width: 20px; height: 20px; accent-color: var(--terra); margin-top: 2px; }
.result .big { font-family: 'Fredoka', sans-serif; font-size: 2.4rem; margin: 0; }
.rows { margin: 12px 0; }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.rows div b { white-space: nowrap; }
.pill { display: inline-block; border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: .85rem; background: var(--sage-l); }
.note { background: var(--pool-l); border-radius: 18px; padding: 12px 14px; font-size: .92rem; }

.foot { background: #efe2d3; margin-top: 40px; padding: 34px 0 20px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 22px; }
.foot-grid a:not(.brand) { display: block; color: var(--ink); text-decoration: none; margin: 4px 0; font-size: .95rem; }
.foot-title { font-weight: 800; margin: 0 0 6px; }
.copy { margin-top: 20px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
.legal { max-width: 800px; padding: 20px 0 40px; } .legal h2 { font-size: 1.3rem; }

/* stampa (modello di contratto e pagine) */
@media print {
  .top, .foot, .page-head .btn, .cta-card, #come-usarlo { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .card { box-shadow: none; border: 0; padding: 0; }
}
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.tools .card img { width: 96px; height: 96px; object-fit: contain; }

/* mascotte (host dai capelli rossi): piccole apparizioni negli strumenti e nella 404 */
.mascotte { display: block; margin: 8px auto; width: auto; max-width: 100%; height: auto; max-height: 220px; }
.page-head .mascotte-head { float: right; max-height: 160px; margin: 0 0 8px 16px; }
@media (max-width: 640px) { .page-head .mascotte-head { max-height: 110px; } }

/* home: primo riquadro senza immagine (si chiude sotto i pulsanti) */
.hero-card.hero-solo { grid-template-columns: 1fr; }
.hero-card.hero-solo > div { max-width: 46rem; }
/* coppia di mascotte piccola accanto al titolo delle domande frequenti */
.faq-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.faq-head h2 { margin-bottom: 14px; }
.mascotte-coppia { width: 200px; height: auto; flex: none; }
@media (max-width: 640px) { .faq-head { flex-direction: column; align-items: center; text-align: center; } .mascotte-coppia { width: 170px; } }
/* breadcrumb visibile */
.crumbs { font-size: .85rem; color: var(--muted, #7a6658); margin: 4px 0 8px; }
.crumbs a { color: inherit; }
/* altri strumenti in fondo alle pagine degli strumenti */
.altri-strumenti { margin-top: 28px; }
.altri-strumenti ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.altri-strumenti a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--card, #fffaf4); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); font-weight: 700; }

/* ── menu: hamburger a sinistra fino a 1023 px, menu orizzontale da 1024 px (generato da scripts/menu.css) ── */
.top-bar { display: flex; align-items: center; gap: 10px; }
.top-bar .brand { margin-right: auto; }
.menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; border: 0; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); cursor: pointer; flex: none; }
.menu-btn span { display: block; height: 3px; border-radius: 3px; background: var(--ink); }
.btn-app { padding: 10px 16px; font-size: .9rem; min-height: 44px; flex: none; }
.nav { display: none; }
.menu-velo { position: fixed; inset: 0; z-index: 40; background: rgba(35, 26, 21, .45); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.menu-pannello { position: fixed; top: 0; bottom: 0; left: 0; z-index: 50; width: min(86vw, 340px); display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 24px; background: var(--card); box-shadow: 0 0 30px rgba(67, 48, 31, .25); overflow-y: auto; transform: translateX(-102%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; }
.menu-pannello a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 700; }
.menu-pannello a:hover { background: var(--bg); }
.menu-pannello .btn { margin-top: 14px; justify-content: center; }
.menu-testa { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 4px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.menu-titolo { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.15rem; }
.menu-chiudi { width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--bg); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.menu-aperto, .menu-aperto body { overflow: hidden; }
.menu-aperto .menu-velo { opacity: 1; pointer-events: auto; }
.menu-aperto .menu-pannello { transform: none; visibility: visible; transition: transform .2s ease, visibility 0s; }
.menu-btn:focus-visible, .menu-chiudi:focus-visible, .menu-pannello a:focus-visible, .nav a:focus-visible, .dd-btn:focus-visible, .btn:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }
@media (max-width: 380px) { .btn-app { padding: 9px 12px; font-size: .85rem; } .top-bar .brand small { display: none; } }
@media (min-width: 1024px) {
  .menu-btn, .menu-velo, .menu-pannello { display: none; }
  .nav { display: flex; align-items: center; gap: 22px; margin-right: 8px; }
  .nav > a, .dd-btn { color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit; padding: 10px 2px; }
  .dd { position: relative; }
  .dd-menu { position: absolute; top: calc(100% + 6px); left: -12px; min-width: 240px; padding: 8px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); opacity: 0; transform: translateY(-4px); visibility: hidden; transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s; }
  .dd-menu a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 700; }
  .dd-menu a:hover { background: var(--bg); }
  .dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd-btn[aria-expanded="true"] + .dd-menu { opacity: 1; transform: none; visibility: visible; transition: opacity .15s ease, transform .15s ease, visibility 0s; }
}
@media (prefers-reduced-motion: reduce) { .menu-pannello, .menu-velo, .dd-menu { transition: none !important; } }

/* newsletter (doppio consenso): riquadro in home, sotto i calcolatori e in fondo agli articoli */
.box-newsletter { margin-top: 28px; margin-bottom: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; background: linear-gradient(160deg, #e8f0e4, #c9dcc4); border-radius: var(--r); padding: clamp(20px, 4vw, 34px); box-shadow: var(--shadow); }
.article .box-newsletter { grid-template-columns: 1fr; }
.box-newsletter h2 { margin: 0 0 6px; }
.box-newsletter p { margin: 0; }
.nl-form { display: grid; gap: 12px; }
.nl-campo span { display: block; font-weight: 800; font-size: .9rem; margin-bottom: 4px; }
.nl-campo input { width: 100%; height: 50px; border-radius: 18px; border: 2px solid var(--line); background: #fff; padding: 0 14px; font: inherit; font-weight: 700; color: var(--ink); box-sizing: border-box; }
.nl-consenso { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; line-height: 1.45; }
.nl-consenso input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--terra); }
.nl-esca { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.nl-esito { min-height: 1.4em; font-weight: 700; font-size: .92rem; }
@media (max-width: 760px) { .box-newsletter { grid-template-columns: 1fr; } }
