/* ------------------------------------------------------------------
   Isola Asteria – stile condiviso del sito (caricato dopo custom.css)
   Palette: blu notte + oro sabbia + avorio
------------------------------------------------------------------ */

:root {
    --primary-color: #463828 ;
    --primary-soft: #14204a;
    --accent-color: #b8a47e;
    --accent-dark: #8a744c;          /* oro leggibile su fondo chiaro */
    --dark-divider-color: #f6f1e8;   /* avorio: sostituisce il rosa del tema */
    --ivory: #f6f1e8;
    --ivory-deep: #ede5d6;
    --text-color: #4d5261;
    --divider-color: rgba(9, 19, 52, .12);
    --display-font: "Cormorant Garamond", "Times New Roman", serif;
    --shadow-sm: 0 2px 10px rgba(9, 19, 52, .06);
    --shadow-md: 0 12px 34px rgba(9, 19, 52, .10);
    --shadow-lg: 0 24px 60px rgba(9, 19, 52, .16);
    --radius: 14px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
    background-color: var(--ivory);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

p { line-height: 1.75em; }

::selection {
    background: var(--primary-color);
    color: #fff;
    filter: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 1000;
    padding: 10px 18px;
    border-radius: 0 0 10px 10px;
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 600;
    transition: top .2s;
}

.skip-link:focus { top: 0; color: var(--primary-color); }

/* ---------- Tipografia ---------- */
.section-title h1,
.section-title h2,
.page-header-box h1,
.display-serif {
    font-family: var(--display-font);
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.08em;
}

.section-title h1 { font-size: 78px; }
.section-title h2 { font-size: 50px; }
.about-us .section-title h2 { font-size: 34px; }
.page-header-box h1 { font-size: 76px; font-weight: 600; }

.section-title h1 span,
.section-title h2 span {
    font-style: italic;
    font-weight: 500;
}

.section-title h3 {
    font-size: 13px;
    letter-spacing: .22em;
    color: var(--accent-dark);
    padding-left: 44px;
    margin-bottom: 14px;
}

.section-title h3::before {
    width: 32px;
    height: 1px;
    border-radius: 0;
    background: var(--accent-dark);
}

/* Su sfondi scuri l'occhiello resta oro chiaro */
.hero .section-title h3,
.dark-section .section-title h3 { color: var(--accent-color); }
.hero .section-title h3::before,
.dark-section .section-title h3::before { background: var(--accent-color); }

.section-title p { margin-top: 16px; font-size: 17px; }

/* ---------- Pulsanti ---------- */
.btn-default {
    text-transform: none;
    font-weight: 600;
    letter-spacing: .01em;
    box-shadow: 0 6px 18px rgba(9, 19, 52, .12);
}

.btn-default:hover { color: #fff; }

/* ---------- Header ---------- */
header.main-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    background: linear-gradient(180deg, rgba(5, 9, 24, .55) 0%, rgba(5, 9, 24, 0) 100%);
    transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
}

header.main-header .navbar { transition: padding .35s ease; }

header.main-header.is-scrolled {
   background: linear-gradient(135deg, #1a1410 0%, #463828 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom-color: rgba(184, 164, 126, .25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

header.main-header.is-scrolled .navbar { padding: 14px 0; }

.navbar-brand img { transition: max-height .35s ease; max-height: 56px; }
header.main-header.is-scrolled .navbar-brand img { max-height: 44px; }

.main-menu ul li a {
    position: relative;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .04em;
    padding: 12px 18px !important;
}

.main-menu .nav-menu-wrapper > ul > li > a::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 4px;
    height: 1px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.main-menu .nav-menu-wrapper > ul > li > a:hover::after,
.main-menu .nav-menu-wrapper > ul > li > a.active::after { transform: scaleX(1); }

.main-menu .navbar-nav .nav-link.active,
.main-menu .navbar-nav .nav-link.show { color: var(--accent-color); }

.header-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.header-btn .btn-default { padding: 15px 56px 15px 26px; font-size: 15px; }

/* Carrello nell'header */
.shop-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 17px;
    transition: background .25s, color .25s, border-color .25s, transform .25s;
}

.shop-cart-link:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.shop-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--accent-color);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.shop-cart-count.is-empty { display: none; }

.shop-cart-count.bump { animation: cartBump .45s ease; }

@keyframes cartBump {
    0% { transform: scale(1); }
    40% { transform: scale(1.45); }
    100% { transform: scale(1); }
}

.shop-cart-mobile {
    margin-left: auto;
    margin-right: 12px;
    width: 40px;
    height: 40px;
    font-size: 15px;
}

.slicknav_btn { width: 40px; height: 40px; border-radius: 10px; }

.responsive-menu .slicknav_menu {
    background: var(--primary-color);
    border-top: 1px solid rgba(184, 164, 126, .25);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.slicknav_nav a { color: #fff; font-weight: 500; letter-spacing: .03em; }
.slicknav_nav a:hover,
.slicknav_nav a.active { color: var(--accent-color); background: transparent; }

/* ---------- Intestazione di pagina ---------- */
.page-header { padding: 230px 0 130px; }

/* .page-header::before {
    background: linear-gradient(180deg, rgba(5, 9, 24, .78) 0%, rgba(9, 19, 52, .55) 55%, rgba(9, 19, 52, .82) 100%);
    opacity: 1;
} */

.page-header-box h1 { margin-bottom: 14px; }

.page-header-box ol { justify-content: center; margin: 0; }

.page-header-box ol li.breadcrumb-item,
.page-header-box ol li.breadcrumb-item a {
    font-size: 14px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.page-header-box::after {
    content: '';
    display: block;
    width: 64px;
    height: 1px;
    margin: 22px auto 0;
    background: var(--accent-color);
}

/* ---------- Sezioni ---------- */
.bg-ivory { background: var(--ivory) !important; }

/* Mappa contatti */
.google-map { background: var(--ivory); padding: 0; }
.google-map .container-fluid { padding: 0; }
.google-map-iframe { height: auto !important; line-height: 0; }
.google-map-iframe iframe { display: block; width: 100%; height: 460px !important; border: 0; filter: grayscale(.35) contrast(1.05); }

/* Modulo contatti */
.contact-form {
    background: #fff;
    border: 1px solid var(--divider-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.contact-form .form-control {
    background: #fbf9f5;
    border: 1px solid var(--divider-color);
    border-radius: 10px;
}

.contact-form .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(184, 164, 126, .22);
    background: #fff;
}

.contact-form .form-label { text-transform: none; font-size: 14px; font-weight: 600; margin-bottom: 8px; }

.contact-info-list ul li { display: flex; align-items: center; gap: 16px; color: var(--primary-color); font-weight: 500; line-height: 1.45; }
.contact-info-list ul li i { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--ivory); color: var(--accent-dark); display: inline-flex; align-items: center; justify-content: center; }
.contact-info-list ul li small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-dark); }
.contact-info-list ul li a { color: var(--primary-color); }
.contact-info-list ul li a:hover { color: var(--accent-dark); }

/* ---------- Vetrina negozio in home ---------- */
.home-shop {
    background: #fff;
    padding: 110px 0;
}

.home-shop-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 44px;
}

.home-shop-head .section-title { margin-bottom: 0; max-width: 640px; }

.category-tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 300px;
    padding: 28px;
    border-radius: var(--radius);
    overflow: hidden;
    color: #fff;
    background: var(--primary-color);
    isolation: isolate;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform .8s ease;
}

.category-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(9, 19, 52, .05) 20%, rgba(9, 19, 52, .88) 100%);
    transition: background .4s;
}

.category-tile:hover img { transform: scale(1.06); }

.category-tile.no-image {
    background: radial-gradient(420px 260px at 85% 10%, rgba(184, 164, 126, .28), transparent 65%), linear-gradient(150deg, #0b1740 0%, #060c22 100%);
}

.category-tile.no-image::after { background: none; }

.category-tile .ct-icon {
    position: absolute;
    top: 26px;
    right: 28px;
    font-size: 84px;
    color: rgba(184, 164, 126, .22);
    transition: transform .5s ease, color .4s;
}

.category-tile:hover .ct-icon { transform: translateY(-4px) rotate(-6deg); color: rgba(184, 164, 126, .4); }
.category-tile:hover { color: #fff; }

.category-tile .ct-label {
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 6px;
}

.category-tile .ct-name {
    font-family: var(--display-font);
    font-size: 36px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
}

.category-tile .ct-arrow {
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .3s, color .3s, border-color .3s;
}

.category-tile:hover .ct-arrow {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 4px;
    white-space: nowrap;
    transition: gap .25s, color .25s;
}

.link-arrow:hover { gap: 16px; color: var(--accent-dark); }

/* Barra garanzie */
.trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #fff;
    border: 1px solid var(--divider-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    border-right: 1px solid var(--divider-color);
}

.trust-item:last-child { border-right: 0; }

.trust-item i {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ivory);
    color: var(--accent-dark);
    font-size: 17px;
}

.trust-item strong {
    display: block;
    font-size: 15px;
    color: var(--primary-color);
    line-height: 1.3;
}

.trust-item span { font-size: 13px; line-height: 1.4; display: block; }

/* ---------- Notifica (toast) ---------- */
.shop-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 9999;
    transform: translate(-50%, 160%);
    max-width: calc(100% - 32px);
    padding: 15px 24px;
    border-radius: 40px;
    background: var(--primary-color);
    border: 1px solid rgba(184, 164, 126, .4);
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: var(--shadow-lg);
    transition: transform .35s cubic-bezier(.2, .9, .3, 1.2);
}

.shop-toast.show { transform: translate(-50%, 0); }
.shop-toast.error { background: #8e2b22; border-color: transparent; }

.shop-toast a {
    color: var(--accent-color);
    font-weight: 600;
    margin-left: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
  background: linear-gradient(135deg, #1a1410 0%, #463828 100%);
    color: #c9cfdf;
    padding: 90px 0 0;
    font-size: 15px;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
    gap: 48px;
    padding-bottom: 60px;
}

.site-footer .footer-logo img { max-width: 190px; height: auto; margin-bottom: 22px; }

.site-footer p { line-height: 1.75; margin-bottom: 22px; color: #aab2c8; }

.site-footer h3 {
    font-family: var(--display-font);
    font-size: 23px;
    font-weight: 600;
    letter-spacing: .03em;
    color: #fff;
    margin-bottom: 22px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 12px; line-height: 1.5; }

.site-footer a { color: #c9cfdf; transition: color .25s, padding-left .25s; }
.site-footer ul.footer-nav a:hover { color: var(--accent-color); padding-left: 6px; }
.site-footer a:hover { color: var(--accent-color); }

.site-footer .footer-contact li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.site-footer .footer-contact i {
    flex-shrink: 0;
    width: 18px;
    margin-top: 4px;
    color: var(--accent-color);
    text-align: center;
}

.site-footer .footer-hours {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.site-footer .footer-hours .fh-title {
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.site-footer .footer-hours div { line-height: 1.7; }

.site-footer .footer-social { display: flex; gap: 12px; }

.site-footer .footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all .3s;
}

.site-footer .footer-social a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.site-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 26px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 13px;
    color: #8f98b2;
}

.site-footer .footer-bottom a { color: #c9cfdf; }

.site-footer .footer-pay {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    color: #c9cfdf;
}

.site-footer .footer-pay span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8f98b2; }

/* ---------- Riduci animazioni ---------- */
.reduce-motion .wow { visibility: visible !important; animation: none !important; }
.reduce-motion * { scroll-behavior: auto !important; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .main-menu ul li a { padding: 12px 12px !important; }
    .main-menu .nav-menu-wrapper > ul > li > a::after { left: 12px; right: 12px; }
    .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
    .trust-bar { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(2) { border-right: 0; }
    .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--divider-color); }
}

@media (max-width: 991px) {

    .navbar-brand img { max-height: 44px; }
    .section-title h1 { font-size: 56px; }
    .section-title h2 { font-size: 40px; }
    .page-header { padding: 170px 0 90px; }
    .page-header-box h1 { font-size: 54px; }
    .home-shop { padding: 70px 0; }
    .home-shop-head { flex-direction: column; align-items: flex-start; }
    .category-tile { min-height: 220px; }
}

@media (max-width: 767px) {
    .section-title h1 { font-size: 42px; }
    .section-title h2 { font-size: 32px; }
    .about-us .section-title h2 { font-size: 28px; }
    .page-header { padding: 140px 0 70px; }
    .page-header-box h1 { font-size: 40px; }
    .site-footer { padding-top: 60px; }
    .site-footer .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
    .site-footer .footer-bottom { flex-direction: column; text-align: center; }
    .trust-bar { grid-template-columns: 1fr; }
    .trust-item { border-right: 0; border-bottom: 1px solid var(--divider-color); }
    .trust-item:last-child { border-bottom: 0; }
    .category-tile .ct-name { font-size: 30px; }
    .google-map-iframe iframe { height: 340px !important; }
}
