﻿/* ==========================================================================
   IL SEGRETO DI SILVIA — CSS PERSONALIZZATO
   Design system v2 "Aesop": carta + inchiostro, un solo colore (ossido).
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. FONT SELF-HOSTED — Hanken Grotesk (niente CDN, GDPR-friendly)
   -------------------------------------------------------------------------- */
@font-face {
	font-family: 'Hanken Grotesk';
	src: url('../fonts/hanken-grotesk-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Hanken Grotesk';
	src: url('../fonts/hanken-grotesk-500.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Hanken Grotesk';
	src: url('../fonts/hanken-grotesk-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Hanken Grotesk';
	src: url('../fonts/hanken-grotesk-800.woff2') format('woff2');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

/* --------------------------------------------------------------------------
   1. TOKEN — Design system "Aesop"
   Carta e inchiostro. L'ossido e' riservato al cuore del logo: non usarlo
   come colore decorativo in giro.
   -------------------------------------------------------------------------- */
:root {
	--carta:        #F1EFE6; /* fondo pagina */
	--superficie:   #FAF9F4; /* card e pannelli */
	--inchiostro:   #252422; /* testo e CTA */
	--inchiostro-60: rgba(37, 36, 34, 0.64); /* secondario, barrati */
	--inchiostro-40: rgba(37, 36, 34, 0.46); /* terziario, placeholder */
	--inchiostro-30: rgba(37, 36, 34, 0.3);  /* bordi marcati */
	--linea:        rgba(37, 36, 34, 0.14);  /* hairline */
	--ossido:       #8E3B2F; /* SOLO cuore del logo */
	--bordo:        rgba(37, 36, 34, 0.14);  /* alias hairline */
	--foto-bg:      #E8E4D8; /* fondo foto neutro */
	--velo:         #E9E6DB; /* pannelli soft (es. "come arriva a casa") */
	--raggio-sm:    12px;
	--header-h:     74px;

	/* Tinte categoria (tile e fondi immagine — testo sempre inchiostro) */
	--tinta-argilla:     #E0D2C4;
	--tinta-rosa-antico: #E2D3CC;
	--tinta-sabbia:      #E6DECB;
	--tinta-salvia:      #D9DCCB;
	--tinta-celadon:     #D8DCD5;
	--tinta-paglia:      #E7E0C8;

	/* Raggio standard (dal mockup Claude Design) */
	--raggio: 18px;

	/* Alias legacy: i vecchi nomi puntano ai token nuovi, cosi' nessuna
	   regola rimasta indietro reintroduce i colori pensionati. */
	--brand-bg:        var(--carta);
	--brand-surface:   var(--superficie);
	--brand-plum:      var(--inchiostro);
	--brand-plum-dark: #000000;
	--brand-gold:      var(--inchiostro);
	--brand-gold-dark: var(--inchiostro);
	--brand-rose:      var(--inchiostro);
	--brand-rose-dark: #3A3835;
	--brand-text:      var(--inchiostro);
	--brand-muted:     var(--inchiostro-60);
	--brand-border:    var(--bordo);
	--brand-primary:   var(--inchiostro);
	--brand-secondary: var(--inchiostro);
}

/* --------------------------------------------------------------------------
   2. GLOBALI — Hanken Grotesk ovunque
   -------------------------------------------------------------------------- */
body {
	background-color: var(--carta);
	color: var(--inchiostro);
	font-family: 'Hanken Grotesk', -apple-system, sans-serif;
	font-size: 16.5px;
	font-weight: 400;
	line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.isds-hero__title,
.woocommerce div.product .product_title {
	font-family: 'Hanken Grotesk', -apple-system, sans-serif;
	font-weight: 700;
	letter-spacing: -0.02em;
}

h1, .isds-hero__title {
	font-weight: 800;
}

/* Eyebrow / kicker: etichette maiuscole piccole sopra i titoli */
.isds-eyebrow {
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--inchiostro);
}

/* Prezzi: cifre tabulari ovunque, sconti a bassa voce */
.price, .amount {
	font-variant-numeric: tabular-nums;
}

/* Contenitori GeneratePress su crema, card prodotto bianche */
.separate-containers .site-main {
	background-color: transparent;
}

a {
	color: var(--brand-plum);
}

a:hover,
a:focus {
	color: var(--brand-plum-dark);
}

h1, h2, h3, h4, h5, h6 {
	color: var(--brand-text);
}

/* Bottoni (GeneratePress + form): pillole inchiostro, testo carta */
button,
.button,
input[type="submit"],
.wp-block-button__link {
	background-color: var(--inchiostro);
	border-color: var(--inchiostro);
	color: var(--carta);
	font-family: 'Hanken Grotesk', sans-serif;
	font-weight: 700;
	font-size: 15.5px;
	border-radius: 999px;
	padding: 12px 24px;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

button:hover,
.button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
	background-color: var(--inchiostro);
	border-color: var(--inchiostro);
	color: var(--carta);
	opacity: 0.85;
}

button:active,
.button:active,
input[type="submit"]:active {
	transform: scale(0.97);
}


/* --------------------------------------------------------------------------
   3. HEADER / NAV — sticky con blur, hairline, brand col cuore
   -------------------------------------------------------------------------- */

/* Barra annuncio: inchiostro pieno, scorre via (non sticky) */
.isds-announce {
	background: var(--inchiostro);
	color: var(--carta);
	text-align: center;
	font-size: 13.5px;
	padding: 10px 18px;
	line-height: 1.4;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background-color: rgba(241, 239, 230, 0.94);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--linea);
	box-shadow: none;
}

.site-header .inside-header {
	padding: 16px 24px;
}

/* Brand: marchio S+cuore e wordmark */
.isds-brand a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.isds-brand__mark {
	width: 38px;
	height: auto;
	display: block;
}

.isds-brand__name {
	font-family: 'Hanken Grotesk', sans-serif;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--inchiostro);
}

/* Menu di navigazione: maiuscoletto distanziato, da boutique */
.main-navigation {
	background-color: var(--brand-surface);
}

.main-navigation .main-nav ul li a {
	color: var(--inchiostro);
	font-family: 'Hanken Grotesk', sans-serif;
	font-size: 14.5px;
	font-weight: 500;
}

/* Hover nav: underline 1px che entra da sinistra, MAI cambio colore */
.main-navigation .main-nav > ul > li > a {
	position: relative;
}

.main-navigation .main-nav > ul > li > a::after {
	content: '';
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 14px;
	height: 1px;
	background: var(--inchiostro);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.22s ease;
}

.main-navigation .main-nav > ul > li > a:hover::after,
.main-navigation .main-nav > ul > li.current-menu-item > a::after,
.main-navigation .main-nav > ul > li.current-menu-ancestor > a::after {
	transform: scaleX(1);
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a {
	color: var(--inchiostro);
}

/* Sottomenu a tendina puliti */
.main-navigation ul ul {
	background-color: var(--brand-surface);
	border: 1px solid var(--brand-border);
	border-radius: 0 0 10px 10px;
	box-shadow: 0 14px 34px rgba(26, 22, 32, 0.12);
}


/* --------------------------------------------------------------------------
   4. CATALOGO PRODOTTI (shop / archivi)
   -------------------------------------------------------------------------- */
/* Ogni prodotto in una card su carta, raggio 18 dal design system */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	background-color: var(--superficie);
	border: 1px solid var(--bordo);
	border-radius: var(--raggio);
	padding: 14px 14px 20px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.woocommerce ul.products li.product:hover {
	box-shadow: 0 12px 30px rgba(37, 36, 34, 0.10);
	transform: translateY(-3px);
}

.woocommerce ul.products li.product img {
	border-radius: calc(var(--raggio) - 6px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	color: var(--inchiostro);
	font-family: 'Hanken Grotesk', sans-serif;
	font-size: 15.5px;
	font-weight: 500;
	line-height: 1.4;
}

/* Prezzi: inchiostro. Commercio a bassa voce: barrati piccoli e
   smorzati, MAI rossi, niente urla. */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--inchiostro);
	font-weight: 600;
}

.woocommerce ul.products li.product .price del,
.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
	color: var(--inchiostro-60);
	font-size: 0.82em;
	font-weight: 400;
	opacity: 1;
}

.woocommerce ul.products li.product .price ins,
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
	color: var(--inchiostro);
	text-decoration: none;
}

/* Badge "Offerta" in oro */
/* Badge "Offerta": inchiostro a bassa voce, niente colori urlati */
.woocommerce span.onsale {
	background-color: var(--inchiostro);
	color: var(--carta);
	border-radius: 50px;
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.04em;
	min-height: auto;
	line-height: 1;
	padding: 7px 12px;
}

/* Bottoni "Aggiungi al carrello": pillole inchiostro */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #respond input#submit,
.woocommerce ul.products li.product a.add_to_cart_button {
	background-color: var(--inchiostro);
	color: var(--carta);
	border-radius: 999px;
	font-weight: 700;
	transition: opacity 0.15s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce ul.products li.product a.add_to_cart_button:hover {
	background-color: var(--inchiostro);
	color: var(--carta);
	opacity: 0.85;
}


/* --------------------------------------------------------------------------
   5. SCHEDA PRODOTTO (single product) — dal design approvato
   -------------------------------------------------------------------------- */

/* Layout: grid 55/45 con buy box sticky (sopra 861px) */
@media (min-width: 861px) {
	.isds-pdp div.product {
		display: grid;
		grid-template-columns: 55fr 45fr;
		gap: 44px;
		align-items: start;
	}

	.isds-pdp div.product div.images,
	.isds-pdp div.product div.summary {
		float: none !important;
		width: auto !important;
		margin: 0 !important;
	}

	.isds-pdp div.product div.summary {
		position: sticky;
		top: calc(var(--header-h) + 60px);
	}

	.isds-pdp div.product .woocommerce-tabs,
	.isds-pdp div.product .related,
	.isds-pdp div.product .up-sells {
		grid-column: 1 / -1;
		float: none !important;
		width: 100% !important;
	}
}

/* Gallery su tinta di categoria, zoom morbido */
.isds-pdp div.product div.images {
	background: var(--foto-bg);
	border-radius: var(--raggio);
	padding: 22px;
	overflow: hidden;
}

.isds-pdp-tinta--argilla div.product div.images     { background: var(--tinta-argilla); }
.isds-pdp-tinta--rosa-antico div.product div.images { background: var(--tinta-rosa-antico); }
.isds-pdp-tinta--sabbia div.product div.images      { background: var(--tinta-sabbia); }
.isds-pdp-tinta--salvia div.product div.images      { background: var(--tinta-salvia); }
.isds-pdp-tinta--paglia div.product div.images      { background: var(--tinta-paglia); }
.isds-pdp-tinta--celadon div.product div.images     { background: var(--tinta-celadon); }

.isds-pdp div.product div.images img {
	width: 100%;
	height: auto;
	border-radius: var(--raggio-sm);
	transition: transform 0.5s ease;
}

.isds-pdp div.product div.images .woocommerce-product-gallery__image:hover img {
	transform: scale(1.05);
}

/* Eyebrow categoria sopra il titolo */
.isds-pdp-eyebrow { margin: 0 0 8px; }
.isds-pdp-eyebrow a { color: var(--inchiostro-60); text-decoration: none; }
.isds-pdp-eyebrow a:hover { color: var(--inchiostro); }

.woocommerce div.product .product_title {
	color: var(--inchiostro);
	font-size: clamp(28px, 3.4vw, 40px);
	letter-spacing: -0.02em;
	line-height: 1.08;
}

/* Prezzo grande, sconto a bassa voce */
.isds-pdp div.product p.price {
	font-size: 26px;
	margin: 14px 0 6px;
}

/* CTA full width */
.isds-pdp form.cart .single_add_to_cart_button {
	width: 100%;
	padding: 16px 26px;
	font-size: 16px;
}

.isds-pdp form.cart div.quantity { margin-bottom: 12px; }

/* Blocco "Come arriva a casa" su velo */
.isds-arrival {
	margin-top: 16px;
	padding: 16px 18px;
	background: var(--velo);
	border-radius: var(--raggio-sm);
}

.isds-arrival__kicker {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--inchiostro);
}

.isds-arrival ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 6px;
	font-size: 13.5px;
	color: var(--inchiostro-60);
}

.isds-arrival li {
	padding-left: 16px;
	position: relative;
}

.isds-arrival li::before {
	content: '\2014';
	position: absolute;
	left: 0;
	color: var(--inchiostro-40);
}

/* Accordion hairline (costruito via JS dalle tab Woo) */
.isds-pdp .woocommerce-tabs { margin-top: 40px; }

.isds-acc { border-top: 1px solid var(--linea); }

.isds-acc__item { border-bottom: 1px solid var(--linea); }

.isds-acc__head {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 20px 2px;
	background: none !important;
	border: none;
	border-radius: 0;
	color: var(--inchiostro) !important;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-align: left;
	cursor: pointer;
	opacity: 1 !important;
}

.isds-acc__x {
	font-size: 24px;
	font-weight: 300;
	line-height: 1;
	transition: transform 0.25s ease;
}

.isds-acc__item.is-open .isds-acc__x { transform: rotate(45deg); }

.isds-acc__body {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.4s ease;
}

.isds-acc__item.is-open .isds-acc__body { max-height: 2400px; }

.isds-acc__body .woocommerce-Tabs-panel {
	padding: 2px 2px 24px;
	font-size: 15.5px;
	max-width: 70ch;
}

/* Striscia finale inchiostro */
.isds-pdp-strip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	margin: 48px 0 8px;
	padding: 30px 32px;
	background: var(--inchiostro);
	border-radius: var(--raggio);
}

.isds-pdp-strip__t {
	margin: 0;
	font-size: clamp(19px, 2.4vw, 26px);
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--carta);
}

.isds-pdp-strip__btn {
	background: var(--carta);
	color: var(--inchiostro) !important;
}

.isds-pdp-strip__btn:hover { opacity: 0.85; }

/* Barra CTA mobile fissa in basso */
.isds-mbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 80;
	display: none;
	align-items: center;
	gap: 14px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: var(--superficie);
	border-top: 1px solid var(--linea);
}

@media (max-width: 860px) {
	.isds-mbar { display: flex; }
	.isds-pdp { padding-bottom: 84px; }
	.isds-pdp div.product div.summary { position: static; }
}

.isds-mbar__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.isds-mbar__name {
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.isds-mbar__price { font-size: 14px; font-weight: 700; }

.isds-mbar__btn {
	flex-shrink: 0;
	background: var(--inchiostro);
	color: var(--carta);
	border: none;
	border-radius: 999px;
	padding: 12px 20px;
	font-size: 14.5px;
	font-weight: 700;
}

/* Tab descrizione/recensioni */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	border-bottom-color: var(--brand-plum);
}

/* Recensioni: stelline in inchiostro (zero numeri di fantasia,
   si parte puliti e si lasciano parlare le recensioni vere) */
.woocommerce .star-rating span::before,
.woocommerce p.stars a::before {
	color: var(--inchiostro);
}


/* --------------------------------------------------------------------------
   6. CARRELLO / CHECKOUT
   -------------------------------------------------------------------------- */
/* Bottone "Procedi all'ordine" ben evidente */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce #payment #place_order {
	background-color: var(--inchiostro);
	color: var(--carta);
	font-size: 17px;
	font-weight: 700;
	border-radius: 999px;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce #payment #place_order:hover {
	background-color: var(--brand-rose-dark);
	color: #ffffff;
}

/* Messaggi WooCommerce (carrello aggiornato ecc.) in prugna */
.woocommerce-message,
.woocommerce-info {
	border-top-color: var(--brand-plum);
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--brand-plum);
}


/* --------------------------------------------------------------------------
   7. FOOTER "AESOP" — inchiostro pieno, 4 colonne, manifesto
   -------------------------------------------------------------------------- */
.isds-footer2 {
	margin-top: 64px;
	background: var(--inchiostro);
	color: rgba(250, 249, 244, 0.85);
}

.isds-footer2__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 56px 20px 36px;
}

.isds-f2-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 56px;
}

.isds-f2-head {
	margin: 0 0 24px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--superficie);
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(250, 249, 244, 0.3);
}

.isds-f2-links {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 15px;
	font-size: 15px;
}

.isds-f2-links a {
	color: rgba(250, 249, 244, 0.78);
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0% 1px;
	transition: background-size 0.28s ease;
	padding-bottom: 2px;
}

.isds-f2-links a:hover {
	background-size: 100% 1px;
	color: rgba(250, 249, 244, 0.78);
}

/* Newsletter */
.isds-f2-input {
	display: flex;
	align-items: stretch;
	border: 1px solid rgba(250, 249, 244, 0.45);
	transition: border 0.15s;
}

.isds-f2-input:focus-within { border-color: var(--superficie); }

.isds-f2-input input {
	flex: 1;
	background: none;
	border: none;
	outline: none;
	padding: 16px 18px;
	font-family: 'Hanken Grotesk', sans-serif;
	font-size: 16px;
	color: var(--superficie);
	min-width: 0;
}

.isds-f2-input input::placeholder { color: rgba(250, 249, 244, 0.5); }

.isds-f2-input button {
	display: grid;
	place-items: center;
	width: 56px;
	background: none;
	border: none;
	border-radius: 0;
	padding: 0;
	color: var(--superficie);
	font-size: 20px;
	transition: background 0.15s;
}

.isds-f2-input button:hover { background: rgba(250, 249, 244, 0.1); opacity: 1; }

.isds-f2-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 16px;
	cursor: pointer;
}

.isds-f2-check input {
	margin-top: 3px;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	cursor: pointer;
}

.isds-f2-check span {
	font-size: 13.5px;
	color: rgba(250, 249, 244, 0.55);
	line-height: 1.55;
	max-width: 46ch;
}

.isds-f2-news-ok {
	margin-top: 14px;
	font-size: 15px;
	color: var(--superficie);
}

/* Manifesto */
.isds-f2-manifesto {
	margin: 52px 0 0;
	font-size: clamp(22px, 2.6vw, 30px);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.25;
	color: var(--superficie);
	max-width: 30ch;
}

/* Riga fiducia: badge pagamento monocromi */
.isds-f2-trustrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid rgba(250, 249, 244, 0.16);
}

.isds-paybadge {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 10px;
	border-radius: 6px;
	background: rgba(250, 249, 244, 0.08);
	border: 1px solid rgba(250, 249, 244, 0.16);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: rgba(250, 249, 244, 0.75);
}

.isds-f2-trusttext {
	font-size: 13px;
	color: rgba(250, 249, 244, 0.55);
	margin-left: 6px;
}

/* Barra finale (dentro .site-info di GeneratePress) */
.site-info {
	background: var(--inchiostro);
	border-top: 1px solid rgba(250, 249, 244, 0.16);
	color: rgba(250, 249, 244, 0.55);
	font-size: 13px;
}

.isds-f2-foot {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 20px;
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
}

.isds-f2-foot a { color: rgba(250, 249, 244, 0.78); text-decoration: none; }
.isds-f2-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 980px) {
	.isds-f2-grid { grid-template-columns: 1fr 1fr; gap: 44px 36px; }
}

@media (max-width: 560px) {
	.isds-f2-grid { grid-template-columns: 1fr; gap: 40px; }
	.isds-f2-foot { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   7c. BADGE FIDUCIA (scheda prodotto + checkout)
   -------------------------------------------------------------------------- */
.isds-pdp-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: 18px;
	padding: 14px 16px;
	background: var(--brand-bg);
	border: 1px solid var(--brand-border);
	border-radius: 10px;
	font-size: 13.5px;
	color: var(--brand-text);
}

.isds-checkout-trust {
	margin: 0 0 14px;
	padding: 13px 16px;
	background: var(--superficie);
	border: 1px solid var(--inchiostro-30);
	border-radius: 10px;
}

.isds-checkout-trust p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--brand-text);
}


/* --------------------------------------------------------------------------
   7b. WIDGET / FORM DI RICERCA (fix bottone grigio)
   -------------------------------------------------------------------------- */
.search-form input[type="submit"],
.search-form button,
.wp-block-search__button,
form.search-form .search-submit {
	background-color: var(--brand-plum);
	border-color: var(--brand-plum);
	color: #ffffff;
}

.search-form input[type="submit"]:hover,
.wp-block-search__button:hover {
	background-color: var(--brand-plum-dark);
}


/* --------------------------------------------------------------------------
   9b. HOMEPAGE v2 (front-page.php — dal design approvato)
   -------------------------------------------------------------------------- */
.isds-home { display: block; }

.isds-sec { padding: 48px 0 8px; }

.isds-sec-title {
	margin: 0 0 8px;
	font-size: clamp(30px, 4.2vw, 44px);
	letter-spacing: -0.02em;
}

.isds-sec-sub {
	margin: 0 0 26px;
	color: var(--inchiostro-60);
	max-width: 62ch;
}

.isds-sec-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.isds-sec .isds-eyebrow { margin: 0 0 10px; }

/* Pillole CTA */
.isds-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-weight: 700;
	font-size: 15.5px;
	padding: 14px 26px;
	min-height: 48px;
	border-radius: 999px;
	text-decoration: none;
	transition: opacity 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.isds-pill:active { transform: scale(0.97); }
.isds-pill--ink { background: var(--inchiostro); color: var(--carta) !important; }
.isds-pill--ink:hover { opacity: 0.85; color: var(--carta); }
.isds-pill--ghost {
	background: transparent;
	color: var(--inchiostro) !important;
	box-shadow: inset 0 0 0 1.5px var(--linea);
}
.isds-pill--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--inchiostro-40); }
.isds-pill--sm { padding: 9px 18px; min-height: 40px; font-size: 14px; flex-shrink: 0; }

/* --- Hero 2 colonne su carta --- */
.isds-h-hero {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 36px;
	align-items: center;
	padding-top: 36px;
}

.isds-h-hero__title {
	margin: 0;
	font-size: clamp(40px, 6vw, 72px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.05;
}

.isds-h-hero__sub {
	margin: 16px 0 0;
	color: var(--inchiostro-60);
	font-size: 17px;
	max-width: 44ch;
}

.isds-h-hero__cta {
	display: flex;
	gap: 12px;
	margin-top: 28px;
	flex-wrap: wrap;
}

.isds-h-hero__trust {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 24px 0 0;
	font-size: 13.5px;
	color: var(--inchiostro-60);
}

.isds-h-hero__visual { position: relative; }

.isds-h-hero__photo {
	width: 100%;
	aspect-ratio: 4 / 4.4;
	border-radius: 24px;
	background: var(--foto-bg);
}

.isds-h-hero__quote {
	position: absolute;
	left: 16px;
	bottom: 16px;
	max-width: calc(100% - 32px);
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: var(--superficie);
	border-radius: var(--raggio-sm);
	box-shadow: 0 12px 32px rgba(37, 36, 34, 0.14);
	font-size: 13.5px;
	line-height: 1.35;
}

.isds-h-hero__quote em { font-style: normal; color: var(--inchiostro-60); }

.isds-h-hero__quote-ic {
	width: 38px;
	height: 38px;
	border-radius: 999px;
	background: var(--velo);
	color: var(--inchiostro);
	display: grid;
	place-items: center;
	flex-shrink: 0;
}

/* --- Griglia problemi 3x2, mai buchi --- */
.isds-prob-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

@media (max-width: 920px) { .isds-prob-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .isds-prob-grid { grid-template-columns: 1fr; } }

.isds-prob-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px 22px;
	background: var(--superficie);
	border-radius: var(--raggio);
	text-decoration: none;
	color: var(--inchiostro);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.isds-prob-card:hover {
	box-shadow: 0 14px 34px rgba(37, 36, 34, 0.12);
	transform: translateY(-3px);
	color: var(--inchiostro);
}

.isds-prob-card__ic {
	width: 42px;
	height: 42px;
	border-radius: 999px;
	background: var(--velo);
	color: var(--inchiostro);
	display: grid;
	place-items: center;
}

.isds-prob-card__t {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin-top: 4px;
}

.isds-prob-card__d { font-size: 13.5px; color: var(--inchiostro-60); }

.isds-prob-card--dark {
	background: var(--inchiostro);
	color: var(--carta);
}

.isds-prob-card--dark:hover { color: var(--carta); box-shadow: 0 14px 34px rgba(37, 36, 34, 0.22); }
.isds-prob-card--dark .isds-prob-card__ic { background: rgba(250, 249, 244, 0.14); color: var(--carta); }
.isds-prob-card--dark .isds-prob-card__d { color: rgba(250, 249, 244, 0.75); }

/* --- Tile categorie su tinte terra --- */
.isds-cat-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 14px;
}

@media (max-width: 980px) { .isds-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .isds-cat-grid { grid-template-columns: repeat(2, 1fr); } }

.isds-cat-tile {
	display: block;
	background: var(--superficie);
	border-radius: var(--raggio);
	overflow: hidden;
	text-decoration: none;
	color: var(--inchiostro);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.isds-cat-tile:hover {
	box-shadow: 0 14px 34px rgba(37, 36, 34, 0.12);
	transform: translateY(-3px);
	color: var(--inchiostro);
}

.isds-cat-tile__ph {
	display: block;
	aspect-ratio: 4 / 3.4;
}

.isds-tinta--argilla     { background: var(--tinta-argilla); }
.isds-tinta--rosa-antico { background: var(--tinta-rosa-antico); }
.isds-tinta--sabbia      { background: var(--tinta-sabbia); }
.isds-tinta--salvia      { background: var(--tinta-salvia); }
.isds-tinta--celadon     { background: var(--tinta-celadon); }
.isds-tinta--paglia      { background: var(--tinta-paglia); }

.isds-cat-tile__label {
	display: block;
	padding: 12px 14px;
	font-size: 15.5px;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-align: center;
}

/* --- Banda novita' su superficie --- */
.isds-band {
	background: var(--superficie);
	border: 1px solid var(--linea);
	border-radius: var(--raggio);
	padding: 36px 28px 20px;
	margin-top: 40px;
}

.isds-bestsellers ul.products li.product { border: 1px solid var(--linea); }

/* --- Fiducia 3 card --- */
.isds-trust3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

@media (max-width: 760px) { .isds-trust3 { grid-template-columns: 1fr; } }

.isds-trust3__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px 22px;
	background: var(--superficie);
	border-radius: var(--raggio);
}


/* --------------------------------------------------------------------------
   9. HOME PAGE (vecchia pagina statica — superata da front-page.php)
   -------------------------------------------------------------------------- */

/* --- Hero: inchiostro pieno, niente gradienti --- */
.isds-hero {
	text-align: center;
	padding: 64px 24px 56px;
	margin-bottom: 36px;
	background: var(--inchiostro);
	border-radius: var(--raggio);
	color: var(--carta);
}

.isds-hero__eyebrow {
	margin: 0 0 14px;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(241, 239, 230, 0.6);
}

.isds-hero__title {
	margin: 0 0 16px;
	font-size: clamp(30px, 5vw, 46px);
	line-height: 1.12;
	letter-spacing: -0.02em;
	font-weight: 800;
	color: #ffffff;
}

.isds-hero__sub {
	max-width: 620px;
	margin: 0 auto 28px;
	font-size: 17px;
	line-height: 1.6;
	color: rgba(241, 239, 230, 0.7);
}

.isds-hero__cta {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}

.isds-btn {
	display: inline-block;
	padding: 14px 30px;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.15s ease, transform 0.08s ease;
}

.isds-btn:active { transform: scale(0.98); }

/* Su fondo inchiostro il primario si inverte: carta con testo inchiostro */
.isds-btn--primary {
	background: var(--carta);
	color: var(--inchiostro) !important;
	font-weight: 500;
}

.isds-btn--primary:hover { opacity: 0.85; }

.isds-btn--ghost {
	border: 1px solid rgba(241, 239, 230, 0.45);
	color: var(--carta) !important;
	background: transparent;
	font-weight: 500;
}

.isds-btn--ghost:hover { background: rgba(241, 239, 230, 0.1); }

/* --- Barra fiducia --- */
.isds-trust {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin: 0 0 48px;
}

.isds-trust__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 16px;
	background: var(--brand-surface);
	border: 1px solid var(--brand-border);
	border-radius: 12px;
	text-align: center;
	font-size: 13px;
	color: var(--brand-muted);
}

.isds-trust__item strong { color: var(--brand-text); font-size: 14px; }
.isds-trust__icon { font-size: 26px; line-height: 1; margin-bottom: 6px; }

@media (max-width: 768px) {
	.isds-trust { grid-template-columns: repeat(2, 1fr); }
}

/* --- Titoli sezione --- */
.isds-section-title {
	margin: 48px 0 26px;
	text-align: center;
	font-size: 28px;
}

.isds-section-title::after {
	content: '';
	display: block;
	width: 64px;
	height: 3px;
	margin: 12px auto 0;
	background: var(--brand-gold);
	border-radius: 2px;
}

/* --- Griglia categorie (shortcode product_categories) --- */
.isds-cats ul.products li.product-category {
	text-align: center;
}

.isds-cats ul.products li.product-category a {
	display: block;
	padding-bottom: 12px;
}

.isds-cats ul.products li.product-category h2,
.isds-cats ul.products li.product-category .woocommerce-loop-category__title {
	font-size: 15px;
	color: var(--brand-plum);
}

.isds-cats ul.products li.product-category mark.count {
	background: transparent;
	color: var(--brand-muted);
	font-size: 12px;
}

/* --- Sezione promessa --- */
.isds-promise {
	margin: 56px 0 24px;
	padding: 44px 34px;
	background: var(--brand-surface);
	border: 1px solid var(--brand-border);
	border-radius: 18px;
}

.isds-promise > h2 {
	margin: 0 0 28px;
	text-align: center;
	font-size: 26px;
}

.isds-promise__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.isds-promise__item h3 {
	margin: 0 0 10px;
	font-size: 17px;
	color: var(--brand-plum);
}

.isds-promise__item p {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: var(--brand-muted);
}

@media (max-width: 768px) {
	.isds-promise__grid { grid-template-columns: 1fr; }
	.isds-hero { padding: 44px 18px 40px; }
}


/* --------------------------------------------------------------------------
   8. VERIFICA ETA' 18+ (gate all'ingresso)
   -------------------------------------------------------------------------- */
html.isds-age-locked {
	overflow: hidden;
}

.isds-age-gate {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(37, 36, 34, 0.92);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

/* Card di carta su velo d'inchiostro: calma, pulita, autorevole */
.isds-age-gate__card {
	width: 100%;
	max-width: 480px;
	padding: 42px 34px;
	text-align: center;
	color: var(--inchiostro);
	background: var(--superficie);
	border: 1px solid var(--bordo);
	border-radius: var(--raggio);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.isds-age-gate__logo {
	display: block;
	width: 40px;
	height: auto;
	margin: 0 auto 4px;
}

.isds-age-gate__title {
	margin: 0 0 14px;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--inchiostro);
}

.isds-age-gate__text {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--inchiostro-60);
}

.isds-age-gate__question {
	margin: 0 0 22px;
	font-size: 17px;
	font-weight: 700;
	color: var(--inchiostro);
}

.isds-age-gate__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.isds-age-gate__btn {
	padding: 14px 22px;
	min-height: 48px;
	font-size: 15.5px;
	font-weight: 700;
	font-family: 'Hanken Grotesk', sans-serif;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	transition: transform 0.08s ease, opacity 0.15s ease;
}

.isds-age-gate__btn:active {
	transform: scale(0.98);
}

.isds-age-gate__btn--yes {
	color: var(--carta);
	background: var(--inchiostro);
}

.isds-age-gate__btn--yes:hover {
	opacity: 0.85;
}

.isds-age-gate__btn--no {
	color: var(--inchiostro-60);
	background: transparent;
	border: 1px solid var(--inchiostro-30);
}

.isds-age-gate__btn--no:hover {
	color: var(--inchiostro);
	border-color: var(--inchiostro-60);
}

.isds-age-gate__legal {
	margin: 18px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--inchiostro-60);
}
