/* Sabato d'Inventario · bianco, ciano, nero. Il ciano chiaro solo su fondi e etichette con testo scuro; i pulsanti usano il petrolio, che regge il bianco */
:root {
	--cyan: #29C8EA;
	--petrol: #0E7F99;
	--petrol-dark: #0A5F73;
	--ink: #181717;
	--muted: #5d6173;
	--line: #E3E3E3;
	--soft: #eee;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; }
body {
	margin: 0px;
	background: #fff;
	color: var(--ink);
	font: 400 1rem/1.7 'Poppins', Helvetica, Arial, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--petrol-dark); }
h1, h2, h3 { margin: 0px; font-weight: 500; line-height: 1.25; text-wrap: balance; }
p { margin: 0px 0px 1em; }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.clearfix::after { content: ''; display: table; clear: both; }
.text-center { text-align: center; }
.skip-to { position: absolute; left: -9999px; top: 0px; z-index: 50; padding: 10px 16px; background: var(--cyan); color: var(--ink); }
.skip-to:focus { left: 0px; }
.page-width { width: 100%; max-width: 1280px; margin: 0px auto; padding: 0px 1.25rem; }
.page-width--narrow { max-width: 820px; }

/* barre in cima */
.announcement-bar { background: #050505; color: #fff; text-align: center; }
.announcement-bar p { margin: 0px; padding: 10px 16px; color: #00eff0; font-size: 0.95rem; text-transform: uppercase; }
.announcement-bar__accent { color: #e7fd00; }
.notice-bar { background: #2d1d1d; color: #fff; text-align: center; }
.notice-bar p { margin: 0px; padding: 9px 16px; font-size: 0.82rem; }

/* testata con ricerca */
.site-header { border-bottom: 1px solid #060c2e; background: #fff; }
.header-row { display: flex; align-items: center; gap: 1.75rem; padding-top: 18px; padding-bottom: 18px; }
.site-header__logo img { width: 200px; }
.search-bar { display: flex; flex: 1; border: 1px solid var(--ink); }
.search-bar input { flex: 1; min-width: 0px; padding: 8px 12px; border: 0px; font: inherit; font-size: 1rem; }
.search-bar button { display: grid; place-items: center; width: 44px; border: 0px; background: none; color: var(--ink); cursor: pointer; }
.search-bar svg { width: 22px; height: 22px; }
.header-icons { display: flex; align-items: center; gap: 0.5rem; }
.header-icons a, .toggleMenu { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); }
.header-icons svg { width: 24px; height: 24px; }
.toggleMenu { border: 0px; background: none; cursor: pointer; }
.toggleMenu__lines, .toggleMenu__lines::before, .toggleMenu__lines::after { display: block; width: 24px; height: 2px; background: var(--ink); }
.toggleMenu__lines { position: relative; }
.toggleMenu__lines::before, .toggleMenu__lines::after { content: ''; position: absolute; left: 0px; }
.toggleMenu__lines::before { top: -7px; }
.toggleMenu__lines::after { top: 7px; }
.header-navigation { border-top: 1px solid var(--line); }
.header-navigation ul { display: flex; flex-wrap: wrap; gap: 0px 2rem; margin: 0px auto; padding-top: 10px; padding-bottom: 10px; list-style: none; }
.header-navigation a { display: block; padding: 10px 0px; color: var(--ink); text-decoration: none; }
.header-navigation a[aria-current] { color: var(--petrol); text-decoration: underline; }

.btn {
	display: inline-block;
	padding: 10px 18px;
	border: 1px solid var(--petrol);
	background: var(--petrol);
	color: #fff;
	font: 500 1rem/1.4 'Poppins', Helvetica, Arial, sans-serif;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s;
}
.btn:hover { background: var(--petrol-dark); }
.btn--secondary { background: #fff; color: var(--petrol-dark); }
.btn--secondary:hover { background: #e9f8fc; }
.btn--large { padding: 14px 26px; font-size: 1.05rem; }

/* fascia d'apertura */
.promo-banner { position: relative; min-height: 488px; overflow: hidden; background: #3b1d5c; }
.promo-banner { background: #050505; }
.promo-banner__img { position: absolute; top: 0px; right: 0px; width: 55%; height: 100%; object-fit: cover; }
.promo-banner__slant { position: absolute; top: 0px; bottom: 0px; right: 30%; width: 30%; background: linear-gradient(100deg, #050505 0%, #050505 50%, rgba(5, 5, 5, 0) 50.5%); }
.promo-banner__inner { position: relative; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); padding-top: 70px; padding-bottom: 70px; color: #fff; }
.promo-banner__kicker { display: inline-block; margin-bottom: 18px; padding: 4px 10px; background: var(--cyan); color: var(--ink); font-size: 0.85rem; font-weight: 500; }
.promo-banner__title { max-width: 12ch; margin-bottom: 18px; font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 800; line-height: 1.05; text-transform: uppercase; }
.promo-banner__text { max-width: 480px; margin-bottom: 24px; }

.section-pad { padding: 70px 1.25rem; }
.section-pad--tight { padding-top: 10px; }
.section-header__title { margin-bottom: 36px; font-size: clamp(1.5rem, 2.6vw, 2rem); text-align: center; }
.section-note { max-width: 720px; margin: 26px auto 0px; color: var(--muted); text-align: center; }
.grid { display: grid; gap: 30px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); max-width: 960px; margin: 0px auto; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid > * { min-width: 0px; }

.grid-product { text-align: center; }
.grid-product__image { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 22px; }
.grid-product__title { margin-bottom: 8px; font-size: 1.3rem; font-weight: 400; }
.grid-product__meta { min-height: 4.8em; color: var(--muted); font-size: 0.92rem; }

.collection-item__image { width: 100%; aspect-ratio: 1; object-fit: cover; }
.collection-item__title { margin-top: 14px; font-size: 1.2rem; text-align: center; }

/* ricerca d'esempio */
.search-demo { padding: 70px 0px; background: var(--soft); }
.search-demo__input { display: block; width: 100%; max-width: 520px; margin: 26px auto 30px; padding: 12px 14px; border: 1px solid var(--ink); font: inherit; }
.inventory-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0px; padding: 0px; list-style: none; }
.inventory-item { padding: 18px 20px; border-top: 4px solid var(--cyan); background: #fff; }
.inventory-item p { margin: 0px 0px 4px; font-size: 0.92rem; }
.inventory-item__place { font-size: 1.05rem !important; font-weight: 600; }
.inventory-item__where { color: var(--muted); }
.inventory-item__date { margin-top: 8px !important; }
.inventory-empty { text-align: center; color: var(--muted); }

/* tessere con etichetta */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.photo-tile { position: relative; min-width: 0px; }
.photo-tile--wide, .tile--wide { grid-column: span 2; }
.photo-tile__img { width: 100%; height: 360px; object-fit: cover; }
.photo-tile__label { position: absolute; left: 50%; bottom: 30px; min-width: 220px; padding: 10px 18px; background: var(--cyan); color: var(--ink); font-weight: 500; text-align: center; transform: translateX(-50%); text-transform: uppercase; }

/* carte barrate */
.crossed-zone { padding: 70px 0px; border-top: 1px solid var(--line); }
.crossed-card { padding: 24px; border: 1px solid var(--line); }
.crossed-card__no { font-size: 1.08rem; font-weight: 500; }
.crossed-card s { text-decoration-color: #c4122f; text-decoration-thickness: 2px; }
.crossed-card p:last-child { margin: 0px; color: var(--muted); font-size: 0.92rem; }
.weak-box { max-width: 820px; margin: 36px auto 0px; padding: 18px 22px; background: #fffbd6; border-left: 4px solid #e7fd00; }
.weak-box p { margin: 0px; }

/* domande */
.faq-columns { columns: 2; column-gap: 60px; }
.faq-columns__item { break-inside: avoid; margin-bottom: 30px; }
.faq-columns__item h3 { margin-bottom: 6px; font-size: 1.08rem; }
.faq-columns__item p { margin: 0px; color: var(--muted); }

.signup-strip { background: var(--soft); }
.signup-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; }
.signup-strip__title { margin-bottom: 4px; font-size: 1.35rem; font-weight: 600; }
.signup-strip p { margin: 0px; }

/* pagine */
.page-banner { margin-bottom: 50px; padding: 50px 0px 40px; background: var(--soft); border-bottom: 4px solid var(--cyan); }
.breadcrumb { margin-bottom: 10px; color: var(--muted); font-size: 0.88rem; }
.breadcrumb a { color: var(--muted); }
.page-banner__title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; overflow-wrap: break-word; }
.page-banner__lead { max-width: 680px; margin: 12px 0px 0px; color: var(--muted); font-size: 1.1rem; }
.rte { padding-bottom: 70px; }
.rte h2 { margin: 36px 0px 12px; font-size: 1.4rem; }
.template-page-legal .rte h2 { font-size: 1.1rem; font-weight: 600; }
.rte-image { width: 100%; aspect-ratio: 55 / 26; object-fit: cover; margin: 30px 0px; }
.price-tag { padding: 14px 18px; border: 2px solid var(--cyan); }
.callout { padding: 18px 22px; background: var(--soft); border-left: 4px solid var(--cyan); }

/* modulo a frase */
.madlib { margin: 10px 0px 40px; padding: 30px; border: 1px solid var(--line); }
.madlib__sentence { font-size: 1.35rem; line-height: 2.4; }
.madlib input[type='text'], .madlib input[type='email'], .madlib select { min-width: 12ch; max-width: 100%; padding: 2px 6px; border: 0px; border-bottom: 2px solid var(--petrol); background: #f3fbfd; color: var(--ink); font: inherit; font-size: 1.15rem; }
.madlib [aria-invalid='true'] { border-bottom-color: #c4122f; background: #fff1f3; }
.madlib__hidden { display: none; }
.madlib__consent { font-size: 0.95rem; }
.form-errors { margin-bottom: 20px; padding: 16px 20px; border: 2px solid #c4122f; }
.form-errors__title { margin: 0px 0px 6px; font-weight: 600; }
.form-errors ul { margin: 0px; padding-left: 20px; }
.madlib-done { margin: 10px 0px 40px; padding: 30px; border: 2px solid var(--cyan); font-size: 1.25rem; }

/* piè di pagina */
.site-footer { border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding-top: 60px; padding-bottom: 50px; }
.footer-col--brand img { width: 200px; margin-bottom: 18px; }
.footer-col--brand p { color: var(--muted); }
.footer-links { margin: 0px; padding: 0px; list-style: none; columns: 2; column-gap: 30px; }
.footer-links li { margin-bottom: 18px; break-inside: avoid; }
.footer-links a, .footer-cookie-btn { color: var(--muted); text-transform: uppercase; font-size: 0.92rem; }
.footer-cookie-btn { padding: 0px; border: 0px; background: none; font-family: inherit; text-decoration: underline; cursor: pointer; }
.footer-bottom { padding: 40px 0px; background: var(--soft); color: var(--muted); font-size: 0.88rem; }
.footer-bottom p { margin: 0px 0px 6px; }

/* finestrella cookie */
.cookie-popup { position: fixed; left: 20px; bottom: 20px; z-index: 70; width: min(380px, calc(100% - 40px)); padding: 22px; background: #fff; border: 1px solid var(--ink); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18); font-size: 0.92rem; }
.cookie-popup__title { margin-bottom: 6px; font-weight: 600; font-size: 1.05rem; }
.cookie-popup__settings { display: grid; gap: 6px; margin-bottom: 12px; }
.cookie-popup__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-popup .btn { padding: 8px 14px; font-size: 0.9rem; }

@media screen and (max-width: 989px) {
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.tile-grid { grid-template-columns: 1fr 1fr; }
	.tile--wide { grid-column: span 2; }
}

@media screen and (max-width: 749px) {
	.header-row { flex-wrap: wrap; gap: 12px; }
	.site-header__logo img { width: 150px; }
	.search-bar { order: 3; flex-basis: 100%; }
	.header-icons { margin-left: auto; }
	.promo-banner__slant { left: 0px; width: 100%; background: rgba(5, 5, 5, 0.82); }
	.section-pad { padding-top: 50px; padding-bottom: 50px; }
	.grid--3, .tile-grid, .faq-columns, .footer-top { grid-template-columns: 1fr; columns: 1; }
	.tile--wide { grid-column: auto; }
	.photo-tile__img { height: 260px; }
	.footer-links { columns: 1; }
	.madlib { padding: 20px 16px; }
	.madlib__sentence { font-size: 1.15rem; line-height: 2.2; }
	.madlib input[type='text'], .madlib input[type='email'], .madlib select { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* titoli a sinistra dove il blocco ha un ritmo da elenco */
.section-header__title--left { text-align: left; }

@media screen and (max-width: 749px) {
	.notice-bar { display: none; }
	.promo-banner__img { width: 100%; }
	.promo-banner__slant { right: 0px; width: 100%; background: rgba(5, 5, 5, 0.8); }
}
