/* ==========================================================================
   E-Commerce Public — Glass Ultra 3D (adattato per vetrina pubblica)
   Fonts: Playfair Display (heading) + Inter (body)
   Breakpoints: 320px / 768px / 1024px
   ========================================================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --ec-font-heading: 'Playfair Display', Georgia, serif;
    --ec-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --ec-color-primary: var(--color-primario, #1a1a2e);
    --ec-color-accent: var(--color-accento, #c9a96e);
    --ec-color-accent-light: var(--color-secondario, #d4b97a);
    --ec-color-text: #333;
    --ec-color-text-light: #6b6b7b;
    --ec-color-bg: linear-gradient(135deg, #e8f4fd 0%, #f0f4ff 50%, #f5f0ff 100%);
    --ec-color-white: #ffffff;
    --ec-max-width: 1200px;
    --ec-radius: 20px;
    --ec-radius-sm: 12px;
    --ec-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.ecommerce-public {
    font-family: var(--ec-font-body);
    color: var(--ec-color-text);
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f4ff 50%, #f5f0ff 100%);
    background-attachment: fixed;
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

.ecommerce-main {
    min-height: 60vh;
}

/* --- Glass Ultra 3D — Token identici a liquid-glass.css ERP (SPEC §2.1-2.4) --- */
.glass-card {
    position: relative;
    background: linear-gradient(165deg,
        rgba(255, 255, 255, 0.62) 0%,
        rgba(255, 255, 255, 0.42) 40%,
        rgba(240, 245, 255, 0.38) 100%);
    backdrop-filter: blur(48px) saturate(200%) brightness(1.08);
    -webkit-backdrop-filter: blur(48px) saturate(200%) brightness(1.08);
    border-top: 2px solid rgba(255, 255, 255, 0.85);
    border-left: 1.5px solid rgba(255, 255, 255, 0.60);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: var(--ec-radius);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.10),
        0 20px 60px rgba(0, 0, 0, 0.08),
        inset 0 2px 1px rgba(255, 255, 255, 1),
        inset 2px 0 1px rgba(255, 255, 255, 0.6),
        inset 0 -2px 6px rgba(0, 0, 0, 0.05),
        inset -1px 0 4px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

/* Pseudo-elemento speculare (SPEC §2.2) */
.glass-card::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(
        ellipse at 30% 30%,
        rgba(255, 255, 255, 0.50) 0%,
        rgba(255, 255, 255, 0.15) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

/* Pseudo-elemento caustica (SPEC §2.3) */
.glass-card::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(
        ellipse at 70% 70%,
        rgba(200, 220, 255, 0.18) 0%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
}

/* Z-index figli — contenuti SOPRA pseudo-elementi (SPEC §2.4) */
.glass-card > * {
    position: relative;
    z-index: 1;
}

/* Glass Ultra Standard — mobile <=480px: senza pseudo-elementi */
@media (max-width: 480px) {
    .glass-card::before,
    .glass-card::after {
        display: none;
    }
    .glass-card {
        backdrop-filter: blur(32px) saturate(180%) brightness(1.05);
        -webkit-backdrop-filter: blur(32px) saturate(180%) brightness(1.05);
        box-shadow:
            0 1px 3px rgba(0, 0, 0, 0.10),
            0 8px 24px rgba(0, 0, 0, 0.08),
            inset 0 2px 1px rgba(255, 255, 255, 0.9),
            inset 0 -1px 3px rgba(0, 0, 0, 0.04);
    }
}

/* --- Section Title --- */
.ec-section-title {
    font-family: var(--ec-font-heading);
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--ec-color-primary);
}

/* ==========================================================================
   HEADER — Glass Ultra 3D (effetto wow)
   ========================================================================== */
.ec-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(165deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(255, 255, 255, 0.82) 40%,
        rgba(240, 245, 255, 0.78) 100%);
    backdrop-filter: blur(48px) saturate(200%) brightness(1.08);
    -webkit-backdrop-filter: blur(48px) saturate(200%) brightness(1.08);
    border-top: 2px solid rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 8px 32px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.ec-header__container {
    max-width: var(--ec-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.ec-header__logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform var(--ec-transition);
}

.ec-header__logo:hover {
    transform: scale(1.02);
}

.ec-header__logo-img {
    height: 48px;
    width: auto;
    border-radius: 10px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(var(--color-accento-rgb, 201, 169, 110), 0.15);
    transition: box-shadow var(--ec-transition);
}

.ec-header__logo:hover .ec-header__logo-img {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(var(--color-accento-rgb, 201, 169, 110), 0.25);
}

.ec-header__logo-text {
    font-family: var(--ec-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ec-color-primary);
    letter-spacing: 0.02em;
    background: linear-gradient(135deg,
        var(--ec-color-primary) 0%,
        var(--ec-color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ec-header__nav {
    display: none;
}

.ec-header__menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.ec-header__menu-link {
    text-decoration: none;
    color: var(--ec-color-text);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color var(--ec-transition);
    padding: 0.5rem 0;
}

.ec-header__menu-link:hover {
    color: var(--ec-color-accent);
}

.ec-header__menu-item {
    position: relative;
}

.ec-header__submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: -1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--ec-radius-sm);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
    min-width: 200px;
    list-style: none;
}

.ec-header__menu-item:hover .ec-header__submenu {
    display: block;
}

.ec-header__submenu li a {
    display: block;
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    color: var(--ec-color-text);
    font-size: 0.85rem;
    transition: background var(--ec-transition);
}

.ec-header__submenu li a:hover {
    background: rgba(var(--color-accento-rgb, 201, 169, 110), 0.1);
}

.ec-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ec-header__action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ec-color-text);
    padding: 0.5rem;
    border-radius: 50%;
    transition: background var(--ec-transition);
}

.ec-header__action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Hamburger */
.ec-header__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.ec-header__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ec-color-primary);
    border-radius: 2px;
    transition: var(--ec-transition);
}

.ec-header__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.ec-header__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.ec-header__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.ec-header__mobile-overlay {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    z-index: 999;
}

.ec-header__mobile-overlay.active {
    display: block;
}

.ec-header__mobile-menu {
    list-style: none;
    padding: 2rem 1.5rem;
}

.ec-header__mobile-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ec-header__mobile-menu li a {
    display: block;
    padding: 1rem 0;
    text-decoration: none;
    color: var(--ec-color-primary);
    font-family: var(--ec-font-heading);
    font-size: 1.2rem;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.ec-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    max-height: 700px;
    overflow: hidden;
}

/* Animated shimmer overlay per effetto premium */
.ec-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 55%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: heroShimmer 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

@keyframes heroShimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.ec-hero__carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.ec-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.ec-hero__slide--active {
    opacity: 1;
}

.ec-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.ec-hero__slide--default {
    background: linear-gradient(135deg, var(--ec-color-primary) 0%, #16213e 50%, var(--ec-color-primary) 100%);
}

.ec-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.4) 100%);
}

.ec-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--ec-color-white);
}

.ec-hero__title {
    font-family: var(--ec-font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: heroFadeUp 1s ease-out;
}

.ec-hero__subtitle {
    animation: heroFadeUp 1s ease-out 0.2s both;
}

.ec-hero__cta-wrap {
    animation: heroFadeUp 1s ease-out 0.4s both;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ec-hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 300;
    max-width: 600px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.ec-hero__cta {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--ec-color-accent) 0%, var(--ec-color-accent-light) 100%);
    color: var(--ec-color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 50px;
    transition: all var(--ec-transition);
    box-shadow:
        0 4px 16px rgba(var(--color-accento-rgb, 201, 169, 110), 0.4),
        0 8px 32px rgba(var(--color-accento-rgb, 201, 169, 110), 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.ec-hero__cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
}

.ec-hero__cta:hover::before {
    left: 100%;
}

.ec-hero__cta:hover {
    background: linear-gradient(135deg, var(--ec-color-accent-light) 0%, var(--ec-color-accent) 100%);
    transform: translateY(-3px);
    box-shadow:
        0 6px 20px rgba(var(--color-accento-rgb, 201, 169, 110), 0.5),
        0 12px 40px rgba(var(--color-accento-rgb, 201, 169, 110), 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ec-hero__dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.ec-hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all var(--ec-transition);
}

.ec-hero__dot--active {
    background: var(--ec-color-white);
    border-color: var(--ec-color-white);
}

/* ==========================================================================
   TRUST BAR
   ========================================================================== */
.ec-trust {
    padding: 2rem 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(240, 245, 255, 0.6) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1);
}

.ec-trust__container {
    max-width: var(--ec-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.ec-trust__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ec-trust__icon {
    color: var(--ec-color-accent);
    filter: drop-shadow(0 2px 4px rgba(var(--color-accento-rgb, 201, 169, 110), 0.3));
}

.ec-trust__label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ec-color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   CATEGORIE
   ========================================================================== */
.ec-categorie {
    padding: 4rem 0;
}

.ec-categorie__container {
    max-width: var(--ec-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ec-categorie__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.ec-categorie__card {
    cursor: pointer;
    transition: transform var(--ec-transition), box-shadow var(--ec-transition);
}

.ec-categorie__card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.1),
        0 16px 40px rgba(0, 0, 0, 0.10),
        0 32px 60px rgba(var(--color-accento-rgb, 201, 169, 110), 0.08);
}

.ec-categorie__img {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: var(--ec-radius) var(--ec-radius) 0 0;
}

.ec-categorie__img--placeholder {
    background: linear-gradient(135deg, var(--ec-color-primary), #2d2d5e);
}

.ec-categorie__info {
    padding: 1.25rem;
}

.ec-categorie__info h3 {
    font-family: var(--ec-font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.ec-categorie__link {
    color: var(--ec-color-accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   PRODOTTI IN EVIDENZA
   ========================================================================== */
.ec-prodotti-ev {
    padding: 4rem 0;
    background: var(--ec-color-white);
}

.ec-prodotti-ev__container {
    max-width: var(--ec-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ec-prodotti-ev__scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    scrollbar-width: none;
}

.ec-prodotti-ev__scroll::-webkit-scrollbar {
    display: none;
}

.ec-prodotti-ev__card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    transition: transform var(--ec-transition);
}

.ec-prodotti-ev__card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.1),
        0 16px 40px rgba(0, 0, 0, 0.08),
        0 24px 48px rgba(var(--color-accento-rgb, 201, 169, 110), 0.06);
}

.ec-prodotti-ev__img {
    height: 260px;
    overflow: hidden;
    border-radius: var(--ec-radius) var(--ec-radius) 0 0;
}

.ec-prodotti-ev__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ec-transition);
}

.ec-prodotti-ev__card:hover .ec-prodotti-ev__img img {
    transform: scale(1.05);
}

.ec-prodotti-ev__info {
    padding: 1rem;
}

.ec-prodotti-ev__name {
    font-family: var(--ec-font-heading);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.ec-prodotti-ev__price {
    font-weight: 600;
    color: var(--ec-color-accent);
    font-size: 1.1rem;
}

/* ==========================================================================
   BANNER
   ========================================================================== */
.ec-banner {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ec-banner__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.ec-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(26, 26, 46, 0.85) 0%,
        rgba(26, 26, 46, 0.6) 100%);
}

.ec-banner__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 1.5rem;
    color: var(--ec-color-white);
}

.ec-banner__title {
    font-family: var(--ec-font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.ec-banner__subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.ec-banner__cta {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 2px solid var(--ec-color-accent);
    color: var(--ec-color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 50px;
    transition: all var(--ec-transition);
}

.ec-banner__cta:hover {
    background: var(--ec-color-accent);
    color: var(--ec-color-white);
}

/* ==========================================================================
   STORYTELLING
   ========================================================================== */
.ec-storytelling {
    padding: 4rem 0;
}

.ec-storytelling__container {
    max-width: var(--ec-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ec-storytelling__block {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.ec-storytelling__block--reverse {
    flex-direction: row-reverse;
}

.ec-storytelling__img {
    flex: 1;
    border-radius: var(--ec-radius);
    overflow: hidden;
}

.ec-storytelling__img img {
    width: 100%;
    height: auto;
    display: block;
}

.ec-storytelling__text {
    flex: 1;
    padding: 2rem;
}

.ec-storytelling__text h2 {
    font-family: var(--ec-font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.ec-storytelling__body {
    color: var(--ec-color-text-light);
    line-height: 1.8;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.ec-testimonials {
    padding: 4rem 0;
    background: var(--ec-color-white);
}

.ec-testimonials__container {
    max-width: var(--ec-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ec-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.ec-testimonials__card {
    padding: 2rem;
}

.ec-testimonials__stars {
    color: var(--ec-color-accent);
    margin-bottom: 1rem;
    display: flex;
    gap: 2px;
}

.ec-testimonials__quote {
    font-style: italic;
    color: var(--ec-color-text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.ec-testimonials__author {
    font-style: normal;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ec-color-primary);
}

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.ec-newsletter {
    padding: 4rem 0;
}

.ec-newsletter__container {
    max-width: 640px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.ec-newsletter__title {
    font-family: var(--ec-font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.ec-newsletter__subtitle {
    color: var(--ec-color-text-light);
    margin-bottom: 2rem;
}

.ec-newsletter__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ec-newsletter__input-group {
    display: flex;
    gap: 0;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ec-newsletter__input {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-right: none;
    font-size: 0.95rem;
    font-family: var(--ec-font-body);
    outline: none;
}

.ec-newsletter__input:focus {
    border-color: var(--ec-color-accent);
}

.ec-newsletter__btn {
    padding: 0.875rem 2rem;
    background: var(--ec-color-accent);
    color: var(--ec-color-white);
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background var(--ec-transition);
    font-family: var(--ec-font-body);
}

.ec-newsletter__btn:hover {
    background: var(--ec-color-accent-light);
}

.ec-newsletter__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--ec-color-text-light);
    text-align: left;
}

.ec-newsletter__consent input[type="checkbox"] {
    margin-top: 3px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.ec-footer {
    background: linear-gradient(165deg,
        var(--ec-color-primary) 0%,
        #0d0d1a 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 0;
    position: relative;
}

.ec-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--ec-color-accent) 50%,
        transparent 100%);
    opacity: 0.5;
}

.ec-footer__container {
    max-width: var(--ec-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ec-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

.ec-footer__title {
    font-family: var(--ec-font-heading);
    font-size: 1.3rem;
    color: var(--ec-color-white);
    margin-bottom: 0.5rem;
}

.ec-footer__desc {
    font-size: 0.9rem;
    opacity: 0.7;
}

.ec-footer h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ec-color-accent);
    margin-bottom: 1rem;
}

.ec-footer ul {
    list-style: none;
}

.ec-footer ul li {
    margin-bottom: 0.5rem;
}

.ec-footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--ec-transition);
}

.ec-footer ul li a:hover {
    color: var(--ec-color-accent);
}

.ec-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ==========================================================================
   PAGINE STATICHE
   ========================================================================== */
.ec-page {
    padding: 3rem 0;
}

.ec-page__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ec-page__title {
    font-family: var(--ec-font-heading);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--ec-color-primary);
}

.ec-page__block {
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.ec-page__img {
    width: 100%;
    height: auto;
    border-radius: var(--ec-radius-sm);
    margin-bottom: 1.5rem;
}

.ec-page__text {
    line-height: 1.8;
    color: var(--ec-color-text-light);
}

.ec-page__legal h2 {
    font-family: var(--ec-font-heading);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--ec-color-primary);
}

.ec-page__legal h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--ec-color-primary);
}

.ec-page__legal p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--ec-color-text-light);
}

.ec-page__legal ul {
    margin: 0.5rem 0 1rem 1.5rem;
    color: var(--ec-color-text-light);
}

.ec-page__legal ul li {
    margin-bottom: 0.4rem;
}

.ec-page__legal a {
    color: var(--ec-color-accent);
}

/* --- Alert --- */
.ec-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--ec-radius-sm);
    margin-bottom: 1.5rem;
}

.ec-alert--success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

/* --- Form --- */
.ec-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ec-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ec-form__group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ec-color-text);
}

/* Glass Input — incavo 3D identico a ERP (SPEC §2.5) */
.ec-form__input,
.ec-form__textarea {
    padding: 0.75rem 1rem;
    border-radius: var(--ec-radius-sm);
    font-family: var(--ec-font-body);
    font-size: 16px; /* Anti-zoom iOS */
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.60) 0%,
        rgba(255, 255, 255, 0.45) 100%);
    border-top: 1.5px solid rgba(255, 255, 255, 0.80);
    border-left: 1.5px solid rgba(255, 255, 255, 0.50);
    border-right: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        inset 0 3px 6px rgba(0, 0, 0, 0.07),
        inset 0 -1px 0 rgba(255, 255, 255, 0.85),
        inset 1px 0 0 rgba(255, 255, 255, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    outline: none;
    transition: all 0.2s ease;
}

.ec-form__input:focus,
.ec-form__textarea:focus {
    border-color: var(--ec-color-accent);
    box-shadow:
        inset 0 3px 6px rgba(0, 0, 0, 0.07),
        inset 0 -1px 0 rgba(255, 255, 255, 0.85),
        0 0 0 3px rgba(var(--color-accento-rgb, 201, 169, 110), 0.15),
        0 4px 16px rgba(var(--color-accento-rgb, 201, 169, 110), 0.12);
}

.ec-form__textarea {
    resize: vertical;
    min-height: 120px;
}

.ec-form__submit {
    align-self: flex-start;
    padding: 0.75rem 2rem;
    background: var(--ec-color-accent);
    color: var(--ec-color-white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--ec-transition);
    font-family: var(--ec-font-body);
}

.ec-form__submit:hover {
    background: var(--ec-color-accent-light);
    transform: translateY(-1px);
}

/* ==========================================================================
   MANUTENZIONE
   ========================================================================== */
.ec-manutenzione {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
}

.ec-manutenzione__card {
    text-align: center;
    padding: 4rem 3rem;
    max-width: 500px;
}

.ec-manutenzione__icon {
    color: var(--ec-color-accent);
    margin-bottom: 1.5rem;
}

.ec-manutenzione__title {
    font-family: var(--ec-font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--ec-color-primary);
}

.ec-manutenzione__msg {
    color: var(--ec-color-text-light);
    font-size: 1.1rem;
}

/* ==========================================================================
   RESPONSIVE — Tablet (768px+)
   ========================================================================== */
@media (min-width: 768px) {
    .ec-header__nav {
        display: block;
    }

    .ec-header__hamburger {
        display: none;
    }

    .ec-hero {
        height: 80vh;
    }
}

/* ==========================================================================
   RESPONSIVE — Desktop (1024px+)
   ========================================================================== */
@media (min-width: 1024px) {
    .ec-hero {
        height: 85vh;
        max-height: 800px;
    }

    .ec-categorie__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ec-prodotti-ev__card {
        flex: 0 0 300px;
    }
}

/* ==========================================================================
   RESPONSIVE — Mobile piccolo (< 480px)
   ========================================================================== */
@media (max-width: 479px) {
    .ec-header__container {
        height: 64px;
        padding: 0 1rem;
    }

    .ec-header__logo-img {
        height: 36px;
    }

    .ec-header__logo-text {
        font-size: 1.15rem;
    }

    .ec-hero {
        height: 60vh;
        min-height: 320px;
    }

    .ec-trust__container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .ec-categorie__grid {
        grid-template-columns: 1fr;
    }

    .ec-prodotti-ev__card {
        flex: 0 0 220px;
    }

    .ec-storytelling__block,
    .ec-storytelling__block--reverse {
        flex-direction: column;
    }

    .ec-testimonials__grid {
        grid-template-columns: 1fr;
    }

    .ec-newsletter__input-group {
        flex-direction: column;
        border-radius: var(--ec-radius-sm);
    }

    .ec-newsletter__input {
        border-right: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: var(--ec-radius-sm) var(--ec-radius-sm) 0 0;
    }

    .ec-newsletter__btn {
        border-radius: 0 0 var(--ec-radius-sm) var(--ec-radius-sm);
    }

    .ec-footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ec-page__title {
        font-size: 1.6rem;
    }
}
