:root {
	--blu: #14314f;
	--blu-scuro: #0d2237;
	--oro: #c8a24b;
	--oro-scuro: #b08d38;
	--bg: #f4f6f9;
	--card: #ffffff;
	--testo: #1c2b39;
	--muted: #6b7a89;
	--bordo: #e4e9ef;
	--verde: #2e9e5b;
	--rosso: #d9534f;
	--radius: 14px;
	--shadow: 0 6px 24px rgba(20,49,79,.08);
	--shadow-lg: 0 18px 50px rgba(20,49,79,.18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: var(--bg);
	color: var(--testo);
	line-height: 1.55;
}
h1, h2, h3, h4, .logo-text { font-family: 'Poppins', sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Promo bar */
.promo-bar {
	background: var(--blu-scuro);
	color: #dfe7ee;
	text-align: center;
	font-size: 13px;
	padding: 8px 16px;
}
.promo-bar strong { color: var(--oro); }
.promo-bar i { color: var(--oro); margin-right: 4px; }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: #fff; box-shadow: 0 2px 12px rgba(20,49,79,.06); }
.header-inner { display: flex; align-items: center; gap: 22px; padding: 14px 20px; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo-mark {
	width: 44px; height: 44px; border-radius: 11px; flex: 0 0 auto;
	background: linear-gradient(135deg, var(--blu) 0%, var(--blu-scuro) 100%);
	color: var(--oro);
	font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 24px;
	display: flex; align-items: center; justify-content: center;
}
.logo-text { font-weight: 700; font-size: 20px; line-height: 1; color: var(--blu); display: flex; flex-direction: column; }
.logo-text small { font-family: 'Inter'; font-weight: 500; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.search-box { flex: 1; position: relative; max-width: 560px; }
.search-box i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input {
	width: 100%; padding: 12px 16px 12px 44px;
	border: 1.5px solid var(--bordo); border-radius: 999px;
	font-size: 15px; font-family: inherit; background: var(--bg);
	transition: border-color .15s, box-shadow .15s;
}
.search-box input:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 3px rgba(200,162,75,.15); background: #fff; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.header-link {
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	background: none; border: none; cursor: pointer; position: relative;
	color: var(--blu); font-size: 11px; font-weight: 600; padding: 6px 12px; border-radius: 10px;
	font-family: inherit;
}
.header-link i { font-size: 20px; }
.header-link:hover { background: var(--bg); }
.cart-count {
	position: absolute; top: -2px; right: 4px;
	background: var(--oro); color: #fff; font-style: normal; font-weight: 700;
	font-size: 11px; min-width: 19px; height: 19px; padding: 0 5px;
	border-radius: 999px; display: flex; align-items: center; justify-content: center;
	transform: scale(0); transition: transform .2s;
}
.cart-count.show { transform: scale(1); }

/* Nav categorie */
.catnav { border-top: 1px solid var(--bordo); background: #fff; overflow-x: auto; }
.catnav-inner { display: flex; gap: 4px; padding: 4px 20px; }
.catnav a {
	white-space: nowrap; padding: 11px 14px; font-size: 14px; font-weight: 600;
	color: var(--muted); border-bottom: 3px solid transparent; transition: color .15s, border-color .15s;
}
.catnav a i { margin-right: 6px; }
.catnav a:hover, .catnav a.active { color: var(--blu); border-color: var(--oro); }

/* Hero */
.hero { background: linear-gradient(135deg, #14314f 0%, #0d2237 100%); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 56px 20px; }
.hero-badge {
	display: inline-flex; align-items: center; gap: 7px;
	background: rgba(200,162,75,.16); border: 1px solid rgba(200,162,75,.4);
	color: var(--oro); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: 44px; line-height: 1.08; margin: 0 0 16px; font-weight: 800; }
.hero p { font-size: 17px; opacity: .85; margin: 0 0 26px; max-width: 480px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 30px; margin-top: 34px; }
.hero-trust strong { display: block; font-family: 'Poppins'; font-size: 24px; color: var(--oro); }
.hero-trust span { font-size: 13px; opacity: .75; }
.hero-card { position: relative; }
.hero-card img { border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.hero-card-badge {
	position: absolute; top: 16px; left: 16px; z-index: 2;
	background: var(--oro); color: var(--blu-scuro); font-weight: 700; font-size: 13px;
	padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow);
}

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
	border: none; border-radius: 11px; padding: 13px 22px;
	font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600; transition: transform .1s, box-shadow .15s, background .15s;
}
.btn-primary { background: linear-gradient(135deg, var(--oro) 0%, var(--oro-scuro) 100%); color: #fff; box-shadow: 0 6px 16px rgba(200,162,75,.35); }
.btn-primary:hover { box-shadow: 0 9px 22px rgba(200,162,75,.45); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-block { width: 100%; justify-content: center; }
.btn-outline { background: #fff; color: var(--blu); border: 1.5px solid var(--bordo); }
.btn-outline:hover { border-color: var(--oro); color: var(--oro-scuro); }

/* Perks */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: -34px auto 0; position: relative; z-index: 5; }
.perk { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; }
.perk i { font-size: 24px; color: var(--oro); }
.perk strong { display: block; font-size: 15px; }
.perk span { font-size: 13px; color: var(--muted); }

/* Catalogo */
.catalogo-head { margin: 54px 0 18px; }
.catalogo-head h2 { font-size: 30px; margin: 0 0 18px; color: var(--blu); }
.catalogo-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
	background: #fff; border: 1.5px solid var(--bordo); color: var(--muted);
	padding: 8px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer;
	transition: all .15s; font-family: inherit;
}
.chip:hover { border-color: var(--oro); color: var(--blu); }
.chip.active { background: var(--blu); border-color: var(--blu); color: #fff; }
.sort-select {
	padding: 9px 14px; border: 1.5px solid var(--bordo); border-radius: 10px;
	background: #fff; font-size: 14px; font-family: inherit; color: var(--testo); cursor: pointer;
}
.result-info { color: var(--muted); font-size: 14px; margin: 16px 0; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding-bottom: 20px; }
.card {
	background: var(--card); border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow); display: flex; flex-direction: column;
	transition: transform .15s, box-shadow .15s; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 4/3; background: #eef1f5; overflow: hidden; cursor: pointer; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-badge {
	position: absolute; top: 12px; left: 12px;
	background: var(--blu); color: #fff; font-size: 11px; font-weight: 700;
	padding: 5px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em;
}
.card-badge.offerta { background: var(--rosso); }
.card-badge.novita { background: var(--verde); }
.card-fav {
	position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
	background: rgba(255,255,255,.92); border: none; cursor: pointer; color: var(--muted);
	display: flex; align-items: center; justify-content: center; transition: color .15s, transform .1s;
}
.card-fav:hover { color: var(--rosso); }
.card-fav.on { color: var(--rosso); }
.card-out { position: absolute; inset: 0; background: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; }
.card-out span { background: var(--testo); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 8px; }
.card-body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--oro-scuro); font-weight: 700; margin-bottom: 5px; }
.card-name { font-size: 15px; font-weight: 600; line-height: 1.35; margin: 0 0 8px; min-height: 40px; }
.card-rating { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.card-rating i { color: var(--oro); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-price { display: flex; flex-direction: column; }
.card-price .now { font-family: 'Poppins'; font-size: 20px; font-weight: 700; color: var(--blu); }
.card-price .now small { font-size: 12px; font-weight: 500; color: var(--muted); }
.card-price .old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.add-btn {
	width: 44px; height: 44px; border-radius: 11px; border: none; cursor: pointer; flex: 0 0 auto;
	background: linear-gradient(135deg, var(--oro) 0%, var(--oro-scuro) 100%); color: #fff; font-size: 16px;
	transition: transform .1s, box-shadow .15s;
}
.add-btn:hover { box-shadow: 0 6px 14px rgba(200,162,75,.4); }
.add-btn:active { transform: scale(.92); }
.add-btn:disabled { background: #cbd3db; cursor: not-allowed; box-shadow: none; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty i { font-size: 46px; margin-bottom: 14px; color: #c3ccd6; }

/* Newsletter */
.newsletter { background: #fff; margin-top: 50px; border-top: 1px solid var(--bordo); }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 40px 20px; flex-wrap: wrap; }
.newsletter h3 { margin: 0 0 6px; font-size: 22px; color: var(--blu); }
.newsletter p { margin: 0; color: var(--muted); }
.newsletter-form { display: flex; gap: 10px; flex: 1; max-width: 460px; min-width: 260px; }
.newsletter-form input { flex: 1; padding: 13px 16px; border: 1.5px solid var(--bordo); border-radius: 11px; font-size: 15px; font-family: inherit; }
.newsletter-form input:focus { outline: none; border-color: var(--oro); }

/* Footer */
.footer { background: var(--blu-scuro); color: #b9c6d3; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; padding: 50px 20px 34px; }
.footer h4 { color: #fff; font-size: 15px; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 9px; }
.footer ul li a { color: #b9c6d3; font-size: 14px; transition: color .15s; }
.footer ul li a:hover { color: var(--oro); }
.footer-desc { font-size: 14px; line-height: 1.7; color: #92a2b1; }
.logo-footer .logo-text { color: #fff; }
.logo-footer .logo-mark { background: #fff; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; transition: background .15s; }
.socials a:hover { background: var(--oro); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 13px; color: #7f909f; text-align: center; }

/* Overlay + drawer + modal */
.overlay { position: fixed; inset: 0; background: rgba(13,34,55,.5); opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 50; }
.overlay.show { opacity: 1; visibility: visible; }

.cart-drawer {
	position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw;
	background: #fff; z-index: 60; display: flex; flex-direction: column;
	transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1); box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--bordo); }
.cart-header h3 { margin: 0; font-size: 19px; color: var(--blu); }
.icon-btn { background: var(--bg); border: none; width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 17px; color: var(--muted); transition: background .15s; }
.icon-btn:hover { background: var(--bordo); }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 10px; }
.cart-empty i { font-size: 44px; color: #cbd5df; margin-bottom: 14px; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--bordo); }
.cart-item img { width: 66px; height: 66px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.cart-item-price { font-size: 13px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--bordo); border-radius: 9px; margin-top: 8px; overflow: hidden; }
.qty button { width: 30px; height: 30px; border: none; background: #fff; cursor: pointer; font-size: 15px; color: var(--blu); }
.qty button:hover { background: var(--bg); }
.qty span { width: 34px; text-align: center; font-size: 14px; font-weight: 600; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-item-total { font-weight: 700; color: var(--blu); font-family: 'Poppins'; }
.remove-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; transition: color .15s; }
.remove-btn:hover { color: var(--rosso); }
.cart-footer { padding: 20px; border-top: 1px solid var(--bordo); }
.cart-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.cart-row.small { font-size: 13px; color: var(--muted); }
.cart-row.total { font-size: 18px; padding-top: 10px; border-top: 1px dashed var(--bordo); margin-top: 6px; }
.cart-row.total strong { font-family: 'Poppins'; color: var(--blu); }
.cart-note { text-align: center; font-size: 12px; color: var(--muted); margin: 10px 0 0; }

.modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(13,34,55,.55); opacity: 0; visibility: hidden; transition: opacity .2s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-box { background: #fff; border-radius: 18px; max-width: 760px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); transform: translateY(14px); transition: transform .25s; }
.modal.open .modal-box { transform: translateY(0); }

.qv { display: grid; grid-template-columns: 1fr 1fr; }
.qv-media { position: relative; background: #eef1f5; }
.qv-media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.qv-body { padding: 28px; position: relative; }
.qv-close { position: absolute; top: 16px; right: 16px; }
.qv-cat { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--oro-scuro); font-weight: 700; }
.qv-body h3 { font-size: 24px; margin: 8px 0 10px; color: var(--blu); }
.qv-rating { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.qv-rating i { color: var(--oro); }
.qv-desc { color: #46586a; font-size: 15px; margin-bottom: 20px; }
.qv-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.qv-price .now { font-family: 'Poppins'; font-size: 32px; font-weight: 700; color: var(--blu); }
.qv-price .old { font-size: 18px; color: var(--muted); text-decoration: line-through; }
.qv-actions { display: flex; gap: 12px; align-items: center; }

.checkout-box { padding: 30px; }
.checkout-box h3 { margin: 0 0 6px; font-size: 24px; color: var(--blu); }
.checkout-box .sub { color: var(--muted); margin: 0 0 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-bottom: 14px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin-bottom: 5px; }
.form-field input, .form-field textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--bordo); border-radius: 10px; font-size: 15px; font-family: inherit; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--oro); }
.checkout-summary { background: var(--bg); border-radius: 12px; padding: 16px; margin: 6px 0 20px; }
.checkout-summary .cart-row.total { border-top: 1px dashed #d5dde5; }

.success-box { padding: 46px 34px; text-align: center; }
.success-box .tick { width: 84px; height: 84px; line-height: 84px; border-radius: 50%; background: rgba(46,158,91,.12); color: var(--verde); font-size: 40px; margin: 0 auto 18px; }
.success-box h3 { font-size: 26px; color: var(--blu); margin: 0 0 8px; }
.success-box p { color: var(--muted); margin: 0 0 8px; }
.order-code { display: inline-block; background: var(--bg); border: 1px dashed var(--bordo); border-radius: 10px; padding: 10px 20px; font-family: 'Poppins'; font-weight: 700; color: var(--blu); font-size: 18px; margin: 14px 0 22px; }

/* Toast */
.toast {
	position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(24px);
	background: var(--blu-scuro); color: #fff; padding: 13px 22px; border-radius: 12px;
	font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 80;
	opacity: 0; visibility: hidden; transition: all .3s; display: flex; align-items: center; gap: 10px;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast i { color: var(--oro); }

/* Responsive */
@media (max-width: 1000px) {
	.grid { grid-template-columns: repeat(3, 1fr); }
	.perks { grid-template-columns: repeat(2, 1fr); }
	.hero-inner { grid-template-columns: 1fr; }
	.hero-card { display: none; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
	.search-box { order: 3; flex-basis: 100%; max-width: none; }
	.header-inner { flex-wrap: wrap; }
	.hero h1 { font-size: 32px; }
	.grid { grid-template-columns: repeat(2, 1fr); }
	.qv { grid-template-columns: 1fr; }
	.qv-media img { min-height: 220px; }
	.card-name { min-height: 0; }
	.header-link span { display: none; }
}
@media (max-width: 460px) {
	.grid { grid-template-columns: 1fr 1fr; gap: 14px; }
	.perks { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.form-row { grid-template-columns: 1fr; }
	.hero-trust { gap: 18px; }
}
