/* ================================================
   MY.ORGANICS — Inaugurazione Salone
   Design System: Black & White + Gold Accents
   ================================================ */

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

:root {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --bg-card: #111111;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --accent: #C5A55A;
    --accent-hover: #D4B96E;
    --border: #333333;
    --error: #E74C3C;
    --success: #2ECC71;
    --placeholder: #666666;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ================================================
   SEZIONE 1: HERO
   ================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../immagini/background.jpg') center center / cover no-repeat;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 24px;
    max-width: 800px;
}

.hero__logo {
    width: 280px;
    margin: 0 auto 48px;
}

.hero__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hero__subtitle {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.hero__details {
    margin-bottom: 56px;
}

.hero__date,
.hero__address {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.hero__date i,
.hero__address i {
    color: var(--accent);
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    font-size: 1.2rem;
    transition: var(--transition);
    animation: bounceDown 2s infinite;
}

.hero__cta:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(5px); }
}

/* ================================================
   SEZIONE 2: CHI È PAOLETTO
   ================================================ */
.about {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__image-wrapper {
    position: relative;
}

.about__image {
    width: 100%;
    max-width: 450px;
    border-radius: 8px;
    border: 2px solid var(--accent);
    object-fit: cover;
    object-position: center top;
    aspect-ratio: 3 / 4;
    box-shadow: 0 4px 30px rgba(197, 165, 90, 0.12);
}

.about__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.about__role {
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.about__description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.about__social {
    display: flex;
    gap: 16px;
}

.about__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    font-size: 1.1rem;
    transition: var(--transition);
}

.about__social-link:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

/* ================================================
   SEZIONE 3: FORM DI REGISTRAZIONE
   ================================================ */
.registration {
    padding: 100px 0;
    background: var(--bg-primary);
}

.registration__header {
    text-align: center;
    margin-bottom: 48px;
}

.registration__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.registration__subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.registration__card {
    max-width: 580px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 48px 40px;
    box-shadow: 0 4px 20px rgba(197, 165, 90, 0.1);
    position: relative;
    overflow: hidden;
}

/* --- Form Styles --- */
.form__group {
    margin-bottom: 24px;
}

.form__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form__input-wrapper {
    position: relative;
}

.form__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition);
}

.form__input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    transition: var(--transition);
    outline: none;
}

.form__input::placeholder {
    color: var(--placeholder);
}

.form__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.15);
}

.form__input.is-invalid {
    border-color: var(--error);
}

.form__input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.form__input.is-valid {
    border-color: var(--success);
}

.form__error {
    display: block;
    font-size: 0.8rem;
    color: var(--error);
    margin-top: 6px;
    min-height: 20px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.form__error.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- reCAPTCHA --- */
.form__recaptcha {
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form__recaptcha .form__error {
    text-align: center;
}

/* --- Submit Button --- */
.form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 14px 24px;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.form__submit:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.form__submit:active {
    transform: scale(0.98);
}

.form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form__submit-icon {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.form__submit:hover .form__submit-icon {
    transform: translateX(4px);
}

/* --- Success Message --- */
.registration__success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.registration__success.is-visible {
    display: block;
    animation: fadeInUp 0.6s ease forwards;
}

.registration__success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 24px;
}

.registration__success-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.registration__success-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

/* --- Privacy Checkbox --- */
.form__privacy {
    margin-bottom: 24px;
}

.form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    user-select: none;
}

.form__checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.form__checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--bg-secondary);
    position: relative;
    transition: var(--transition);
    margin-top: 1px;
}

.form__checkbox:checked + .form__checkbox-custom {
    background: var(--accent);
    border-color: var(--accent);
}

.form__checkbox:checked + .form__checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form__checkbox:focus + .form__checkbox-custom {
    box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.15);
}

.form__checkbox.is-invalid + .form__checkbox-custom {
    border-color: var(--error);
}

.form__checkbox-text {
    flex: 1;
}

.form__policy-link {
    color: var(--accent) !important;
    text-decoration: underline !important;
    transition: var(--transition);
}

.form__policy-link:hover {
    color: var(--accent-hover) !important;
}

.form__privacy .form__error {
    padding-left: 32px;
}

/* --- Modal / Fancybox --- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.is-open {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.modal__container {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 80vh;
    background: #0a1628;
    border: 1px solid #1a3a5c;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(10, 22, 40, 0.6), 0 0 0 1px rgba(197, 165, 90, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid #1a3a5c;
    flex-shrink: 0;
}

.modal__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: #C5A55A;
    margin: 0;
}

.modal__close {
    background: none;
    border: none;
    color: #5a7a9a;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal__close:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
}

.modal__body {
    padding: 28px 32px 32px;
    overflow-y: auto;
    color: #8a9ab0;
    font-size: 0.9rem;
    line-height: 1.75;
    scrollbar-width: thin;
    scrollbar-color: #1a3a5c #0a1628;
}

.modal__body::-webkit-scrollbar {
    width: 6px;
}

.modal__body::-webkit-scrollbar-track {
    background: #0a1628;
}

.modal__body::-webkit-scrollbar-thumb {
    background: #1a3a5c;
    border-radius: 3px;
}

.modal__body::-webkit-scrollbar-thumb:hover {
    background: #2a4a6c;
}

.modal__update {
    font-size: 0.8rem;
    color: #5a7a9a;
    margin-bottom: 24px;
    font-style: italic;
}

.modal__body h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: #FFFFFF;
    margin: 28px 0 12px;
}

.modal__body h3:first-of-type {
    margin-top: 0;
}

.modal__body h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #c0d0e0;
    margin: 20px 0 8px;
}

.modal__body p {
    margin: 0 0 12px;
}

.modal__body ul {
    margin: 0 0 16px;
    padding-left: 20px;
}

.modal__body li {
    margin-bottom: 6px;
}

.modal__body a {
    color: #C5A55A;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.modal__body a:hover {
    color: #D4B96E;
}

.modal__body strong {
    color: #c0d0e0;
    font-weight: 600;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalFadeIn .modal__container {
    from {
        transform: translateY(20px);
    }
    to {
        transform: translateY(0);
    }
}

/* ================================================
   SEZIONE 4: MAPPA
   ================================================ */
.location {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.location__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 16px;
}

.location__address {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.location__address i {
    color: var(--accent);
    margin-right: 8px;
}

.location__map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 20px rgba(197, 165, 90, 0.1);
}

.location__map {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
    filter: grayscale(100%) invert(92%) contrast(83%);
}

/* ================================================
   SEZIONE 5: FOOTER
   ================================================ */
.footer {
    padding: 60px 0 40px;
    background: var(--bg-primary);
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer__logo {
    width: 200px;
    margin: 0 auto 24px;
    filter: invert(1);
    opacity: 0.85;
}

.footer__social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    font-size: 1rem;
    transition: var(--transition);
}

.footer__social-link:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.footer__copy {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* ================================================
   COOKIE BANNER
   ================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cookie-banner.is-hiding {
    transform: translateY(100%);
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
}

.cookie-banner__text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.cookie-banner__link {
    color: var(--accent) !important;
    text-decoration: underline !important;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cookie-banner__link:hover {
    color: var(--accent-hover) !important;
}

.cookie-banner__accept {
    flex-shrink: 0;
    padding: 8px 24px;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.cookie-banner__accept:hover {
    background: var(--accent-hover);
}

/* ================================================
   RESPONSIVE
   ================================================ */

/* Tablet */
@media (max-width: 768px) {
    .hero__logo {
        width: 200px;
        margin-bottom: 36px;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }

    .about {
        padding: 70px 0;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about__image {
        max-width: 320px;
        margin: 0 auto;
    }

    .about__social {
        justify-content: center;
    }

    .registration {
        padding: 70px 0;
    }

    .registration__title {
        font-size: 2rem;
    }

    .registration__card {
        padding: 36px 28px;
    }

    .location {
        padding: 70px 0;
    }

    .location__title {
        font-size: 2rem;
    }

    .location__map {
        height: 300px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero__logo {
        width: 160px;
        margin-bottom: 28px;
    }

    .hero__title {
        font-size: 1.7rem;
    }

    .hero__subtitle {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    .hero__details {
        margin-bottom: 40px;
    }

    .hero__date,
    .hero__address {
        font-size: 0.9rem;
    }

    .about {
        padding: 50px 0;
    }

    .about__name {
        font-size: 2rem;
    }

    .about__description {
        font-size: 0.95rem;
    }

    .registration {
        padding: 50px 0;
    }

    .registration__title {
        font-size: 1.6rem;
    }

    .registration__card {
        padding: 28px 20px;
    }

    .form__input {
        padding: 12px 14px 12px 44px;
        font-size: 0.9rem;
    }

    .form__submit {
        min-height: 50px;
        font-size: 0.82rem;
    }

    .location {
        padding: 50px 0;
    }

    .location__title {
        font-size: 1.6rem;
    }

    .location__map {
        height: 260px;
    }

    .footer {
        padding: 40px 0 30px;
    }

    .footer__logo {
        width: 150px;
    }

    .modal__container {
        max-height: 90vh;
    }

    .modal__header {
        padding: 18px 20px;
    }

    .modal__title {
        font-size: 1.2rem;
    }

    .modal__body {
        padding: 20px;
        font-size: 0.85rem;
    }

    .modal {
        padding: 12px;
    }

    .cookie-banner__inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 12px 20px;
    }

    .cookie-banner__text {
        font-size: 0.75rem;
    }

    .cookie-banner__accept {
        width: 100%;
        padding: 10px 24px;
    }
}
