/*
Theme Name: Amsterdam Shop (Flatsome Child)
Description: Tema child di Flatsome per amsterdamshop.it - restyle allineato ai siti Ipergrow (modello growerline.com)
Author: Daniele Della Corte
Template: flatsome
Version: 1.0
*/

:root {
	--as-red: #da121a;
	--as-red-dark: #a80d13;
	--as-black: #111111;
	--as-cream: #faf8f3;
	--as-line: #e8e5df;
	--as-text: #2c2c2c;
	--as-muted: #6b6b6b;
	--as-icon-bg: #fdecec;
}

/* ===== PULSANTI STONDATI GLOBALI ===== */
.button, button, input[type="submit"], .add_to_cart_button, .single_add_to_cart_button,
.checkout-button, .woocommerce .button, .wp-block-button__link, .banner a.button {
	border-radius: 100px !important;
}

/* ===== HEADER ===== */
#top-bar .html_topbar_left span { margin: 0 12px; }
.header-main .search-form { width: 69%; }
.header-main .searchform .search-field { border-radius: 100px 0 0 100px; }
.header-main .searchform .ux-search-submit { border-radius: 0 100px 100px 0 !important; }
.header-bottom { background-color: #f1f1f1; }
.header-bottom-nav > li > a { font-size: 13.5px; }

/* ===== HERO ===== */
.as-hero h1 { font-size: 2.9em; line-height: 1.1; margin-bottom: .4em; }
.as-hero p { font-size: 1.05em; }
.promo-card {
	background: rgba(255, 255, 255, 0.07);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 28px;
	padding: 32px;
	position: relative;
	text-align: left;
}
.promo-tag {
	position: absolute; top: -12px; right: 24px;
	background: var(--as-red); color: #fff;
	font-size: 11px; font-weight: 700; padding: 5px 14px; border-radius: 100px;
	text-transform: uppercase; letter-spacing: .05em;
}
.promo-title { color: #fff !important; font-size: 1.35rem !important; margin-bottom: 6px !important; }
.promo-subtitle { color: rgba(255,255,255,.78); font-size: .9rem; margin-bottom: 18px; }
.promo-list { list-style: none; margin: 0 0 20px; padding: 0; }
.promo-list li { color: #fff; font-size: .88rem; margin: 0 0 6px; padding-left: 22px; position: relative; }
.promo-list li:before { content: "✓"; position: absolute; left: 0; color: var(--as-red); font-weight: 700; }
.promo-card .promo-cta {
	display: inline-block; padding: 12px 28px; background: var(--as-red); color: #fff;
	font-weight: 700; font-size: .9rem; border-radius: 100px; text-decoration: none; transition: all .25s;
}
.promo-card .promo-cta:hover { background: var(--as-red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(218,18,26,.3); }

/* ===== TRUST BAR ===== */
.trustbarok > .col > .col-inner {
	display: flex !important; justify-content: center !important; align-items: center !important;
	padding: 20px 10px !important; background-color: var(--as-cream) !important;
}
.trustbarok > .col + .col > .col-inner { border-left: 1px solid var(--as-line); }
.trust-item-custom { display: flex; align-items: center; gap: 14px; }
.trust-emoji {
	width: 48px; height: 48px; min-width: 48px; background: var(--as-icon-bg); border-radius: 14px;
	display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.trust-item-custom strong { display: block; font-size: 14px; font-weight: 600; color: var(--as-text); }
.trust-item-custom p { font-size: 12.5px; color: var(--as-muted); margin: 0; }
.trust-item-custom a { color: inherit; }

/* ===== TITOLI SEZIONI (come growerline) ===== */
.as-sec-title h2 { letter-spacing: .04em; margin-bottom: .2em; }
.as-sec-title h3.thin-font { color: var(--as-muted); font-size: 1.15em; }

/* ===== BLOCCHI CATEGORIA IN HOME ===== */
.as-cat-banner .banner { border-radius: 22px; overflow: hidden; }
.as-cat-banner h2 { font-size: 1.7em; margin-bottom: .3em; }
.as-cat-banner p { font-size: .95em; opacity: .9; }

/* ===== GRIGLIA CATEGORIE ===== */
.as-cat-grid .box-image { border-radius: 50%; background: #fff; border: 2px solid var(--as-line); transition: border-color .2s; }
.as-cat-grid .product-category:hover .box-image { border-color: var(--as-red); }
.as-cat-grid .box-image img { object-fit: contain; padding: 14%; }
.as-cat-grid .box-text h5 { font-size: .8em; letter-spacing: .05em; }
.as-cat-grid .box-text .count { display: none; }

/* ===== DIVENTA RIVENDITORE ===== */
.as-rivenditore h2 { font-size: 2.2em; line-height: 1.15; }
.as-rivenditore ul { list-style: none; margin: 0 0 1.4em; padding: 0; }
.as-rivenditore li { margin: 0 0 .5em; padding-left: 28px; position: relative; font-size: 1.02em; }
.as-rivenditore li:before { content: "✓"; position: absolute; left: 0; color: var(--as-red); font-weight: 700; }
.as-badge-red {
	display: inline-block; background: var(--as-red); color: #fff; font-size: 11px; font-weight: 700;
	padding: 5px 14px; border-radius: 100px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px;
}

/* ===== BRAND SLIDER ===== */
.as-brand-slider {
	overflow: hidden; padding: 32px 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
	mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}
.as-brand-track { display: flex; align-items: center; gap: 60px; width: max-content; animation: as-scroll 60s linear infinite; }
.as-brand-track:hover { animation-play-state: paused; }
.as-brand-slide { flex-shrink: 0; }
.as-brand-slide img { height: 80px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(100%); opacity: .5; transition: all .2s; }
.as-brand-slide:hover img { filter: grayscale(0%); opacity: 1; }
@keyframes as-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== RECENSIONI ===== */
.as-reviews iframe { width: 100% !important; max-width: 100% !important; border: 0 !important; border-radius: 16px; }

/* ===== SOTTOCATEGORIE NELLE PAGINE CATEGORIA ===== */
.as-subcategories-row {
	display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px 15px; justify-items: center;
	padding: 15px 0 25px; margin-bottom: 20px; border-bottom: 1px solid #eee;
}
.as-subcat-item {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	max-width: 150px; text-decoration: none; color: #333; transition: transform .2s;
}
.as-subcat-item:hover { transform: translateY(-3px); color: var(--as-red); }
.as-subcat-item img {
	width: 84px; height: 84px; object-fit: contain; border-radius: 50%; margin-bottom: 8px;
	border: 2px solid #eee; background: #fff; padding: 8px; transition: border-color .2s;
}
.as-subcat-item:hover img { border-color: var(--as-red); }
.as-subcat-item span { font-size: 13px; font-weight: 600; line-height: 1.3; }

/* ===== PAGINA IN OFFERTA ===== */
.gl-offerte-sezione { margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--as-line); }
.gl-offerte-sezione:last-child { border-bottom: none; }
.gl-offerte-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; gap: 16px; }
.gl-offerte-titolo { font-size: 1.5rem; font-weight: 700; color: var(--as-text); margin: 0; }
.gl-offerte-conteggio { font-size: .85rem; color: var(--as-muted); margin: 4px 0 0; }
.gl-offerte-vedi-tutti { font-size: .88rem; font-weight: 600; color: var(--as-red); white-space: nowrap; }
.gl-offerte-vedi-tutti:hover { color: var(--as-red-dark); }

/* ===== NEWSLETTER (prima del footer) ===== */
footer > hr { max-width: 800px; margin-left: auto; margin-right: auto; }
footer > hr + div[style*="text-align"] { max-width: 800px; margin: 0 auto; padding-top: 40px; }
.tnp-subscription { max-width: 500px; margin: 0 auto; }
.tnp-subscription form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tnp-subscription .tnp-field-firstname, .tnp-subscription .tnp-field-email { flex: 1; min-width: 180px; }
.tnp-subscription .tnp-field-firstname input, .tnp-subscription .tnp-field-email input {
	width: 100%; padding: 14px 20px !important; border-radius: 100px !important;
	border: 1.5px solid #d4d0c8 !important; background: #fff !important; font-size: .9rem; color: var(--as-text);
}
.tnp-subscription input:focus { outline: none; border-color: var(--as-red) !important; box-shadow: 0 0 0 3px rgba(218,18,26,.12); }
.tnp-subscription .tnp-field-button { text-align: center !important; width: 100%; }
.tnp-subscription .tnp-submit {
	padding: 14px 32px !important; background: var(--as-red) !important; color: #fff !important; font-weight: 700 !important;
	font-size: .9rem !important; border: none !important; border-radius: 100px !important; cursor: pointer;
}
.tnp-subscription .tnp-submit:hover { background: var(--as-red-dark) !important; }
.tnp-subscription .tnp-privacy-field { width: 100%; text-align: center; }
.tnp-subscription .tnp-privacy-field label { font-size: 12px; color: var(--as-muted); }

/* ===== TABLET ===== */
@media (max-width: 849px) {
	#top-bar { padding: 4px 0 !important; }
	#top-bar .html_nav_position_text_top > div { gap: 12px !important; font-size: 11px !important; justify-content: center; }
	.as-hero h1 { font-size: 2.1em; }
	.trustbarok > .col + .col > .col-inner { border-left: 0; }
	.as-subcategories-row { grid-template-columns: repeat(4, 1fr); }
}

/* ===== MOBILE ===== */
@media (max-width: 549px) {
	#top-bar .html_nav_position_text_top > div > span:nth-child(3),
	#top-bar .html_nav_position_text_top > div > span:nth-child(4) { display: none; }
	.as-hero h1 { font-size: 1.8em; }
	.trust-item-custom { gap: 10px; }
	.trust-emoji { width: 40px; height: 40px; min-width: 40px; font-size: 18px; }
	.trust-item-custom strong { font-size: 13px; }
	.trust-item-custom p { font-size: 11.5px; }
	.as-subcategories-row { grid-template-columns: repeat(3, 1fr); gap: 20px 12px; }
	.as-subcat-item img { width: 64px; height: 64px; }
	.as-subcat-item span { font-size: 11px; }
	.as-brand-slide img { height: 60px; max-width: 120px; }
	.as-brand-track { gap: 40px; }
	.gl-offerte-header { flex-direction: column; align-items: flex-start; }
	.gl-offerte-titolo { font-size: 1.2rem; }
	.as-rivenditore h2 { font-size: 1.6em; }
}

/* ===== RITOCCHI ===== */
#top-bar a { color: #fff; text-decoration: underline; }
.as-hero .text-box-content { font-size: 127%; }
.as-hero .text p { font-size: .95rem; }
@media (min-width: 550px) { .as-hero .text-box-content { font-size: 100%; } }
.header-bottom-nav > li > a { font-size: 13px; }
.header-bottom-nav.nav-divided > li { margin: 0 6px; }
.header-bottom-nav.nav-divided > li + li > a:after { left: -7px; }
.badge-inner.on-sale { background-color: var(--as-red); }
@media (max-width: 549px) {
	.product-small .box-text .button { font-size: .68em; padding: 0 1em; line-height: 2.2em; min-height: 2.2em; white-space: nowrap; }
}

/* ===== RECENSIONI (blocco home) ===== */
.as-rev { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: stretch; margin-top: 10px; }
.as-rev-summary {
	background: #fff; border: 1px solid var(--as-line); border-radius: 22px; padding: 28px 24px;
	text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.as-rev-logo { width: 150px; height: auto; margin-bottom: 14px; }
.as-rev-score { font-size: 3.4rem; font-weight: 700; line-height: 1; color: var(--as-text); }
.as-rev-score span { font-size: 1.2rem; color: var(--as-muted); font-weight: 400; }
.as-rev-stars { position: relative; display: inline-block; font-size: 1.5rem; letter-spacing: 2px; color: #e2ddd3; line-height: 1.2; margin: 8px 0 2px; }
.as-rev-stars span { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #f5a400; }
.as-rev-label { font-weight: 700; color: var(--as-text); margin-bottom: 6px; }
.as-rev-note { font-size: .85rem; color: var(--as-muted); margin: 0 0 16px; }
.as-rev-btn { margin: 0 0 10px !important; }
.as-rev-write { font-size: .82rem; color: var(--as-muted); text-decoration: underline; }
.as-rev-track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px;
	overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; -webkit-overflow-scrolling: touch;
}
.as-rev-track::-webkit-scrollbar { height: 6px; }
.as-rev-track::-webkit-scrollbar-thumb { background: #d9d4ca; border-radius: 6px; }
.as-rev-card {
	scroll-snap-align: start; background: #fff; border: 1px solid var(--as-line); border-radius: 18px;
	padding: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--as-text); transition: transform .2s, box-shadow .2s;
}
.as-rev-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.07); color: var(--as-text); }
.as-rev-card-top { display: flex; align-items: center; gap: 8px; }
.as-rev-card-stars { color: #f5a400; letter-spacing: 1px; }
.as-rev-card-vote { font-size: .8rem; color: var(--as-muted); }
.as-rev-card-title { font-size: 1rem; line-height: 1.35; }
.as-rev-card-text {
	font-size: .9rem; color: #555; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.as-rev-card-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid #f0ece4; display: flex; justify-content: space-between; font-size: .82rem; }
.as-rev-card-name { font-weight: 700; }
.as-rev-card-date { color: var(--as-muted); }
.as-rev-card-ok { font-size: .75rem; color: #2e8540; font-weight: 600; }

/* ===== FOOTER (come growerline) ===== */
.footer-wrapper { background: var(--as-cream); }
.footer-2 .widget-title { letter-spacing: .04em; }
.as-footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.as-footer-links ul { list-style: none; padding: 0; margin: 10px 0 0; }
.as-footer-links li { margin: 0 0 9px; }
.as-footer-links li a { color: #fff; opacity: .92; }
.as-footer-links li a:hover { opacity: 1; text-decoration: underline; }
.as-footer-badge { margin-top: 16px; }
.as-footer-badge img { border-radius: 8px; }
.gl-contatti { display: flex; flex-direction: column; gap: 14px; }
.gl-contatti-item { display: flex; align-items: flex-start; gap: 12px; line-height: 1.6; }
.gl-contatti-item img, .gl-contatti-item .as-ico { margin-top: 3px; flex-shrink: 0; width: 24px; height: 24px; }
.gl-contatti-item .as-ico { font-size: 19px; line-height: 24px; text-align: center; }
.gl-contatti-item p { margin: 0; }
.gl-contatti-item a { color: inherit; text-decoration: none; }
.gl-contatti-item a:hover { text-decoration: underline; }
.footer-2 .product_list_widget li { border-color: rgba(255,255,255,.2); }
.absolute-footer { padding: 18px 0 22px; }
.absolute-footer .footer-secondary { float: none !important; margin-bottom: 8px; }
.absolute-footer .copyright-footer { font-size: .85rem; }

@media (max-width: 849px) {
	.as-rev { grid-template-columns: 1fr; }
	.as-rev-track { grid-auto-columns: 70%; }
}
@media (max-width: 549px) {
	.as-rev-track { grid-auto-columns: 85%; }
	.as-footer-links { gap: 32px; }
}
@media (max-width: 549px) {
	footer > hr + div[style*="text-align"], .footer-wrapper > .tnp-subscription { padding-left: 16px; padding-right: 16px; }
}
/* Ricerca centrata tra logo e pulsanti, come growerline */
.header-main .nav-left { justify-content: center; }
.header-main .searchform .flex-row { border-radius: 100px; overflow: hidden; }
.header-main .searchform .search-field { border-radius: 100px 0 0 100px !important; }
.header-main .searchform .flex-row { border: 1px solid #ddd; background: #f9f9f9; }
.header-main .searchform .search-field, .header-main .searchform .ux-search-submit { border: 0 !important; background: transparent !important; box-shadow: none !important; }
.header-main .searchform .ux-search-submit { color: #333 !important; }
