/* ============================================================
   ROLOI - Orologi Personalizzati Stampati in 3D
   Stile Dark Luxury ispirato a Richard Mille
   ============================================================ */

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

img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    draggable: false;
}

:root {
    --black: #000000;
    --dark: #0a0a0a;
    --dark-gray: #111111;
    --medium-gray: #1a1a1a;
    --light-gray: #333333;
    --text-gray: #888888;
    --text-light: #cccccc;
    --white: #ffffff;
    --gold: #c8a86e;
    --gold-light: #d4b87a;
    --gold-dark: #a08050;
    --red-accent: #e63946;
    --font-primary: 'Helvetica Neue', 'Arial', sans-serif;
    --font-display: 'Helvetica Neue', 'Arial', sans-serif;
    --transition-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s var(--transition-smooth);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background-color: var(--gold);
    color: var(--black);
}

/* Scrollbar personalizzata */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--light-gray);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}
/* #endregion */

/* #region Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-weight: 200;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 100;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 100;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 0.08em;
}

.subtitle {
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-gray);
}

.label {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
}

.body-text {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-light);
}
/* #endregion */

/* #region Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s var(--transition-smooth), visibility 0.8s;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    color: var(--gold);
    animation: pulse-gold 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-line {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 20px auto;
    animation: loader-expand 1.5s ease-in-out infinite;
}

@keyframes pulse-gold {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes loader-expand {
    0%, 100% { width: 30px; opacity: 0.3; }
    50% { width: 80px; opacity: 1; }
}
/* #endregion */

/* #region Header / Navigazione */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.5s var(--transition-smooth);
    background: transparent;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 50px;
    border-bottom: 1px solid rgba(200, 168, 110, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 1px;
    background: var(--white);
    transition: all 0.4s var(--transition-smooth);
}

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

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

.menu-label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
}

.brand-name {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-name:hover {
    color: var(--gold);
}

.brand-logo {
    width: 1.8em;
    height: 1.8em;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    background-color: var(--gold);
    -webkit-mask: url('../img/theta-logo.png') center/contain no-repeat;
    mask: url('../img/theta-logo.png') center/contain no-repeat;
    transition: background-color 0.3s;
}

.brand-name:hover .brand-logo {
    background-color: var(--gold-light);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 1001;
}

/* --- User icon link --- */
.header-user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--white);
    transition: color 0.3s ease;
}

.header-user-link:hover {
    color: var(--gold);
}

.header-user-icon {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-user-name {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-link {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
}

.header-link:hover {
    color: var(--gold);
}

/* Menu fullscreen */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s var(--transition-smooth);
}

.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
}

.menu-nav {
    text-align: center;
    list-style: none;
}

.menu-nav li {
    margin: clamp(4px, 0.8vh, 12px) 0;
    overflow: hidden;
}

.menu-nav a {
    display: inline-block;
    font-size: clamp(1.2rem, 4vh, 3rem);
    font-weight: 100;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    transition: all 0.4s var(--transition-smooth);
    transform: translateY(100%);
    opacity: 0;
}

.fullscreen-menu.active .menu-nav a {
    transform: translateY(0);
    opacity: 1;
}

.menu-nav li:nth-child(1) a { transition-delay: 0.1s; }
.menu-nav li:nth-child(2) a { transition-delay: 0.15s; }
.menu-nav li:nth-child(3) a { transition-delay: 0.2s; }
.menu-nav li:nth-child(4) a { transition-delay: 0.25s; }
.menu-nav li:nth-child(5) a { transition-delay: 0.3s; }
.menu-nav li:nth-child(6) a { transition-delay: 0.35s; }

.menu-nav a:hover {
    color: var(--gold);
    transform: translateX(20px);
}
/* #endregion */

/* #region Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 0 50px 80px;
    overflow: hidden;
    background: var(--black);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(transparent, var(--black));
    z-index: 1;
}

.hero-watch {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 40vw;
    max-width: 550px;
    height: 80vh;
    max-height: 700px;
    opacity: 0.9;
    filter: drop-shadow(0 0 60px rgba(200, 168, 110, 0.1));
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.8s 0.5s forwards;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 100;
    letter-spacing: 0.1em;
    line-height: 1;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fade-in-up 0.8s 0.7s forwards;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 300;
    color: var(--text-gray);
    line-height: 1.6;
    max-width: 400px;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.8s 0.9s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fade-in-up 0.8s 1.2s forwards;
}

.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 1px solid var(--light-gray);
    border-radius: 15px;
    position: relative;
    cursor: pointer;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 10px;
    background: var(--gold);
    border-radius: 2px;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 28px; opacity: 0.3; }
}

@keyframes fade-in-up {
    to { opacity: 1; transform: translateY(0); }
}
/* #endregion */

/* #region Sezioni generiche */
.section {
    padding: 120px 50px;
    position: relative;
}

.section-dark {
    background: var(--dark);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header .label {
    display: block;
    margin-bottom: 20px;
}

.section-header h2 {
    margin-bottom: 20px;
}

.section-header .subtitle {
    max-width: 600px;
    margin: 0 auto;
}

.section-divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 30px auto;
}
/* #endregion */

/* #region Collezioni Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.collection-card {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
    background: var(--dark-gray);
    border: 1px solid transparent;
    transition: all 0.6s var(--transition-smooth);
}

.collection-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.collection-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--dark-gray), var(--black));
    transition: transform 0.6s var(--transition-smooth);
}

.collection-card:hover .collection-card-image {
    transform: scale(1.05);
}

.collection-card-image svg,
.collection-card-image img {
    width: 70%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(200, 168, 110, 0.1));
}

.collection-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    z-index: 2;
}

.collection-card-label {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.collection-card-title {
    font-size: 1.5rem;
    font-weight: 200;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.collection-card-subtitle {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 300;
}

.collection-card-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translate(-10px, 10px);
    transition: all 0.4s var(--transition-smooth);
    z-index: 2;
}

.collection-card:hover .collection-card-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

.collection-card-arrow svg {
    width: 14px;
    height: 14px;
    stroke: var(--white);
    fill: none;
}
/* #endregion */

/* #region Tecnologia Section */
.tech-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.tech-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.tech-visual svg,
.tech-visual > img {
    width: 100%;
    max-width: 550px;
    filter: drop-shadow(0 0 40px rgba(200, 168, 110, 0.08));
    -webkit-mask-image: radial-gradient(ellipse 75% 85% at center, #000 55%, transparent 100%);
    mask-image: radial-gradient(ellipse 75% 85% at center, #000 55%, transparent 100%);
}

/*!!!!AGG:G26-06-18 - Ridotto scale da 2.2 a 1.4 per dimensioni più contenute */
.tech-watch-duo {
    display: flex;
    align-items: center;
    width: 100%;
    transform: scale(1.4) translateX(-5%);
    transform-origin: center center;
}

.tech-watch-duo .tech-watch-back {
    width: 55%;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
    margin-top: 15%;
    filter: drop-shadow(0 10px 40px rgba(200, 168, 110, 0.1));
}

.tech-watch-duo .tech-watch-front {
    width: 55%;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
    margin-left: -25%;
    margin-top: -15%;
    filter: drop-shadow(0 10px 40px rgba(200, 168, 110, 0.12));
    mask-image: linear-gradient(to bottom, white 75%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, white 75%, transparent 100%);
}

.tech-info {
    padding: 40px 0;
}

.tech-info .label {
    display: block;
    margin-bottom: 20px;
}

.tech-info h3 {
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.tech-info .body-text {
    margin-bottom: 40px;
}

.tech-features {
    list-style: none;
    display: grid;
    gap: 20px;
}

.tech-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border: 1px solid var(--medium-gray);
    transition: all 0.3s var(--transition-smooth);
}

.tech-feature:hover {
    border-color: var(--gold);
    background: rgba(200, 168, 110, 0.03);
}

.tech-feature-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.tech-feature-text h4 {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.tech-feature-text p {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 300;
    line-height: 1.6;
}
/* #endregion */

/* #region Processo Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 70px;
    right: -20px;
    width: 40px;
    height: 1px;
    background: var(--light-gray);
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    font-size: 3rem;
    font-weight: 100;
    color: var(--gold);
    margin-bottom: 20px;
    line-height: 1;
}

.step-title {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 300;
    line-height: 1.6;
}
/* #endregion */

/* #region Banner / CTA */
.cta-banner {
    text-align: center;
    padding: 120px 50px;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 50%, var(--dark-gray) 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.cta-banner h2 {
    margin-bottom: 20px;
}

.cta-banner .subtitle {
    margin-bottom: 50px;
}

.btn {
    display: inline-block;
    padding: 16px 50px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
    border: 1px solid var(--gold);
}

.btn-primary:hover {
    background: transparent;
    color: var(--gold);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
}

.btn-gold-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-gold-outline:hover {
    background: var(--gold);
    color: var(--black);
}
/* #endregion */

/* #region Footer */
.footer {
    padding: 80px 50px 40px;
    border-top: 1px solid var(--medium-gray);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto 60px;
}

.footer-brand .brand-name {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 300;
    line-height: 1.8;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 300;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--medium-gray);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 300;
}

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

.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.footer-social a:hover {
    border-color: var(--gold);
    background: var(--gold);
}

.footer-social a:hover svg {
    stroke: var(--black);
}

.footer-social svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-gray);
    fill: none;
}
/* #endregion */

/* #region Pagina Collezioni */
.page-hero {
    height: 60vh;
    display: flex;
    align-items: flex-end;
    padding: 0 50px 60px;
    position: relative;
    background: var(--black);
    overflow: hidden;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero .label {
    margin-bottom: 15px;
    display: block;
}

.page-hero h1 {
    margin-bottom: 15px;
}

.watch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.watch-card {
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s var(--transition-smooth);
    position: relative;
}

.watch-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.watch-card-image {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(180deg, var(--dark-gray), var(--black));
    overflow: hidden;
}

.watch-card-image svg,
.watch-card-image img {
    width: 65%;
    transition: transform 0.6s var(--transition-smooth);
}

.watch-card:hover .watch-card-image svg,
.watch-card:hover .watch-card-image img {
    transform: scale(1.08);
}

.watch-card-info {
    padding: 25px;
    border-top: 1px solid var(--medium-gray);
}

.watch-card-collection {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.watch-card-name {
    font-size: 1.2rem;
    font-weight: 200;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.watch-card-price {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 300;
}

.watch-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: var(--gold);
    color: var(--black);
    font-weight: 600;
}
/* #endregion */

/* #region Pagina Tecnologia */
/*!!!!AGG:G26-07-05 - Riposizionato per visibilità completa */
.tech-hero-visual {
    position: absolute;
    right: 1%;
    bottom: 0;
    width: 25vw;
    max-width: 300px;
    opacity: 0.7;
    filter: brightness(1.2);
    z-index: 2;
}

/*!!!!AGG:G26-06-16 - model-viewer 3D nella page-hero di collections */
/*!!!!AGG:G26-06-18 - Ridotto e spostato a destra */
.page-hero-model {
    position: absolute;
    right: 5%;
    top: 55%;
    transform: translateY(-50%);
    width: 24vw;
    height: 45vh;
    max-width: 340px;
    max-height: 400px;
    opacity: 0.95;
    filter: drop-shadow(0 0 60px rgba(200, 168, 110, 0.15));
    z-index: 1;
    --poster-color: transparent;
}

.tech-detail-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.tech-detail-section.reverse {
    direction: rtl;
}

.tech-detail-section.reverse > * {
    direction: ltr;
}

.tech-number {
    font-size: 6rem;
    font-weight: 100;
    color: var(--gold);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 15px;
}

/*!!!!AGG:G26-07-05 - Ingranditi testo e immagine */
.tech-detail-title {
    font-size: 2.2rem;
    font-weight: 200;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.tech-detail-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 300;
    line-height: 1.8;
}

.tech-detail-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    min-height: 500px;
}

.tech-detail-visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.spec-card {
    text-align: center;
    padding: 40px 20px;
    border: 1px solid var(--medium-gray);
    transition: all 0.3s var(--transition-smooth);
}

.spec-card:hover {
    border-color: var(--gold);
}

.spec-value {
    font-size: 2.5rem;
    font-weight: 100;
    color: var(--gold);
    margin-bottom: 10px;
}

.spec-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-gray);
}
/* #endregion */

/* #region Pagina Configuratore */
.configurator {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.config-preview {
    position: sticky;
    top: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    overflow: hidden;
}

.config-preview svg {
    width: 60%;
    max-width: 400px;
    transition: all 0.5s var(--transition-smooth);
}

/*!!!!AGG:G26-07-22 - Immagini sportivo/modello più grandi, overflow tagliato dal container */
.config-preview img {
    width: 100%;
    max-width: 500px;
    transition: all 0.5s var(--transition-smooth);
}

#watch-preview {
    width: 80%;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#watch-preview svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(200, 168, 110, 0.08));
    transition: filter 0.5s var(--transition-smooth);
}

#watch-preview:hover svg {
    filter: drop-shadow(0 0 60px rgba(200, 168, 110, 0.15));
}

.config-options {
    padding: 20px 0;
}

.config-section {
    margin-bottom: 50px;
}

.config-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--medium-gray);
}

.config-choices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.config-choice {
    padding: 15px;
    border: 1px solid var(--medium-gray);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    background: transparent;
    color: var(--white);
    font-family: var(--font-primary);
}

.config-choice:hover {
    border-color: var(--light-gray);
}

.config-choice.active {
    border-color: var(--gold);
    background: rgba(200, 168, 110, 0.05);
}

.config-choice-name {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}

.config-choice-price {
    font-size: 0.7rem;
    color: var(--text-gray);
}

.color-choices {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* AGG:G26-05-04 - Le regole sotto sono estese anche a .case-color-swatch
   (pallini della nuova sezione "Colore Cassa") così hanno lo stesso aspetto
   tondo/dorato dei pallini "Colore Quadrante". Le regole originali per
   .color-swatch restano invariate, vengono solo affiancate dal selettore
   aggiuntivo. */
.color-swatch,
.case-color-swatch,
.hand-color-swatch,
.elastic-color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    /*!!!!AGG:G26-07-17 - Anello esterno dorato di default, nero quando attivo */
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    margin: 4px;
}

.color-swatch:hover,
.color-swatch.active,
.case-color-swatch:hover,
.case-color-swatch.active,
.hand-color-swatch:hover,
.hand-color-swatch.active,
.elastic-color-swatch:hover,
.elastic-color-swatch.active {
    border-color: var(--gold);
    transform: scale(1.1);
    /*!!!!AGG:G26-07-17 - Anello esterno nero su hover/selezione */
    outline-color: #000000;
}

.color-swatch.active::after,
.case-color-swatch.active::after,
.hand-color-swatch.active::after,
.elastic-color-swatch.active::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--gold);
    border-radius: 50%;
}

/* AGG:G26-06-18 - Stile color picker lancette personalizzato */
#hand-color-picker,
#bespoke-hand-picker {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(200,168,110,0.3);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
}
#hand-color-picker::-webkit-color-swatch-wrapper,
#bespoke-hand-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}
#hand-color-picker::-webkit-color-swatch,
#bespoke-hand-picker::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}
#hand-color-picker::-moz-color-swatch,
#bespoke-hand-picker::-moz-color-swatch {
    border: none;
    border-radius: 50%;
}
#hand-color-picker:hover,
#bespoke-hand-picker:hover {
    border-color: var(--gold);
    transform: scale(1.1);
}
#hand-color-picker-apply:hover,
#bespoke-hand-picker-apply:hover {
    background: var(--gold);
    color: var(--black);
}

.config-summary {
    margin-top: 40px;
    padding: 30px;
    border: 1px solid var(--gold);
    background: rgba(200, 168, 110, 0.03);
}

.config-summary-title {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.config-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--medium-gray);
}

.config-total-label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-gray);
}

.config-total-price {
    font-size: 1.8rem;
    font-weight: 200;
    color: var(--gold);
}
/* #endregion */

/* #region Pagina Contatti */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    padding: 20px 0;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.contact-info .body-text {
    margin-bottom: 40px;
}

.contact-details {
    list-style: none;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--medium-gray);
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--light-gray);
    border-radius: 50%;
}

.contact-detail-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--gold);
    fill: none;
}

.contact-detail-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 300;
}

.contact-detail-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 3px;
}

.contact-form {
    padding: 40px;
    border: 1px solid var(--medium-gray);
    background: var(--dark-gray);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--black);
    border: 1px solid var(--medium-gray);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 300;
    transition: border-color 0.3s;
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--gold);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-select option {
    background: var(--dark-gray);
    color: var(--white);
}
/* #endregion */

/* #region Animazioni scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--transition-smooth);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s var(--transition-smooth);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s var(--transition-smooth);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.stagger-delay-1 { transition-delay: 0.1s; }
.stagger-delay-2 { transition-delay: 0.2s; }
.stagger-delay-3 { transition-delay: 0.3s; }
.stagger-delay-4 { transition-delay: 0.4s; }
/* #endregion */

/* #region Product Showcase - Homepage */
.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
    overflow: visible;
}

.product-showcase-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow: visible;
}

.product-showcase-visual > img {
    width: 100%;
    max-width: 550px;
    filter: drop-shadow(0 0 60px rgba(200, 168, 110, 0.1));
}

.tech-watch-duo img {
    width: 100%;
    max-width: none;
}

.product-showcase-info {
    padding: 20px 0;
}

.product-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.product-highlight {
    text-align: center;
    padding: 20px 10px;
    border: 1px solid var(--medium-gray);
    transition: border-color 0.3s;
}

.product-highlight:hover {
    border-color: var(--gold);
}

.product-highlight-value {
    display: block;
    font-size: 2rem;
    font-weight: 100;
    color: var(--gold);
    margin-bottom: 5px;
}

.product-highlight-label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-gray);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.product-price-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-gray);
}

.product-price-value {
    font-size: 2.5rem;
    font-weight: 100;
    color: var(--gold);
}
/* #endregion */

/* #region Product Detail - ROLOI One Page */
.product-detail-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.product-detail-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: linear-gradient(135deg, var(--dark-gray), var(--black));
    border: 1px solid var(--medium-gray);
}

.product-detail-visual img {
    width: 90%;
    max-width: 500px;
    filter: drop-shadow(0 0 40px rgba(200, 168, 110, 0.08));
}

.product-detail-info {
    padding: 20px 0;
}

.product-detail-info h2 {
    margin-bottom: 10px;
}
/* #endregion */

/* #region Feature Cards Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 40px 30px;
    border: 1px solid var(--medium-gray);
    text-align: center;
    transition: all 0.4s var(--transition-smooth);
}

.feature-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    background: rgba(200, 168, 110, 0.03);
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--gold);
}

.feature-card-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
}

.feature-card-title {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.feature-card-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 300;
    line-height: 1.6;
}
/* #endregion */

/* #region Version Cards — Uomo/Donna */
/*!!!!AGG:G26-06-18 - Ridotto max-width da 1200 a 900px per card più compatte */
.version-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.version-card {
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    overflow: hidden;
    transition: all 0.5s var(--transition-smooth);
    text-decoration: none;
    color: var(--white);
    display: block;
}

.version-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

/*!!!!AGG:G26-06-18 - Ridotto aspect-ratio da 1 a 3/4 e padding da 40 a 30px */
.version-card-image {
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: linear-gradient(180deg, var(--dark-gray), var(--black));
    overflow: hidden;
}

.version-card-image img,
.version-card-image svg {
    width: 65%;
    transition: transform 0.6s var(--transition-smooth);
}

.version-card:hover .version-card-image img,
.version-card:hover .version-card-image svg {
    transform: scale(1.08);
}

.version-card-info {
    padding: 30px;
    border-top: 1px solid var(--medium-gray);
    text-align: center;
}

.version-card-label {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.version-card-name {
    font-size: 1.4rem;
    font-weight: 200;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.version-card-spec {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 300;
    margin-bottom: 15px;
}

.version-card-price {
    font-size: 1.3rem;
    font-weight: 200;
    color: var(--gold);
    margin-bottom: 20px;
}

.version-card .btn {
    width: 100%;
    text-align: center;
}

.version-banner {
    text-align: center;
    padding: 15px 25px;
    border: 1px solid var(--gold);
    background: rgba(200, 168, 110, 0.05);
    margin-bottom: 30px;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    user-select: none;
    overflow: hidden;
}
.version-banner:hover {
    background: rgba(200, 168, 110, 0.12);
    border-color: var(--gold-light);
}
.version-banner-arrow {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.55rem;
    vertical-align: middle;
    transition: transform 0.3s;
}
.version-banner.open .version-banner-arrow {
    transform: rotate(180deg);
}
.version-dropdown {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.3s ease;
    margin: 0;
}
.version-banner.open .version-dropdown {
    max-height: 50px;
    opacity: 1;
    margin-top: 12px;
}
.version-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 25px;
    background: rgba(200, 168, 110, 0.06);
    border: 1px solid rgba(200, 168, 110, 0.2);
    border-radius: 3px;
    color: var(--text-gray);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    box-sizing: border-box;
}
.version-dropdown-item:hover {
    background: rgba(200, 168, 110, 0.15);
    color: var(--gold);
    border-color: var(--gold);
}

/* Select dropdown dark styling (spedizione) */
#ship-province option {
    background: #111;
    color: #fff;
}
/* #endregion */

/* #region Responsive */
@media (max-width: 1024px) {
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-showcase,
    .tech-detail-section,
    .contact-grid,
    .configurator {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tech-detail-section.reverse {
        direction: ltr;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-step::after {
        display: none;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .config-preview {
        position: relative;
        top: 0;
        min-height: 400px;
    }

    .product-showcase,
    .product-detail-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 25px;
    }

    .header.scrolled {
        padding: 12px 25px;
    }

    .header-right {
        gap: 15px;
    }

    .header-right .header-link[href*="contact"] {
        display: none;
    }

    .header-center {
        left: auto;
        transform: none;
        position: relative;
    }

    .brand-name {
        font-size: 0;
        gap: 0;
    }

    .brand-logo {
        width: 28px;
        height: 28px;
    }

    .menu-label {
        display: none;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 70px 25px 10px;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .hero-watch {
        position: relative;
        right: auto;
        left: auto;
        top: auto;
        transform: none;
        width: 55vw;
        height: 25vh;
        opacity: 1;
        margin: 10px auto -5px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content .btn {
        padding: 12px 24px;
        font-size: 0.65rem;
        letter-spacing: 0.1em;
    }

    .hero-content > div[style] {
        justify-content: center;
    }

    .section {
        padding: 40px 25px;
    }

    .tech-showcase {
        gap: 0;
    }

    .tech-visual {
        min-height: auto;
        max-height: 200px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tech-visual > img {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .collections-grid {
        grid-template-columns: 1fr;
    }

    .watch-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .specs-grid {
        grid-template-columns: 1fr 1fr;
    }

    .config-choices {
        grid-template-columns: repeat(2, 1fr);
    }

    .version-cards {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .page-hero {
        height: 50vh;
        padding: 0 25px 40px;
    }

    .page-hero-model {
        width: 50vw;
        height: 40vh;
        right: -5%;
        opacity: 0.7;
    }

    .cta-banner {
        padding: 80px 25px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .config-choices {
        grid-template-columns: 1fr;
    }

    .header-right .header-link {
        font-size: 0.55rem;
        letter-spacing: 0.05em;
    }

    .header-right {
        gap: 8px;
    }

    .header-user-name {
        display: none;
    }
}
/* #endregion */

/* #region Pagina Bespoke Customizer */

/* --- Hero compatto per la pagina bespoke --- */
/*!!!!AGG:G26-06-21 */
/*!!!!AGG:G26-06-21 - Hero ultra-compatto per massimizzare spazio configuratore */
.page-hero-compact {
    height: auto;
    min-height: unset;
    padding: 70px 50px 10px;
}
.page-hero-compact h1 {
    font-size: 1.4rem;
    margin-bottom: 0;
}
.page-hero-compact .label {
    font-size: 0.55rem;
}

/* --- Sezione bespoke: fullscreen senza padding verticale --- */
/*!!!!AGG:G26-06-21 */
.section-bespoke {
    padding: 5px 20px 5px;
    height: calc(100vh - 110px);
    overflow: hidden;
}

/* --- Layout principale --- */
/*!!!!AGG:G26-06-21 - Layout fullscreen: preview + pannello tutto visibile senza scroll */
.bespoke-configurator {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
    height: 100%;
    min-height: 0;
}

/*!!!!AGG:G26-05-10 - Due preview: grande (responsive min 2x) + piccolo (31.5mm reale) */
.bespoke-preview-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 0;
    overflow: hidden;
}

/* Preview grande: responsive, si adatta all'altezza disponibile */
/*!!!!AGG:G26-07-30 — Sfondo nero puro (#000) per uniformità con le immagini orologio */
.bespoke-preview-large {
    background: #000;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Anteprima composita cassa: si adatta al contenitore flex */
#bespoke-case-preview {
    max-height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
#bespoke-case-preview canvas,
#bespoke-case-preview img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/*!!!!AGG:G26-07-17 - Preview quadrante ridotto da 500px a 380px */
.bespoke-preview-large svg {
    width: 100%;
    height: 100%;
    max-width: 380px;
    max-height: 100%;
    border-radius: 8px;
    object-fit: contain;
}

.bespoke-preview-large img {
    max-height: 100%;
    object-fit: contain;
}

/*!!!!AGG:G26-07-30 — Escludi immagini dentro il composito cassa inspire dalla regola max-height/object-fit.
   Specificità aumentata (.bespoke-preview-large .inspire-case-container img = 0-2-1)
   per battere sempre .bespoke-preview-large img (0-1-1). */
.bespoke-preview-large .inspire-case-container img {
    max-height: none !important;
    object-fit: initial !important;
}

/* Pannello destro: scroll interno */
.bespoke-panel {
    overflow-y: auto;
    min-height: 0;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
}
.bespoke-panel::-webkit-scrollbar {
    width: 4px;
}
.bespoke-panel::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}
.bespoke-panel::-webkit-scrollbar-track {
    background: transparent;
}

/* Preview piccolo: dimensione reale 31.5mm = 119px */
.bespoke-preview-real {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.bespoke-preview-label {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-gray);
}

.bespoke-preview-small {
    background: var(--dark);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 139px;
    height: 139px;
}

.bespoke-preview-small svg {
    width: 119px;
    height: 119px;
}

.bespoke-download-svg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    border-radius: 4px;
}

.bespoke-download-svg-btn:hover {
    background: var(--gold);
    color: var(--black);
}

.bespoke-preview .placeholder-text {
    color: var(--text-gray);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* --- Step wizard --- */
.bespoke-step {
    display: none;
}

.bespoke-step.active {
    display: block;
}

/* --- Step 1: Selezione genere --- */
.bespoke-gender-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.bespoke-gender-btn {
    background: transparent;
    border: 1px solid rgba(200, 168, 110, 0.3);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 200;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.bespoke-gender-btn:hover {
    border-color: var(--gold);
    background: rgba(200, 168, 110, 0.05);
}

.bespoke-gender-btn.active {
    border-color: var(--gold);
    background: rgba(200, 168, 110, 0.1);
    color: var(--gold);
}

.bespoke-gender-btn .gender-size {
    display: block;
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--text-gray);
    letter-spacing: 0.2em;
}

/*!!!!AGG:G26-07-17 - Bottoni modello (step 3c) e colore cassa (step 4) più compatti */
#bespoke-step-3c .bespoke-gender-btn,
#bespoke-step-4 .bespoke-gender-btn {
    padding: 12px 12px;
    font-size: 0.8rem;
}

#bespoke-step-3c .bespoke-gender-btn .gender-size,
#bespoke-step-4 .bespoke-gender-btn .gender-size {
    margin-top: 2px;
    font-size: 0.55rem;
}

/* --- Step 2: Griglia quadranti --- */
/*!!!!AGG:G26-05-10 - Griglia auto-wrap per thumbnail 119px */
.bespoke-dial-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

/*!!!!AGG:G26-05-10 - Thumbnail quadranti: dimensioni fisse 31.5mm x 31.5mm (119px a 96dpi) */
.bespoke-dial-thumb {
    width: 119px;
    height: 119px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--dark);
    position: relative;
    flex-shrink: 0;
}

.bespoke-dial-thumb:hover {
    border-color: var(--gold);
    transform: scale(1.03);
}

.bespoke-dial-thumb.selected {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(200, 168, 110, 0.3);
}

.bespoke-dial-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.bespoke-dial-thumb .dial-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.8);
    font-size: 0.6rem;
    color: var(--text-gray);
    text-align: center;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*!!!!AGG:G26-06-15 - Separatore e gruppo "numeri colorati" nella griglia quadranti */
.bespoke-dial-separator {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 5px;
}

.bespoke-dial-separator::before,
.bespoke-dial-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 168, 110, 0.3), transparent);
}

.bespoke-dial-separator span {
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
    opacity: 0.7;
}

.bespoke-dial-numeri-group {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

/* --- Step 3: Chat --- */
/*!!!!AGG:G26-07-17 - Chat ridotta da 500px a 280px per mostrare pannelli modifica senza scroll */
.bespoke-chat-container {
    display: flex;
    flex-direction: column;
    height: 280px;
}

.bespoke-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bespoke-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--white);
}

.bespoke-msg.user {
    align-self: flex-end;
    background: rgba(200, 168, 110, 0.15);
    border: 1px solid rgba(200, 168, 110, 0.3);
    border-bottom-right-radius: 4px;
}

.bespoke-msg.ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 4px;
}

.bespoke-msg.error {
    align-self: center;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.3);
    color: var(--red-accent);
    font-size: 0.75rem;
}

.bespoke-chat-input {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bespoke-chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--white);
    font-size: 0.85rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.bespoke-chat-input input:focus {
    border-color: var(--gold);
}

.bespoke-chat-input input::placeholder {
    color: var(--text-gray);
}

.bespoke-btn-send {
    background: var(--gold);
    border: none;
    color: var(--black);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 0.3s;
}

.bespoke-btn-send:hover {
    background: var(--gold-light);
}

.bespoke-btn-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* --- Bottone allega immagine --- */
.bespoke-btn-attach {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-gray);
    transition: all 0.3s;
    flex-shrink: 0;
}

.bespoke-btn-attach:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.bespoke-btn-attach.drawing-mode {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(200, 168, 110, 0.1);
}

/* --- Rettangolo di selezione area immagine --- */
.bespoke-draw-rect {
    position: absolute;
    border: 2px dashed var(--gold);
    background: rgba(200, 168, 110, 0.1);
    pointer-events: none;
    z-index: 10;
}

.bespoke-preview-large {
    position: relative;
}

/* --- Bottoni azione --- */
.bespoke-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.bespoke-btn-confirm {
    flex: 1;
    background: var(--gold);
    border: none;
    color: var(--black);
    padding: 14px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: background 0.3s;
}

.bespoke-btn-confirm:hover {
    background: var(--gold-light);
}

.bespoke-btn-restart {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-gray);
    padding: 14px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s;
}

.bespoke-btn-restart:hover {
    border-color: var(--white);
    color: var(--white);
}

/* --- Sezione titoli step --- */
.bespoke-step-title {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.bespoke-step-heading {
    font-size: 1.4rem;
    font-weight: 200;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 20px;
}

/* --- Link "indietro" --- */
.bespoke-back {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--text-gray);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s;
    border: none;
    background: none;
    padding: 0;
}

.bespoke-back:hover {
    color: var(--gold);
}

/* --- Modal API Key --- */
.bespoke-apikey-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.bespoke-apikey-modal.hidden {
    display: none;
}

.bespoke-apikey-box {
    background: var(--dark);
    border: 1px solid rgba(200, 168, 110, 0.3);
    border-radius: 12px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
}

.bespoke-apikey-box h3 {
    font-weight: 200;
    letter-spacing: 0.15em;
    margin-bottom: 15px;
    color: var(--white);
}

.bespoke-apikey-box p {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.bespoke-apikey-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--white);
    font-size: 0.85rem;
    font-family: monospace;
    outline: none;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.bespoke-apikey-box input:focus {
    border-color: var(--gold);
}

/* --- Loading spinner --- */
.bespoke-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--gold);
    border-top-color: transparent;
    border-radius: 50%;
    animation: bespoke-spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes bespoke-spin {
    to { transform: rotate(360deg); }
}

/* --- Griglia colori sfondo (crea da zero) --- */
.bespoke-color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.bespoke-color-swatch {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.bespoke-color-swatch:hover {
    border-color: var(--gold);
    transform: scale(1.15);
}

.bespoke-color-swatch.active {
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(200, 168, 110, 0.5);
}

/* --- Selezione oggetto sul preview --- */
.bespoke-selection-box {
    stroke: var(--gold);
    stroke-width: 1.5;
    stroke-dasharray: 5,3;
    fill: none;
    pointer-events: none;
}

.bespoke-selection-handle {
    fill: var(--gold);
    stroke: var(--black);
    stroke-width: 1;
    cursor: pointer;
    pointer-events: all;
}

/*!!!!AGG:G26-07-28 - Cursore frecce curve per handle rotazione */
.bespoke-rotation-handle {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.5 2v6h-6'/%3E%3Cpath d='M2.5 22v-6h6'/%3E%3Cpath d='M21.2 7.8a9 9 0 0 0-15.37.88'/%3E%3Cpath d='M2.8 16.2a9 9 0 0 0 15.37-.88'/%3E%3C/svg%3E") 12 12, alias;
    fill: var(--gold);
    stroke: var(--black);
    stroke-width: 1;
}

/*!!!!AGG:G26-07-28 - Freccette livello con tooltip */
.bespoke-layer-arrow {
    position: relative;
    transition: background 0.2s;
}
.bespoke-layer-arrow:hover {
    background: rgba(200,168,110,0.2);
}
.bespoke-layer-arrow::after {
    content: 'Muovi tra livelli';
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: var(--gold);
    font-size: 0.55rem;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    border: 1px solid rgba(200,168,110,0.3);
}
.bespoke-layer-arrow:hover::after {
    opacity: 1;
}

/*!!!!AGG:G26-05-16 - Step 1 a 3 colonne per la griglia modalità */
/* --- Step 1: Griglia 3 colonne per modalità --- */
.bespoke-mode-grid {
    grid-template-columns: 1fr 1fr 1fr;
}

/* --- Step 2i: Upload area ispirazione --- */
.bespoke-upload-area {
    border: 2px dashed rgba(200, 168, 110, 0.4);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.bespoke-upload-area:hover,
.bespoke-upload-area.dragover {
    border-color: var(--gold);
    background: rgba(200, 168, 110, 0.05);
}

.bespoke-upload-text {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.6;
}

.bespoke-upload-preview {
    position: relative;
    display: inline-block;
    margin-top: 15px;
    border: 1px solid rgba(200, 168, 110, 0.3);
    border-radius: 8px;
    overflow: hidden;
    max-width: 200px;
}

.bespoke-upload-preview img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
}

.bespoke-upload-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--white);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.bespoke-upload-remove:hover {
    background: rgba(230, 57, 70, 0.8);
}

.bespoke-inspire-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.bespoke-inspire-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(200, 168, 110, 0.3);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: bespoke-spin 0.8s linear infinite;
}

@keyframes bespoke-spin {
    to { transform: rotate(360deg); }
}

.bespoke-inspire-error {
    margin-top: 15px;
    padding: 12px 15px;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 8px;
    color: #e63946;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bespoke-inspire-error .bespoke-btn-restart {
    margin: 0;
    padding: 6px 14px;
    font-size: 0.7rem;
}

/*!!!!AGG:G26-05-18*/
.bespoke-inspire-result {
    margin-top: 15px;
    padding: 12px 15px;
    background: rgba(200, 168, 110, 0.08);
    border: 1px solid rgba(200, 168, 110, 0.3);
    border-radius: 8px;
    font-size: 0.8rem;
}

/* ===== Form Ispirazione ===== */
.bespoke-inspire-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bespoke-inspire-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bespoke-inspire-label {
    color: var(--text-gray);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 300;
}

/* Bottoni colore indici */
.bespoke-inspire-index-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bespoke-inspire-index-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--white);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
}

.bespoke-inspire-index-btn:hover {
    border-color: var(--gold);
    background: rgba(200,168,110,0.08);
}

.bespoke-inspire-index-btn.active {
    border-color: var(--gold);
    background: rgba(200,168,110,0.15);
    box-shadow: 0 0 8px rgba(200,168,110,0.2);
}

.index-color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
}

/* Bottoni forma indici */
.bespoke-inspire-shapes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bespoke-inspire-shape-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 10px 12px 8px;
    color: var(--white);
    font-size: 0.6rem;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 58px;
}

.bespoke-inspire-shape-btn:hover {
    border-color: var(--gold);
    background: rgba(200,168,110,0.08);
}

.bespoke-inspire-shape-btn.active {
    border-color: var(--gold);
    background: rgba(200,168,110,0.15);
    box-shadow: 0 0 8px rgba(200,168,110,0.2);
    color: var(--gold);
}

.bespoke-inspire-shape-btn svg {
    color: currentColor;
}

/* Toggles (checkbox stile) */
.bespoke-inspire-toggles {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bespoke-inspire-toggle {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0 10px;
    align-items: center;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s;
}

.bespoke-inspire-toggle:hover {
    background: rgba(255,255,255,0.04);
}

.bespoke-inspire-toggle input[type="checkbox"] {
    grid-row: 1 / 3;
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
}

.bespoke-inspire-toggle .toggle-label {
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 300;
}

.bespoke-inspire-toggle .toggle-desc {
    color: var(--text-gray);
    font-size: 0.6rem;
    grid-column: 2;
}

/* ===== Configuratore sezioni (details/summary) ===== */
.bespoke-config-sections {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 5px;
}

.bespoke-config-sections::-webkit-scrollbar {
    width: 4px;
}

.bespoke-config-sections::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 2px;
}

.bespoke-config-section {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
}

.bespoke-config-section[open] {
    border-color: rgba(200,168,110,0.2);
}

.bespoke-config-summary {
    padding: 12px 15px;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    cursor: pointer;
    background: rgba(255,255,255,0.03);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bespoke-config-summary::after {
    content: '+';
    color: var(--gold);
    font-size: 1rem;
    font-weight: 300;
}

.bespoke-config-section[open] .bespoke-config-summary::after {
    content: '\2212';
}

.bespoke-config-summary::-webkit-details-marker {
    display: none;
}

.bespoke-config-body {
    padding: 12px 15px 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===== Controlli indici (posizione, dimensione) ===== */
.bespoke-index-controls {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bespoke-control-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bespoke-control-label {
    color: var(--text-gray);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.bespoke-control-slider {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bespoke-control-slider .slider-label-left,
.bespoke-control-slider .slider-label-right {
    color: var(--text-gray);
    font-size: 0.6rem;
    white-space: nowrap;
    min-width: 38px;
}

.bespoke-control-slider .slider-label-right {
    text-align: right;
}

.bespoke-control-value {
    color: var(--gold);
    font-size: 0.65rem;
    font-weight: 300;
    min-width: 24px;
    text-align: center;
}

/* Riferimento immagine ispirazione */
.bespoke-inspire-reference {
    margin-top: 15px;
    position: relative;
    border: 1px solid rgba(200,168,110,0.3);
    border-radius: 10px;
    padding: 8px;
    text-align: center;
}

.bespoke-inspire-reference img {
    width: 100%;
    max-width: 180px;
    border-radius: 8px;
    display: block;
    margin: 5px auto 0;
}

.bespoke-inspire-reference .bespoke-upload-remove {
    position: absolute;
    top: 5px;
    right: 5px;
}

/* Quick color buttons */
.bespoke-color-quick {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}

.bespoke-color-quick:hover {
    border-color: var(--gold);
    transform: scale(1.15);
}

.hidden {
    display: none !important;
}

/* Upload area per Ispirati */
.bespoke-upload-area {
    border: 2px dashed rgba(200,168,110,0.3);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}
.bespoke-upload-area:hover,
.bespoke-upload-area.dragover {
    border-color: var(--gold);
    background: rgba(200,168,110,0.05);
}
.bespoke-upload-area .upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 0.75rem;
}
.bespoke-upload-area .upload-preview {
    position: relative;
    display: inline-block;
}
.bespoke-upload-area .upload-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}
.bespoke-upload-area .upload-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold);
    color: #000;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
}
.bespoke-inspire-loading {
    text-align: center;
    padding: 15px;
}
.bespoke-inspire-error {
    background: rgba(230,57,70,0.1);
    border: 1px solid rgba(230,57,70,0.3);
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    color: #e63946;
}
.bespoke-btn-small {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.65rem;
    cursor: pointer;
    white-space: nowrap;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .section-bespoke {
        height: auto;
        overflow: visible;
    }

    .bespoke-configurator {
        grid-template-columns: 1fr;
        padding: 10px 20px;
        gap: 20px;
        height: auto;
    }

    .bespoke-preview-column {
        position: relative;
        top: 0;
        max-height: 45vh;
    }

    .bespoke-preview-large {
        min-height: 200px;
    }

    .bespoke-panel {
        overflow-y: visible;
        max-height: none;
    }

    .bespoke-mode-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .bespoke-configurator {
        padding: 10px 15px;
    }

    .page-hero-compact {
        padding: 80px 25px 15px;
    }

    .bespoke-dial-grid {
        justify-content: center;
    }

    .bespoke-gender-grid {
        grid-template-columns: 1fr;
    }

    .bespoke-mode-grid {
        grid-template-columns: 1fr;
    }

    .bespoke-chat-container {
        height: 250px;
    }

    .bespoke-upload-area {
        padding: 30px 15px;
        min-height: 150px;
    }
}

/* #endregion */

/* #region Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    border-top: 1px solid rgba(200, 168, 110, 0.15);
    padding: 1.5rem 2rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-text {
    color: var(--text-gray);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.6;
}

.cookie-banner-text a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
    color: var(--gold-light);
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn-reject,
.cookie-btn-accept {
    padding: 0.6rem 1.4rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.cookie-btn-reject {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-gray);
}

.cookie-btn-reject:hover {
    border-color: var(--white);
    color: var(--white);
}

.cookie-btn-accept {
    background: var(--gold);
    color: var(--black);
    font-weight: 600;
}

.cookie-btn-accept:hover {
    background: var(--gold-light);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.2rem 1rem;
    }

    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-banner-text {
        font-size: 0.78rem;
    }
}
/* #endregion */

/* #region CSP-safe hover/focus (sostituzione inline event handler) */
/*!!!!AGG:G26-07-30 — Hover e focus che prima erano gestiti con onmouseover/onfocus inline */
.faq-toggle:hover { color: var(--gold) !important; }
.admin-panel-link:hover { border-color: rgba(200,168,110,0.6) !important; background: rgba(200,168,110,0.06) !important; }
#save-draft-name:focus { border-color: var(--gold) !important; }
/* #endregion */
