/* Allegrini Amenities – brand styles and animations (from the approved prototype). */
:root {
	--aa-brand: #5CB1BC;
	--aa-teal: #2E7A84;
	--aa-deep: #1C4E55;
	--aa-ink: #1F2623;
	--aa-muted: #4A524F;
	--aa-sand: #F3EFE8;
	--aa-mist: #F2F9FA;
	--aa-soft: #E3F2F4;
	--aa-line: #EEEAE3;
	--aa-spring: cubic-bezier(.3, 1.35, .5, 1);
}

body { font-family: 'Varela Round', system-ui, sans-serif; color: var(--aa-ink); }
body a { color: var(--aa-teal); }
.screen-reader-text { position: absolute !important; left: -9999px; }

/* ---------- text helpers */
.aa-crumbs, .aa-crumbs a, .woocommerce-breadcrumb, .woocommerce-breadcrumb a { color: #5C6461 !important; font-size: 13px; }
.aa-nowrap .elementor-widget-container, .aa-nowrap p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.aa-warn .elementor-widget-container, .aa-warn:not(:has(.elementor-widget-container)) { background: #FBF1E4; border: 1px solid #E3C08F; border-radius: 12px; padding: 12px 16px; }
.aa-warn p { margin: 0 0 6px; } .aa-warn p:last-child { margin: 0; }
.aa-note .elementor-widget-container, .aa-note:not(:has(.elementor-widget-container)) { background: var(--aa-mist); border-radius: 14px; padding: 14px 18px; }
.aa-num .elementor-heading-title { width: 36px; height: 36px; border-radius: 999px; background: var(--aa-brand); display: flex; align-items: center; justify-content: center; }
.aa-num-soft .elementor-heading-title { width: 44px; height: 44px; background: var(--aa-soft); }
.aa-sq img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; background: #fff; }
.aa-italy-only { display: inline-block; font-size: 12px; color: #6B3F0A; background: #FBF1E4; border: 1px solid #E3C08F; border-radius: 999px; padding: 5px 10px; }
.aa-table { overflow-x: auto; border: 1px solid var(--aa-line); border-radius: 16px; }
.aa-table table { width: 100%; min-width: 640px; border-collapse: collapse; margin: 0; }
.aa-table th { background: var(--aa-mist); color: var(--aa-teal); font-weight: 400; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-align: left; padding: 12px 16px; border: 0; }
.aa-table td { border: 0; border-top: 1px solid var(--aa-line); padding: 14px 16px; font-size: 15px; }

/* ---------- buttons: white → azzurro, azzurro → white */
.aa-btn .elementor-button {
	font-family: 'Varela Round', sans-serif; border-radius: 999px; min-height: 48px; padding: 14px 24px; line-height: 1.2;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
	border: 1px solid transparent;
}
.aa-btn-a .elementor-button { background: var(--aa-brand); color: #0E2A2E; border-color: var(--aa-brand); }
.aa-btn-a .elementor-button:hover, .aa-btn-a .elementor-button:focus-visible { background: #fff; color: var(--aa-teal); border-color: var(--aa-brand); transform: translateY(-2px); }
.aa-btn-w .elementor-button, .aa-btn-pill .elementor-button { background: #fff; color: var(--aa-ink); border-color: #D6D2C4; }
.aa-btn-w .elementor-button:hover, .aa-btn-w .elementor-button:focus-visible,
.aa-btn-pill .elementor-button:hover, .aa-btn-pill .elementor-button:focus-visible { background: var(--aa-brand); color: #fff; border-color: var(--aa-brand); transform: translateY(-2px); }
.aa-btn-d .elementor-button { background: var(--aa-ink); color: #fff; }
.aa-btn-d .elementor-button:hover { background: var(--aa-brand); color: #fff; }
.aa-btn-sm .elementor-button { min-height: 40px; padding: 10px 16px; font-size: 14px; }
.aa-btn-row .elementor-button { width: 100%; justify-content: space-between; border-radius: 14px; }
.aa-btn-row .elementor-button-text { width: 100%; text-align: left; }
.aa-tabbtn.is-active .elementor-button, .aa-side.is-current .elementor-button { background: var(--aa-ink); color: #fff; border-color: var(--aa-ink); }
.aa-pill-dark .elementor-button { background: transparent; color: var(--aa-sand); border-color: #59625D; }
.aa-pill-dark.is-active .elementor-button { background: var(--aa-brand); color: #0E2A2E; border-color: var(--aa-brand); }
.aa-side .elementor-button { width: 100%; justify-content: flex-start; border-radius: 14px; }
.aa-side.is-current .elementor-button { background: var(--aa-soft); color: var(--aa-deep); border: 1.5px solid var(--aa-teal); }
.aa-vpill .elementor-button { background: var(--aa-sand); border-color: var(--aa-sand); cursor: default; }
.aa-vpill .elementor-button:hover { background: var(--aa-brand); color: #fff; border-color: var(--aa-brand); }

/* WooCommerce buttons follow the same rule */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt {
	font-family: 'Varela Round', sans-serif; background: var(--aa-brand); color: #0E2A2E; border: 1px solid var(--aa-brand); border-radius: 999px;
	padding: 14px 24px; font-weight: 400; transition: background-color .25s ease, color .25s ease, transform .2s ease;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: #fff; color: var(--aa-teal); border-color: var(--aa-brand); transform: translateY(-2px); }

/* ---------- tilt + zoom (cards, images, line cards) */
.aa-pcard, .aa-tcard, .aa-rimg, .woocommerce ul.products li.product {
	transition: transform .4s var(--aa-spring), box-shadow .3s ease, background-color .3s ease, border-color .3s ease;
}
.aa-pcard:hover, .aa-pcard:focus-within, .aa-tcard:hover, .aa-tcard:focus-within, .aa-rimg:hover,
.woocommerce ul.products li.product:hover, .woocommerce ul.products li.product:focus-within { transform: translateY(-3px) rotate(-.5deg); }
.aa-pcard:nth-child(2n):hover, .aa-tcard:nth-child(2n):hover, .aa-rimg:nth-child(2n):hover,
.woocommerce ul.products li.product:nth-child(2n):hover { transform: translateY(-3px) rotate(.5deg); }
.aa-pcard:hover, .woocommerce ul.products li.product:hover { box-shadow: 0 4px 10px rgba(92, 177, 188, .30); }
.aa-lcard:hover, .aa-lcard:focus-within { background-color: rgba(92, 177, 188, .14) !important; border-color: rgba(92, 177, 188, .45) !important; }
.aa-rimg .elementor-widget-container, .aa-rimg { overflow: hidden; border-radius: 22px; }
.aa-rimg img, .aa-tcard img, .aa-lcard img, .aa-zw img { transition: transform .6s ease; }
.aa-rimg:hover img, .aa-tcard:hover img, .aa-lcard:hover img, li.product:hover .aa-zw img { transform: scale(1.035); }
.aa-tcard .elementor-widget-image, .aa-lcard .elementor-widget-image { overflow: hidden; }
.aa-zw { display: block; overflow: hidden; border-radius: 14px; margin-bottom: 12px; }
.aa-zw img { margin: 0 !important; display: block; }

/* ---------- product cards (WooCommerce loop) */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(var(--aa-cols, 4), minmax(0, 1fr)); gap: 24px 20px; margin: 0; }
.woocommerce ul.products.columns-3 { --aa-cols: 3; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
	position: relative; width: auto !important; margin: 0 !important; float: none !important; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--aa-line); border-radius: 20px; padding: 14px 14px 18px;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; color: var(--aa-ink); text-decoration: none; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: 'Varela Round', sans-serif; font-size: 15px; font-weight: 400; line-height: 1.35; padding: 0 0 6px; color: var(--aa-ink); }
.woocommerce ul.products li.product .price { margin-top: auto; padding-right: 56px; color: var(--aa-ink); font-size: 17px; min-height: 44px; display: flex; align-items: center; }
.woocommerce ul.products li.product .price del { opacity: .55; margin-right: 6px; }
.woocommerce ul.products li.product .star-rating { font-size: 12px; color: var(--aa-teal); margin: 0 0 6px; }
.woocommerce ul.products li.product .onsale { background: var(--aa-brand); color: #0E2A2E; border-radius: 999px; min-height: 0; line-height: 1; padding: 6px 10px; font-size: 11px; top: 22px; left: 22px; right: auto; margin: 0; }
.woocommerce ul.products li.product .button {
	position: absolute; right: 14px; bottom: 18px; width: 44px; height: 44px; min-height: 44px; padding: 0 !important; margin: 0 !important;
	font-size: 0 !important; border-radius: 999px; display: flex; align-items: center; justify-content: center;
}
.woocommerce ul.products li.product .button::before {
	content: ""; width: 20px; height: 20px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 12H6.2z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 12H6.2z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.woocommerce ul.products li.product .added_to_cart { position: absolute; right: 64px; bottom: 30px; font-size: 12px; }
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist { position: absolute; top: 20px; right: 20px; margin: 0; z-index: 2; }

/* Hemp Care dark section: tiles show name and price on hover only */
.aa-hc .woocommerce ul.products li.product { padding: 0; border: 0; background: #2E3632; overflow: hidden; border-radius: 18px; }
.aa-hc .woocommerce ul.products li.product .aa-zw { margin: 0; border-radius: 0; }
.aa-hc .woocommerce ul.products li.product .woocommerce-loop-product__title,
.aa-hc .woocommerce ul.products li.product .price {
	position: absolute; left: 10px; right: 10px; background: rgba(255, 255, 255, .95); margin: 0; padding: 8px 12px;
	opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; min-height: 0; font-size: 13px;
}
.aa-hc .woocommerce ul.products li.product .woocommerce-loop-product__title { bottom: 46px; border-radius: 12px 12px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aa-hc .woocommerce ul.products li.product .price { bottom: 10px; border-radius: 0 0 12px 12px; padding-right: 12px; }
.aa-hc .woocommerce ul.products li.product .button, .aa-hc .woocommerce ul.products li.product .star-rating { display: none; }
.aa-hc .woocommerce ul.products li.product:hover .woocommerce-loop-product__title, .aa-hc .woocommerce ul.products li.product:hover .price,
.aa-hc .woocommerce ul.products li.product:focus-within .woocommerce-loop-product__title, .aa-hc .woocommerce ul.products li.product:focus-within .price { opacity: 1; transform: none; }
@media (hover: none) { .aa-hc .woocommerce ul.products li.product .woocommerce-loop-product__title, .aa-hc .woocommerce ul.products li.product .price { opacity: 1; transform: none; } }

/* ---------- tabs (home Hemp Care, Casa fragrances, Dispenser formats, Contacts forms) */
.aa-tabpanel { display: none !important; }
.aa-tabpanel.is-active { display: flex !important; }
.elementor-editor-active .aa-tabpanel { display: flex !important; }

/* ---------- hover: text grows and turns bold */
.aa-flinks .elementor-icon-list-text, .aa-flt li a, .aa-tl .elementor-heading-title {
	display: inline-block; transform-origin: left center; transition: transform .2s ease, color .2s ease;
}
.aa-flinks .elementor-icon-list-item:hover .elementor-icon-list-text, .aa-flt li a:hover, .aa-flt li a:focus-visible,
.aa-tl:hover .aa-tl-year .elementor-heading-title, .aa-tl:hover .aa-tl-title .elementor-heading-title { transform: scale(1.06); font-weight: 700; color: var(--aa-deep); }
.aa-tl { border-top: 2px solid var(--aa-brand); }
.aa-flt ul { list-style: none; margin: 0; padding: 0; }
.aa-flt li { padding: 4px 0; font-size: 14px; }
.aa-flt li a { color: var(--aa-ink); text-decoration: none; }
.aa-flt .children { padding-left: 14px; }
.aa-flt .count { color: #5C6461; font-size: 13px; }
.aa-flt .price_slider_wrapper .ui-slider .ui-slider-range, .aa-flt .price_slider_wrapper .ui-slider .ui-slider-handle { background: var(--aa-brand); }

/* ---------- header */
.aa-header .aa-logo img { height: 40px; width: auto; }
.aa-search { display: flex; align-items: center; gap: 6px; border: 1px solid #E2DDD3; border-radius: 999px; height: 44px; padding: 0 6px 0 14px; background: #fff; }
.aa-search input[type=search] { border: 0; outline: 0; font: inherit; font-size: 14px; width: 170px; background: transparent; padding: 0; }
.aa-search button { border: 0; background: none; color: var(--aa-ink); width: 34px; height: 34px; padding: 0; cursor: pointer; }
.aa-icons .elementor-widget-container, .aa-icons:not(:has(.elementor-widget-container)) { display: flex; gap: 2px; }
.aa-ico { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--aa-ink) !important; border-radius: 999px; transition: background-color .2s ease; }
.aa-ico:hover { background: var(--aa-soft); }
.aa-nav .elementor-nav-menu a { white-space: nowrap; }
.aa-lang .wpml-ls-legacy-dropdown, .aa-lang .wpml-ls { width: auto; font-size: 14px; }
@media (max-width: 1024px) { .aa-search input[type=search] { width: 110px; } }

/* ---------- hero slider: narrow white card */
.aa-hero .swiper-slide-contents { background: #fff; border-radius: 22px; padding: 28px 30px 30px; max-width: 380px; box-shadow: 0 10px 30px rgba(31, 38, 35, .12); }
.aa-hero .elementor-slide-button { border-radius: 999px; background: var(--aa-brand); color: #0E2A2E; border: 1px solid var(--aa-brand); font-family: 'Varela Round', sans-serif; transition: background-color .25s, color .25s; }
.aa-hero .elementor-slide-button:hover { background: #fff; color: var(--aa-teal); }
.aa-hero .swiper-pagination-bullet-active { background: var(--aa-brand); width: 34px; border-radius: 999px; }
@media (max-width: 767px) { .aa-hero .swiper-slide-contents { max-width: 92%; padding: 20px; } }

/* ---------- misc sections */
.aa-uspbar .elementor-icon-box-title { margin: 0 0 2px; }
.aa-dark .aa-eyebrow .elementor-heading-title { color: #9ED3DA; }
.aa-counter .elementor-counter-number-wrapper { justify-content: flex-start; }
.aa-counter .elementor-counter-title { text-align: left; }
.aa-woo .woocommerce { font-size: 15px; }
.aa-woo .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.aa-woo .woocommerce-MyAccount-navigation a { display: flex; min-height: 48px; align-items: center; padding: 0 18px; border: 1px solid #E2DDD3; border-radius: 14px; color: var(--aa-ink); text-decoration: none; }
.aa-woo .woocommerce-MyAccount-navigation .is-active a { background: var(--aa-soft); border-color: var(--aa-teal); color: var(--aa-deep); }
.aa-pdp-gallery .woocommerce-product-gallery__image img { border-radius: 22px; background: #fff; }
.aa-form .elementor-field-group .elementor-field { border-radius: 12px; border-color: #D6D2C4; min-height: 48px; }
.aa-form .elementor-button { border-radius: 999px; background: var(--aa-brand); color: #0E2A2E; }
.aa-form .elementor-button:hover { background: #fff; color: var(--aa-teal); box-shadow: inset 0 0 0 1px var(--aa-brand); }

@media (max-width: 1024px) { .woocommerce ul.products { --aa-cols: 2 !important; } }
@media (max-width: 480px) { .woocommerce ul.products { gap: 16px 12px; } }

@media (prefers-reduced-motion: reduce) {
	.aa-pcard, .aa-tcard, .aa-rimg, .woocommerce ul.products li.product, .aa-rimg img, .aa-tcard img, .aa-lcard img, .aa-zw img,
	.aa-flinks .elementor-icon-list-text, .aa-flt li a, .aa-tl .elementor-heading-title, .aa-btn .elementor-button { transition: none; }
	.aa-pcard:hover, .aa-tcard:hover, .aa-rimg:hover, .woocommerce ul.products li.product:hover,
	.aa-rimg:hover img, .aa-tcard:hover img, .aa-lcard:hover img, li.product:hover .aa-zw img { transform: none !important; }
}
