/* 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: 10; background: rgba(245, 237, 227, .9); backdrop-filter: blur(10px); }
.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; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

.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: wrap; gap: 10px; margin-top: 22px; }
.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; }
