/*comment*/
html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

#futura-app .app-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    width: 100%;
}

.flex-container {
    display: flex;
    align-items: center;
}

#futura-app .app-image {
    max-width: 250px;
}

.assistant-image {
    max-width: 100px;
    height: auto;
}

.app-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
    border: none;
}

.image-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.image-comparison .app-image {
    width: 150px;
    height: auto;
}

.arrow {
    font-size: 4rem;
    font-weight: 900;
}

#futura-app .app-text {
    flex-shrink: 1;
    max-width: 50%;
    text-align: left;
}

#futura-app .app-text ul {
    display: inline-block;
    text-align: left;
    list-style-position: outside;
    padding-left: 1.25rem;
    margin: 0.5rem auto;
}

body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f7f7f7;
    color: #333;
}

.main_title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0rem 2rem 1rem;
    box-sizing: border-box;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 42%, var(--primary-light) 100%);
}

.site-logo {
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0.5rem auto 0.2rem;
    border-radius: 27px;
    border: 2px solid #000;
    overflow: hidden;
    filter: drop-shadow(0 6px 16px var(--shadow));
}

.main_title .subtitle {
    margin-top: 0.3rem;
}

.main_title h1,
.main_title .subtitle,
.main_title .microcopy,
#social-proof,
#cta-inline {
    color: white;
}

h1 {
    font-size: 4rem;
    margin-bottom: 0.1rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.sticky-nav {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.3rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.microcopy {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #555;
}


.whatsapp-logo {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.whatsapp-button {
    background: linear-gradient(to right, #25D366 0%, #24c963 60%, #1fb659 100%);
    color: #fff;
    padding: 0.6rem 0.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    animation: pulse 2s infinite;
    max-width: 100%;
    box-sizing: border-box;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.divider {
    border: none;
    height: 1px;
    background-color: black;
    width: 80%;
    margin: 0.5rem 0;
}

.funded-by {
    font-size: 1rem;
    font-style: italic;
    margin: 0 0 1rem;
    font-family: Georgia, serif;
    text-align: center;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.nav-button {
    text-decoration: none;
    color: #333;
    padding: 0.5rem 1rem;
    border: 1px solid #333;
    border-radius: 5px;
}

section {
    padding: 1rem 2rem;
    border-top: 1px solid #ddd;
    text-align: center;
}

section h2 {
    border: 2px solid white;
    padding: 0.5rem 1rem;
    display: inline-block;
}








.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('massive-pile-discarded-old-used-clothing-landfill-fast-fashion-industry-waste-textile-environmental-disaster-pollution-368651029.webp');
    background-size: cover;
    background-position: center;
}

#problem > h2, #problem > p, #problem > ul {
    position: relative;
    z-index: 2;
}

footer {
    background: linear-gradient(to right, #000000, #333333);
    color: #FFFFFF;
    padding: 2rem;
    text-align: center;
    border-top: none;
}

footer a {
    color: #FFFFFF;
    text-decoration: underline;
}

.footer-cta { margin-top: 1rem; }

.assistant-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.assistant-image {
    max-width: 60%;
    height: auto;
    border-radius: 10px;
    image-rendering: -webkit-optimize-contrast;
}

.assistant-text {
    flex-shrink: 1;
    max-width: 50%;
    text-align: left;
}

.image-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.previews {
    display: flex;
    gap: 1rem;
}
.blur { filter: blur(6px); }

/* Social proof e progresso */
#social-proof { font-weight: 600; margin-top: 0.5rem; }
#progress { background: #eee; border-radius: 8px; overflow: hidden; position: relative; height: 16px; margin: 0.75rem auto; width: 280px; }
#bar { background: #25D366; height: 100%; width: 0%; transition: width 0.3s; }
#label { display: block; margin-top: 0.25rem; font-size: 0.9rem; }

/* Lista benefici con icone */
.benefits-list { list-style: none; padding: 0; display: flex; gap: 0.75rem; margin: 0.5rem 0 1rem; flex-wrap: wrap; justify-content: flex-start; }
.benefit { background: #fff; border: 1px solid #ddd; border-radius: 16px; padding: 0.4rem 0.6rem; font-size: 0.95rem; text-align: center; }
.cta-inline { font-size: 1rem; margin: 0.25rem 0 0.5rem; }

#cta-inline {
    margin: 0.2rem;
}

#cta-inline a {
    color: white;
}

/* FAQ */
.faq-section { padding: 2rem; background: #fafafa; }
.faq-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; text-align: left; }
.faq-item { background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 1rem; }
.faq-item h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.faq-item p { margin: 0; color: #555; }

/* CTA mobile sticky */
.mobile-cta { display: none; }

@media (max-width: 768px) {
    .assistant-content { flex-direction: column; }

    .whatsapp-button { font-size: 1.1rem; width: 90%; justify-content: center; }
    .mobile-cta { position: fixed; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; z-index: 999; }
}

/* --- Modern palette, typography, FAQ accordion, dropdown, cards & accessibility overrides --- */
:root {
  --primary-color: #A28FE1;
  --bg: #F7F7F9;
  --surface: #FFFFFF;
  --text: #1F2937;
  --muted: #6B7280;
  --border: #E5E7EB;
  --primary: #A28FE1;
  --primary-contrast: #FFFFFF;
  --secondary: #0EA5E9;
  --success: #25D366;
  --shadow: rgba(17, 24, 39, 0.08);
  --ring: #A28FE1;
  --primary-dark: #6E59B3;
  --primary-light: #D6CCF6;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--text); }
.subtitle { color: var(--muted); font-size: 1.125rem; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif; font-weight: 600; }
.microcopy { color: var(--muted); }

.nav-buttons { display: flex; justify-content: center; gap: 0.4rem; flex-wrap: wrap; }
.nav-button { text-decoration: none; color: var(--text); padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: 0 2px 8px var(--shadow); }
.nav-button:hover { border-color: var(--text); }

.nav-dropdown { position: relative; margin-top: 0.75rem; }
.dropdown-toggle { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem 0.75rem; cursor: pointer; }
.dropdown-toggle:focus { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 28px var(--shadow); padding: 0.25rem; min-width: 200px; }
.dropdown-menu a { display: block; padding: 0.5rem 0.75rem; color: var(--text); text-decoration: none; border-radius: 8px; }
.dropdown-menu a:hover, .dropdown-menu a:focus { background: #F3F4F6; outline: none; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: static; width: auto; height: auto; padding: 0.5rem 0.75rem; background: var(--primary); color: var(--primary-contrast); border-radius: 8px; z-index: 999; }

section {
    padding: 0 1.25rem 2.5rem; 
    border-top: none;
    margin-top: 0;
    text-align: left;
}

#assistant, #futura-app, #faq {
    scroll-margin-top: 90px;
}

.title-highlight {
    background-color: var(--primary-color);
    color: var(--primary-contrast);
    padding: 0.5rem 1rem;
    display: inline-block;
    border-radius: 8px;
    border-bottom: none;
}

#problem h2.title-highlight {
    background: transparent;
}

h2.title-highlight,
h3.title-highlight {
    display: block;
    width: fit-content;
    margin: 0.25rem 0;
}

#faq h2.title-highlight { margin-bottom: 1rem; }

#assistant h2.title-highlight {
    margin-bottom: 1rem;
}



#problem-title { scroll-margin-top: 100px; }

section h2 { font-size: 1.3rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border); display: inline-block; }

#problem {
    position: relative;
    color: #fff; 
    border-radius: 0; 
    overflow: hidden; 
    scroll-margin-top: 70px;
}
.divider { background-color: var(--border); }


.assistant-content { opacity: 0; transform: translateY(10px); transition: opacity 400ms ease, transform 400ms ease; }
.assistant-content.is-visible { opacity: 1; transform: none; }
.assistant-image { max-width: 22%; border-radius: 14px; box-shadow: 0 10px 24px var(--shadow); }
.assistant-text { max-width: 560px; }

#bar { background: var(--success); }

.benefit { background: var(--surface); border: none; box-shadow: 0 2px 8px var(--shadow); opacity: 0; transform: translateY(6px); transition: opacity 400ms ease, transform 400ms ease; }
.benefit.is-visible { opacity: 1; transform: none; }

.faq-section { padding: 2rem; background: #FAFAFB; border-radius: 14px; }
.faq-search { margin: 0 0 1rem; }
.faq-search input { width: 100%; max-width: 540px; padding: 0.6rem 0.9rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: 0 2px 8px var(--shadow); }
.faq-search input:focus { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.faq-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.faq-item { background: var(--surface); border: none; border-radius: 12px; padding: 0.5rem; box-shadow: 0 8px 24px var(--shadow); opacity: 0; transform: translateY(10px); transition: opacity 400ms ease, transform 400ms ease; }
.faq-item.is-visible { opacity: 1; transform: none; }
.faq-question { width: 100%; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 0.75rem; background: transparent; border: none; padding: 0.75rem; text-align: left; cursor: pointer; font-weight: 600; color: var(--text); }
.faq-question:focus { outline: none; box-shadow: 0 0 0 3px var(--ring); border-radius: 8px; }
.faq-question::after { content: '▸'; transform: rotate(0deg); transition: transform 200ms ease; color: var(--muted); }
.faq-question[aria-expanded="true"]::after { transform: rotate(90deg); color: var(--text); }
.faq-icon { color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
.faq-answer { padding: 1rem 0.75rem 0.85rem; color: var(--text); }
.faq-answer ul { margin: 0.5rem 0 0.25rem 1rem; }

/* (rimosse) cards e card-body: sezione Esempi Outfit eliminata */

.mobile-cta { display: none; }

@media (max-width: 768px) {
  #3d-models .flex-container { flex-direction: column; }
  .main_title { padding: 0 1rem 1rem; }
  h1 { font-size: 2.5rem; }
  .assistant-image { max-width: 40%; }
  .whatsapp-button { font-size: 0.95rem; width: 92%; justify-content: center; }
  .app-image { max-width: 80%; }
  .arrow { font-size: 2rem; }
  #futura-app .app-content {
    flex-direction: column;
  }
  #futura-app .app-text {
    max-width: 100%;
  }
  .image-comparison .app-image {
      width: 40%;
  }
}

/* Uniforma le proporzioni delle anteprime telefono nella sezione Futura App */
#futura-app .image-container .app-image {
  width: 250px;
  aspect-ratio: 494 / 1024;
  object-fit: cover;
}

@media (max-width: 768px) {
  #futura-app .image-container {
    gap: 0.75rem;
  }
  #futura-app .image-container .app-image {
    width: 44%;
    aspect-ratio: 494 / 1024;
    object-fit: cover;
  }
}

@media (prefers-reduced-motion: reduce) {
  .assistant-content, .benefit, .faq-item, .card { transition: none; opacity: 1 !important; transform: none !important; }
}

/* (rimossi) stili hero banner: sezione eliminata */

#contact {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 14px;
}

#contact h2 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

#contact p {
    text-align: left;
    margin-bottom: 2rem;
    color: var(--muted);
}

#contact form {
    display: grid;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

#contact label {
    font-weight: 600;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg);
    color: var(--text);
    font-family: inherit;
}

#contact input:focus,
#contact textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--ring);
}

#contact button {
    background-color: var(--primary-color);
    color: var(--primary-contrast);
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 200ms ease;
}

#contact button[type="submit"] {
    background-color: var(--primary-color);
    color: var(--primary-contrast);
    padding: 0.6rem 1rem;
    border: 1px solid var(--primary);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px var(--shadow);
    width: 100%;
}

#contact button[type="submit"]:hover {
    filter: brightness(1.05);
}

#contact button[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--ring);
}
#3d-models { text-align: left; }
#3d-models p { text-align: left; }

.centered-text {
    text-align: left;
    display: block;
    margin: 0.5rem 0;
    max-width: 720px;
}
