/*
Theme Name: Olly
Theme URI: http://olly.local
Author: Olly
Description: Landing page con blog e newsletter per editor di libri freelance: servizi, metodo, calcolatore di preventivo a cartella, portfolio, FAQ e modulo con caricamento del manoscritto.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: olly
*/

/* ==========================================================================
   Token
   ========================================================================== */
:root {
	--paper: #f7f2ea;
	--paper-2: #efe6d8;
	--card: #fffdf9;
	--ink: #1c1b19;
	--ink-2: #45413b;
	--muted: #7a746a;
	--line: rgba(28, 27, 25, 0.12);
	--coral: #e0643c;
	--coral-dark: #c24e28;
	--sage: #2f5d50;
	--butter: #f3c84b;
	--sky: #9cc5d8;

	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--radius: 22px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(28, 27, 25, 0.06), 0 12px 32px -12px rgba(28, 27, 25, 0.18);
	--shadow-lg: 0 30px 60px -20px rgba(28, 27, 25, 0.35);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--container: 1200px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	font-variation-settings: "opsz" 144;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--coral); }
p { margin: 0 0 1em; }
::selection { background: var(--butter); color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 12px; left: 12px; width: auto; height: auto; clip: auto; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 999; border-radius: 8px; }
.hp { position: absolute; left: -9999px; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

/* ==========================================================================
   Bottoni e piccoli elementi
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	font: 600 15px/1 var(--sans);
	padding: 14px 22px;
	border-radius: 999px;
	border: 1.5px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 18px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -10px rgba(224, 100, 60, 0.7); }
.btn--accent:hover { background: var(--coral-dark); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #000; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.kicker {
	display: inline-flex; align-items: center; gap: 10px;
	font: 600 12px/1 var(--sans);
	letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--coral);
	margin-bottom: 18px;
}
.kicker::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.kicker--light { color: var(--butter); }

.pill {
	display: inline-block; padding: 4px 10px; border-radius: 999px;
	background: var(--ink); color: var(--paper);
	font-size: 12px; font-weight: 600; text-decoration: none; letter-spacing: 0.02em;
}
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--coral); padding-bottom: 2px; transition: color 0.2s; }
.link-arrow:hover { color: var(--coral); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled {
	background: rgba(247, 242, 234, 0.82);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	box-shadow: 0 1px 0 var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark {
	display: grid; place-items: center;
	width: 38px; height: 38px; border-radius: 50%;
	background: var(--ink); color: var(--paper);
	font: italic 500 22px/1 var(--serif);
	transition: transform 0.4s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.05); }
.brand__name { font: 600 24px/1 var(--serif); letter-spacing: -0.02em; }
.brand__name em { color: var(--coral); font-style: normal; }
.brand__logo { max-height: 44px; width: auto; }
.brand--light .brand__mark { background: var(--paper); color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { text-decoration: none; font-size: 15px; font-weight: 500; position: relative; }
.site-nav__list a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
	background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.site-nav__list a:hover::after, .site-nav__list .current-menu-item a::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span:not(.sr-only) { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), top 0.3s; }
.nav-toggle span:nth-of-type(2) { top: 17px; }
.nav-toggle span:nth-of-type(3) { top: 25px; }
.nav-open .nav-toggle span:nth-of-type(2) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-of-type(3) { top: 21px; transform: rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: 40px 0 0; overflow: hidden; }
.hero::before {
	content: ""; position: absolute; width: 720px; height: 720px; right: -200px; top: -220px;
	background: radial-gradient(circle, rgba(243, 200, 75, 0.45), transparent 62%);
	pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; position: relative; padding-bottom: 80px; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
	font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3bb273; box-shadow: 0 0 0 4px rgba(59, 178, 115, 0.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(59, 178, 115, 0); } }

.hero__title { font-size: clamp(46px, 7vw, 96px); font-weight: 400; letter-spacing: -0.022em; line-height: 1; margin-bottom: 28px; }
.hero__title em { color: var(--ink); }
.scribble { position: relative; display: inline-block; color: var(--coral); font-style: italic; }
.scribble::after {
	content: ""; position: absolute; left: -2%; right: -4%; bottom: 0.02em; height: 0.28em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M2 14 C 60 4, 120 4, 170 10 S 260 16, 298 6' fill='none' stroke='%23f3c84b' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
	z-index: -1;
}
.hero__lead { font-size: 19px; color: var(--ink-2); max-width: 540px; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__proof { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.hero__proof li { display: flex; flex-direction: column; }
.hero__proof strong { font: 500 32px/1 var(--serif); letter-spacing: -0.02em; }
.hero__proof span { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Foglio con correzioni */
.hero__art { position: relative; min-height: 520px; }
.page-sheet {
	position: absolute; top: 10px; left: 0; right: 40px;
	background: var(--card); border-radius: 6px; padding: 44px 48px 56px;
	box-shadow: var(--shadow-lg);
	font: 400 17px/1.9 var(--serif); color: var(--ink-2);
	transform: rotate(-3deg);
	background-image: repeating-linear-gradient(transparent 0 31px, rgba(156, 197, 216, 0.25) 31px 32px);
	background-position: 0 38px;
	animation: float 7s ease-in-out infinite;
}
.page-sheet p { margin: 0 0 14px; }
.page-sheet__chap { font: italic 500 13px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px !important; }
.page-sheet del { color: var(--coral-dark); text-decoration-thickness: 2px; text-decoration-color: var(--coral); }
.page-sheet ins { text-decoration: none; color: var(--sage); font-style: italic; background: rgba(47, 93, 80, 0.1); padding: 0 3px; border-radius: 3px; }
.page-sheet mark { background: linear-gradient(transparent 55%, rgba(243, 200, 75, 0.7) 55%); color: inherit; }
.page-sheet .faint { opacity: 0.45; }
.margin-note {
	position: absolute; font: italic 500 15px/1.2 var(--serif); color: var(--coral-dark);
	background: #fff4dc; padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow);
	white-space: nowrap;
}
.margin-note--1 { right: -44px; top: 70px; transform: rotate(5deg); }
.margin-note--2 { left: -30px; bottom: 90px; transform: rotate(-4deg); color: var(--sage); background: #e5f0ea; }

.book {
	position: relative; aspect-ratio: 2 / 3; border-radius: 4px 12px 12px 4px;
	padding: 22px 18px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
	box-shadow: inset 6px 0 0 rgba(0, 0, 0, 0.12), inset 8px 0 12px -4px rgba(0, 0, 0, 0.25), var(--shadow-lg);
	overflow: hidden;
}
.book::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 40%); pointer-events: none; }
.book--hero {
	position: absolute; width: 190px; right: 0; bottom: 10px; transform: rotate(6deg);
	font: italic 500 30px/1.05 var(--serif); justify-content: flex-end;
	animation: float 7s ease-in-out -3.5s infinite;
}
@keyframes float { 50% { translate: 0 -10px; } }

.stamp {
	position: absolute; left: 40px; bottom: 0;
	width: 120px; height: 120px; border-radius: 50%;
	display: grid; place-items: center; text-align: center;
	border: 2px dashed var(--sage); color: var(--sage);
	font: 700 11px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
	transform: rotate(-14deg); background: rgba(247, 242, 234, 0.85);
	animation: spin 30s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }

.cover--coral { background: linear-gradient(160deg, #eb7a52, #c24e28); }
.cover--sage { background: linear-gradient(160deg, #3f7666, #22463c); }
.cover--ink { background: linear-gradient(160deg, #34312c, #111); }
.cover--butter { background: linear-gradient(160deg, #f6d66e, #e2ad20); color: var(--ink) !important; }
.cover--sky { background: linear-gradient(160deg, #b5d6e4, #6fa4bd); color: var(--ink) !important; }

/* Marquee generi */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink); color: var(--paper); overflow: hidden; }
.marquee__track { display: flex; gap: 28px; width: max-content; padding: 18px 0; animation: marquee 40s linear infinite; font: italic 400 24px/1 var(--serif); }
.marquee__track span:nth-child(even) { color: var(--butter); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sezioni
   ========================================================================== */
.section { padding: 120px 0; position: relative; }
.section--tight { padding: 60px 0; }
.section--flush-top { padding-top: 0; }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2 em { color: var(--butter); }
.section--ink .kicker { color: var(--butter); }

.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(36px, 5vw, 64px); }
.section-head p { font-size: 18px; color: var(--ink-2); }
.section--ink .section-head p { color: rgba(247, 242, 234, 0.72); }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.section-head--split > p { max-width: 400px; margin: 0; }
.section-head--split h2 { margin: 0; max-width: 640px; }

/* Servizi */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service {
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 28px 26px; display: flex; flex-direction: column;
	transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.service__n { font: italic 400 38px/1 var(--serif); color: var(--coral); }
.service__tag { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.service h3 { font-size: 24px; margin-bottom: 12px; }
.service p { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.service__price { margin: auto 0 0 !important; padding-top: 18px; border-top: 1px dashed var(--line); font-weight: 600; color: var(--ink) !important; }
.service--featured { background: var(--coral); color: #fff; border-color: transparent; grid-column: span 2; grid-row: span 1; }
.service--featured .service__n, .service--featured .service__tag, .service--featured p, .service--featured .service__price { color: #fff !important; }
.service--featured .service__tag { opacity: 0.8; }
.service--featured h3 { font-size: 34px; }
.service--featured .service__price { border-color: rgba(255, 255, 255, 0.35); }

/* Metodo */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { padding: 0 28px 0 0; position: relative; }
.step::before { content: ""; position: absolute; top: 28px; left: 64px; right: 16px; height: 1px; background: rgba(247, 242, 234, 0.2); }
.step:last-child::before { display: none; }
.step__n {
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
	border: 1.5px solid var(--butter); color: var(--butter);
	font: italic 500 24px/1 var(--serif); margin-bottom: 28px;
	transition: background 0.3s, color 0.3s;
}
.step:hover .step__n { background: var(--butter); color: var(--ink); }
.step h3 { font-size: 24px; }
.step p { color: rgba(247, 242, 234, 0.7); font-size: 15px; }
.step__time { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(247, 242, 234, 0.08); color: var(--paper); }

/* Calcolatore */
.calc-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.calc-copy h2 { font-size: clamp(36px, 5vw, 60px); }
.calc-copy > p { font-size: 18px; color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
	content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--sage); color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 700;
}
.calc {
	background: var(--card); border-radius: 28px; padding: 36px; box-shadow: var(--shadow-lg);
	display: grid; gap: 22px; position: relative;
}
.calc[data-badge=""]::before { display: none; }
.calc::before {
	content: attr(data-badge); position: absolute; top: -14px; right: 28px;
	background: var(--butter); padding: 6px 14px; border-radius: 999px;
	font-size: 12px; font-weight: 700; letter-spacing: 0.04em; transform: rotate(3deg);
}
.calc__field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--ink-2); }
.calc__label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.calc__label-row label { margin: 0; }
.seg { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; font: 600 12px/1 var(--sans); padding: 7px 12px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.seg button.is-active { background: var(--ink); color: var(--paper); }
.calc select, .calc input[type="number"],
.contact-form input:not([type="checkbox"]):not([type="file"]), .contact-form select, .contact-form textarea,
.nl-form input, .search input {
	width: 100%; font: 500 16px/1.3 var(--sans); color: var(--ink);
	padding: 14px 16px; border-radius: var(--radius-sm);
	border: 1.5px solid var(--line); background: var(--paper);
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
	appearance: none; -webkit-appearance: none;
}
.calc select, .contact-form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231c1b19' stroke-width='1.8' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink) !important; background-color: #fff !important; box-shadow: 0 0 0 4px rgba(224, 100, 60, 0.15); }
.calc input[type="number"] { font: 500 28px/1 var(--serif); padding: 12px 16px; }
.calc input[type="range"] { width: 100%; margin: 16px 0 6px; accent-color: var(--coral); }
.calc__hint { font-size: 13px; color: var(--muted); margin: 0; }
.calc__result { background: var(--ink); color: var(--paper); border-radius: 18px; padding: 24px 26px; }
.calc__result-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--butter); margin: 0 0 6px; font-weight: 600; }
.calc__price { font: 400 clamp(32px, 4vw, 44px)/1.05 var(--serif); letter-spacing: -0.02em; margin: 0 0 8px; }
.calc__price.bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.04); color: var(--butter); } }
.calc__meta { margin: 0; font-size: 14px; color: rgba(247, 242, 234, 0.7); }

/* Portfolio: scaffale orizzontale */
.shelf {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
	gap: 28px; padding: 10px max(24px, calc((100vw - var(--container)) / 2 + 24px)) 40px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.shelf__item { margin: 0; scroll-snap-align: start; }
.shelf .book { transition: transform 0.45s var(--ease); }
.shelf__item:hover .book { transform: translateY(-10px) rotate(-2deg); }
.book--image { padding: 0; }
.book__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shelf__link { display: block; text-decoration: none; color: inherit; }
.book__genre { font: 600 10px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; }
.book__title { font: italic 500 28px/1.05 var(--serif); letter-spacing: -0.01em; }
.book__author { font: 500 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.shelf figcaption { margin-top: 18px; display: flex; flex-direction: column; }
.shelf figcaption strong { font: 500 18px/1.3 var(--serif); }
.shelf figcaption span { font-size: 13px; color: var(--muted); }

/* Testimonianze */
.quotes { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.quote { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.quote p { font: 400 20px/1.45 var(--serif); margin: 0; }
.quote--big { background: var(--sage); color: var(--paper); border: 0; }
.quote--big p { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; }
.quote--big em { color: var(--butter); }
.quote footer { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.quote footer > span:last-child { display: flex; flex-direction: column; opacity: 0.8; }
.quote footer strong { opacity: 1; font-size: 15px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--coral); color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--ink { background: var(--ink); }
.avatar--sky { background: var(--sky); color: var(--ink); }
.avatar--sage { background: var(--sage); }
.avatar--butter { background: var(--butter); color: var(--ink); }

/* Chi sono */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: center; }
.about__photo { position: relative; }
.portrait {
	aspect-ratio: 4 / 5; border-radius: 200px 200px var(--radius) var(--radius);
	background:
		radial-gradient(circle at 30% 25%, rgba(243, 200, 75, 0.9), transparent 45%),
		radial-gradient(circle at 75% 70%, rgba(224, 100, 60, 0.85), transparent 50%),
		linear-gradient(160deg, #2f5d50, #1c1b19);
	display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-lg);
}
.portrait span { font: italic 300 clamp(140px, 18vw, 240px)/1 var(--serif); color: rgba(247, 242, 234, 0.9); }
.portrait--image { background: var(--paper-2); }
.portrait--image img { width: 100%; height: 100%; object-fit: cover; }
.portrait--sm { width: 64px; height: 64px; aspect-ratio: auto; border-radius: 50%; flex: none; box-shadow: none; }
.portrait--sm span { font-size: 32px; }
.about__badge {
	position: absolute; right: -24px; bottom: 40px; background: var(--card); border-radius: 18px;
	padding: 18px 22px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; max-width: 190px;
	transform: rotate(3deg);
}
.about__badge strong { font: 500 30px/1 var(--serif); color: var(--coral); }
.about__badge span { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.about__copy h2 { font-size: clamp(40px, 5vw, 64px); }
.about__copy .lead { font: 400 23px/1.45 var(--serif); color: var(--ink); }
.about__copy p { color: var(--ink-2); }
.creds { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.creds li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.creds span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding-top: 3px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-wrap .section-head { position: sticky; top: 110px; margin: 0; }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
	list-style: none; cursor: pointer; padding: 26px 50px 26px 0; position: relative;
	font: 500 21px/1.35 var(--serif); letter-spacing: -0.01em; transition: color 0.2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--coral); }
.faq__icon { position: absolute; right: 4px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; border: 1.5px solid var(--line); transition: transform 0.35s var(--ease), background 0.3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.35s var(--ease); }
.faq__item[open] .faq__icon { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq__body { padding: 0 50px 26px 0; color: var(--ink-2); animation: fadein 0.4s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(-6px); } }

/* Blog card */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__glyph { position: absolute; right: 20px; bottom: -34px; font: italic 300 180px/1 var(--serif); color: rgba(255, 255, 255, 0.85); transition: transform 0.6s var(--ease); }
.post-card:hover .post-card__glyph { transform: translateY(-10px) rotate(-6deg); }
.tone-coral { background: linear-gradient(135deg, #f08a63, #c24e28); }
.tone-sage { background: linear-gradient(135deg, #4c8a78, #22463c); }
.tone-butter { background: linear-gradient(135deg, #f8dc82, #e2ad20); }
.tone-butter .post-card__glyph { color: rgba(28, 27, 25, 0.75); }
.tone-ink { background: linear-gradient(135deg, #45413b, #111); }
.post-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.post-card__title { font-size: 24px; line-height: 1.2; margin-bottom: 10px; }
.post-card__title a { text-decoration: none; background: linear-gradient(var(--coral), var(--coral)) no-repeat 0 100% / 0 1.5px; transition: background-size 0.4s var(--ease); }
.post-card:hover .post-card__title a { background-size: 100% 1.5px; }
.post-card__excerpt { font-size: 15px; color: var(--ink-2); margin: 0; }

/* Newsletter */
.nl-band {
	position: relative; overflow: hidden;
	background: var(--ink); color: var(--paper); border-radius: 32px;
	padding: 64px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.nl-band::before { content: ""; position: absolute; width: 420px; height: 420px; left: -120px; bottom: -220px; background: radial-gradient(circle, rgba(224, 100, 60, 0.55), transparent 65%); }
.nl-band h2 { font-size: clamp(36px, 4.4vw, 56px); }
.nl-band h2 em { color: var(--butter); }
.nl-band p { color: rgba(247, 242, 234, 0.75); }
.nl-band p strong { color: var(--paper); }
.nl-band__copy, .nl-band__form { position: relative; z-index: 1; }
.nl-band__deco { position: absolute; right: 36px; top: 10px; font-size: 140px; line-height: 1; opacity: 0.06; transform: rotate(-12deg); }
.nl-band--slim { padding: 48px 56px; }
.nl-band--slim h2 { font-size: clamp(28px, 3.4vw, 40px); }
.nl-form { display: grid; gap: 12px; }
.nl-form input { background: rgba(247, 242, 234, 0.08); border-color: rgba(247, 242, 234, 0.2); color: var(--paper); }
.nl-form input::placeholder { color: rgba(247, 242, 234, 0.5); }
.nl-form input:focus { color: var(--ink); }
.nl-form--default { grid-template-columns: 1fr 1fr; }
.nl-form--default button { grid-column: 1 / -1; padding: 17px; }
.nl-form--compact { grid-template-columns: 1fr auto; background: rgba(247, 242, 234, 0.08); border-radius: 999px; padding: 5px; gap: 4px; }
.nl-form--compact input { border: 0; background: transparent; border-radius: 999px; padding: 12px 16px; }
.nl-form--compact input:focus { box-shadow: none; background: transparent !important; color: var(--paper); }
.fine { font-size: 12px; margin: 12px 0 0; opacity: 0.6; }

/* Notifiche form */
.notice { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; margin-bottom: 16px; animation: fadein 0.5s var(--ease); }
.notice--success { background: #e2f1e8; color: #1d5a3c; }
.notice--info { background: #fff4d6; color: #7a5a00; }
.notice--error { background: #fbe4dc; color: #93341a; }

/* Contatti */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.contact__copy h2 { font-size: clamp(38px, 5vw, 64px); }
.contact__copy > p { font-size: 18px; color: var(--ink-2); }
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; }
.contact__list li { display: flex; flex-direction: column; font-weight: 500; }
.contact__list span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.contact__list a { text-decoration: none; border-bottom: 1.5px solid var(--coral); align-self: flex-start; }
.contact-form { background: var(--card); border-radius: 28px; padding: 40px; box-shadow: var(--shadow); display: grid; gap: 18px; border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.dropzone {
	position: relative; display: flex; align-items: center; gap: 18px; padding: 20px 22px;
	border: 1.5px dashed rgba(28, 27, 25, 0.28); border-radius: 16px; background: var(--paper);
	cursor: pointer; transition: border-color 0.2s, background 0.2s;
	font-size: 14px; color: var(--ink-2); line-height: 1.5;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--coral); background: #fff3ec; }
.dropzone.has-file { border-style: solid; border-color: var(--sage); background: #eaf3ee; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__icon { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 20px; }
.dropzone strong { color: var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--coral); flex: none; }

/* ==========================================================================
   Blog: archivio e articolo
   ========================================================================== */
.page-hero { padding: 70px 0 60px; }
.page-hero h1 { font-size: clamp(46px, 7vw, 92px); font-weight: 400; letter-spacing: -0.022em; }
.page-hero__lead { font-size: 20px; color: var(--ink-2); max-width: 600px; }
.page-hero--simple { padding-bottom: 30px; }
.blog-tools { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search input { border-radius: 999px; min-width: 260px; padding: 11px 18px; }
.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.empty { font: italic 400 24px/1.4 var(--serif); color: var(--muted); }

.article__head { padding: 70px 0 40px; text-align: center; }
.article__head h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 400; letter-spacing: -0.015em; }
.article__meta { display: flex; gap: 10px; justify-content: center; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.article__lead { font: 400 22px/1.5 var(--serif); color: var(--ink-2); }
.article__cover { margin-bottom: 56px; }
.article__cover img { border-radius: var(--radius); width: 100%; max-height: 560px; object-fit: cover; }

.prose { font: 400 20px/1.75 var(--serif); color: #2b2925; font-variation-settings: "opsz" 18; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose > p:first-of-type::first-letter { float: left; font-size: 4.4em; line-height: 0.82; padding: 0.06em 0.1em 0 0; color: var(--coral); font-style: italic; }
.prose h2 { font-size: 36px; margin-top: 1.8em; font-variation-settings: "opsz" 144; }
.prose h3 { font-size: 26px; margin-top: 1.5em; }
.prose a { color: var(--coral-dark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--coral); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 28px; border-left: 3px solid var(--coral); font-style: italic; font-size: 1.15em; color: var(--ink); }
.prose img, .prose figure { border-radius: var(--radius-sm); }
.prose code { font-size: 0.85em; background: var(--paper-2); padding: 2px 6px; border-radius: 6px; }
.article__tags { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.article__tags a { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); text-decoration: none; }

.author-box { display: flex; gap: 20px; margin: 56px 0 40px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.author-box p { margin: 0 0 8px; color: var(--ink-2); font-size: 15px; }
.author-box__name { font: 500 20px/1.2 var(--serif) !important; color: var(--ink) !important; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.post-nav a { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); text-decoration: none; font: 500 18px/1.3 var(--serif); transition: border-color 0.2s; }
.post-nav a:hover { border-color: var(--ink); }
.post-nav span { font: 600 12px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.post-nav div:last-child a { text-align: right; }
.comments-wrap { padding-bottom: 80px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #121110; color: rgba(247, 242, 234, 0.7); padding: 80px 0 32px; margin-top: 60px; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(247, 242, 234, 0.12); }
.site-footer__brand .brand__name { color: var(--paper); }
.site-footer__brand p { margin-top: 20px; font-size: 15px; max-width: 300px; }
.site-footer h3 { font: 600 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--butter); }
.site-footer__nl p { font-size: 15px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; font-size: 13px; flex-wrap: wrap; }
.site-footer__bottom p { margin: 0; }

/* ==========================================================================
   Animazioni di comparsa
   ========================================================================== */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
	.services { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); gap: 48px 0; }
	.step:nth-child(2)::before { display: none; }
	.quotes { grid-template-columns: 1fr 1fr; }
	.quote--big { grid-column: 1 / -1; }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.site-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
	.nav-toggle { display: block; z-index: 60; }
	.site-nav {
		position: fixed; inset: 0; background: var(--paper); flex-direction: column; justify-content: center;
		gap: 36px; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
	}
	.nav-open .site-nav { opacity: 1; visibility: visible; }
	.nav-open { overflow: hidden; }
	.site-nav__list { flex-direction: column; align-items: center; gap: 22px; }
	.site-nav__list a { font: 400 34px/1 var(--serif); }

	.hero__grid, .calc-wrap, .about, .faq-wrap, .contact, .nl-band { grid-template-columns: 1fr; }
	.hero__grid { gap: 20px; }
	.hero__art { min-height: 440px; margin: 0 10px; }
	.faq-wrap .section-head { position: static; }
	.about { gap: 56px; }
	.about__photo { max-width: 420px; }
	.section-head--split { flex-direction: column; align-items: flex-start; }
	.section { padding: 88px 0; }
	.nl-band { padding: 44px 32px; gap: 28px; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.container { padding: 0 16px; }
	.hero { padding-top: 16px; }
	.hero__proof { gap: 22px; }
	.hero__proof strong { font-size: 26px; }
	.hero__art { min-height: 400px; }
	.page-sheet { padding: 30px 26px 40px; right: 20px; font-size: 15px; }
	.margin-note--1 { right: -10px; top: -10px; }
	.margin-note--2 { left: 0; }
	.book--hero { width: 140px; font-size: 22px; }
	.stamp { width: 96px; height: 96px; font-size: 9px; left: 10px; }
	.services, .post-grid, .quotes, .form-row, .nl-form--default { grid-template-columns: 1fr; }
	.service--featured { grid-column: auto; }
	.steps { grid-template-columns: 1fr; }
	.step::before { display: none; }
	.calc, .contact-form { padding: 26px 20px; }
	.about__badge { right: 8px; }
	.creds li { grid-template-columns: 1fr; gap: 2px; }
	.nl-band { padding: 36px 22px; border-radius: 24px; }
	.site-footer__top { grid-template-columns: 1fr; }
	.search input { min-width: 0; }
	.blog-tools { flex-direction: column; align-items: stretch; }
	.post-nav { grid-template-columns: 1fr; }
	.prose { font-size: 18px; }
	.shelf { grid-auto-columns: 62%; padding-left: 16px; padding-right: 16px; }
}

/* ==========================================================================
   Elementor: le sezioni Olly occupano tutta la larghezza, senza spazi extra
   ========================================================================== */
.e-con:has(> .elementor-widget[data-widget_type^="olly-"]),
.e-con:has(> .e-con-inner > .elementor-widget[data-widget_type^="olly-"]) {
	--padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
	--gap: 0px; --row-gap: 0px; --column-gap: 0px;
	--content-width: 100%; --container-max-width: 100%;
	padding: 0;
}
.e-con:has(> .e-con-inner > .elementor-widget[data-widget_type^="olly-"]) > .e-con-inner { max-width: none; padding: 0; gap: 0; }
.elementor-widget[data-widget_type^="olly-"] { width: 100%; margin: 0 !important; }

/* Senza animazione di comparsa (opzione del widget) e nell'editor */
.elementor-widget[data-widget_type^="olly-"]:not(.olly-anim-yes) .reveal,
.elementor-editor-active .reveal { opacity: 1 !important; transform: none !important; }
