/* ============================================
   Meditazione Universale - Landing Page Modena
   ============================================ */
   
/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: Arial, Helvetica, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #2D3748;
    background: linear-gradient(135deg, #4a6670 0%, #5b6b8a 50%, #7a6b9a 100%);
    -webkit-font-smoothing: antialiased;
}

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

a { color: #605fb4; text-decoration: none; transition: color 0.3s; }
a:hover { color: #4b0082; }

ul, ol { margin-left: 1.5em; margin-bottom: 1em; }
li { margin-bottom: 0.4em; }
p { margin-bottom: 1em; }

h2, h3 { font-family: 'Times New Roman', Times, Georgia, serif; color: #1a1a2e; line-height: 1.3; }
h2 { font-size: 32px; font-weight: 700; }
h3 { font-size: 24px; font-weight: 700; }

/* Layout */
.section-text, .section-cta, .section-two-cols, .section-quote,
.section-maestro, .section-form-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ============================================
   Fade-in animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Header
   ============================================ */
#masthead {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.97);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 2rem;
    display: flex;
    justify-content: center;
}

.brand img {
    max-width: 550px;
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.brand:hover img { transform: scale(1.02); }

/* ============================================
   Main content wrapper
   ============================================ */
main#content {
    background: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 0 60px rgba(0,0,0,0.15);
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

/* ============================================
   Banner
   ============================================ */
.banner { max-width: 100%; margin: 0; }
.banner img { width: 100%; display: block; }

.immagine-zoom { overflow: hidden; position: relative; }
.immagine-zoom img { transition: transform 0.6s ease; }
.immagine-zoom:hover img { transform: scale(1.03); }

/* ============================================
   Hero Title
   ============================================ */
.hero-title {
    text-align: center;
    padding: 3rem 2rem 2.5rem;
    background: linear-gradient(180deg, #f8f7ff 0%, #ffffff 100%);
}

.titolo-principale {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 2.6rem;
    background: linear-gradient(135deg, #4949a8 0%, #7b2d8e 50%, #605fb4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.25;
}

.hero-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #605fb4, #7b2d8e);
    border-radius: 2px;
    margin: 0 auto 1.5rem;
}

.titolo-secondario {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 500;
    color: #4A5568;
    line-height: 1.6;
}

/* ============================================
   Section headings
   ============================================ */
.section-heading {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #605fb4, #24a3e2);
    border-radius: 2px;
}

.text-content {
    font-size: 17px;
    line-height: 1.6;
    max-width: 100%;
}

/* ============================================
   Decorative section dividers
   ============================================ */
.section-divider {
    text-align: center;
    padding: 0.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.section-divider span {
    display: inline-block;
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #605fb4, transparent);
}

/* ============================================
   CTA Buttons
   ============================================ */
.section-cta { text-align: center; padding: 2rem; }

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 44px;
    border-radius: 50px;
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: Arial, sans-serif;
    text-decoration: none !important;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}
.cta-button:hover::before { left: 100%; }
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    text-decoration: none !important;
}
.cta-button:active { transform: translateY(-1px); }
.cta-icon { font-size: 1.3rem; }

.cta-blue    { background: linear-gradient(135deg, #012169 0%, #1a3a7a 100%); }
.cta-purple  { background: linear-gradient(135deg, #4b0082 0%, #6b21a8 100%); }
.cta-lightblue { background: linear-gradient(135deg, #1a8fd0 0%, #24a3e2 100%); }

/* ============================================
   Quote boxes
   ============================================ */
.section-quote { padding: 1.5rem 2rem; }

.quote-box {
    background: linear-gradient(135deg, #605fb4 0%, #4b3f9e 40%, #7b5ea7 100%);
    padding: 50px 50px 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(96,95,180,0.35);
}

.quote-icon {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 5rem;
    color: rgba(255,255,255,0.2);
    line-height: 0.5;
    margin-bottom: 10px;
}

.quote-text {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 1.15rem;
    color: #ffffff;
    font-style: italic;
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

.quote-author-line {
    width: 50px;
    height: 2px;
    background: rgba(255,255,255,0.4);
    margin: 0 auto 1rem;
}

.quote-author {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0;
}

/* ============================================
   Two columns cards
   ============================================ */
.section-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.col-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(96,95,180,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.col-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(96,95,180,0.18);
}

.card-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #605fb4, #24a3e2);
    border-radius: 16px 16px 0 0;
}
.card-accent.accent-alt {
    background: linear-gradient(90deg, #7b2d8e, #605fb4);
}

.col-card h3 { font-size: 22px; margin-bottom: 0.8rem; color: #1a1a2e; }
.col-card h3 small { font-size: 13px; font-weight: 400; font-family: Arial, sans-serif; color: #718096; }

.styled-list { list-style: none; margin-left: 0; padding-left: 0; }
.styled-list li {
    position: relative;
    padding-left: 28px;
    font-weight: 600;
    margin-bottom: 0.6em;
}
.styled-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #605fb4, #24a3e2);
    opacity: 0.7;
}

.text-large { font-size: 1.15em; }

/* ============================================
   Maestro section
   ============================================ */
.section-maestro {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: flex-start;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}
.maestro-video { display: flex; justify-content: center; }
.maestro-video iframe {
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 100%;
}
.maestro-text { line-height: 1.75; }
.maestro-text p, .maestro-text ul { text-align: justify; }

/* ============================================
   Accordion
   ============================================ */
.accordion-container { margin-top: 0.5rem; }
.accordion-item { border-bottom: 1px solid #edf2f7; }
.accordion-item:last-child { border-bottom: none; }

.accordion-toggle {
    width: 100%;
    text-align: left;
    padding: 14px 36px 14px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #2D3748;
    position: relative;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    transition: color 0.3s;
}
.accordion-toggle::after {
    content: '';
    position: absolute;
    right: 8px; top: 50%;
    width: 8px; height: 8px;
    border-right: 2px solid #605fb4;
    border-bottom: 2px solid #605fb4;
    transform: translateY(-60%) rotate(45deg);
    transition: transform 0.3s, border-color 0.3s;
}
.accordion-item.open .accordion-toggle::after {
    transform: translateY(-30%) rotate(-135deg);
}
.accordion-toggle:hover { color: #605fb4; }

.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.accordion-content p { padding: 0 0 16px 0; line-height: 1.8; color: #4A5568; font-style: italic; }

/* ============================================
   Form & Gallery section
   ============================================ */
.section-form-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.form-container {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(96,95,180,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.form-container h3 { margin-bottom: 1.2rem; color: #1a1a2e; }
.form-container h3 a { color: inherit; }

.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-size: 15px; }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #ffffff;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #605fb4;
    box-shadow: 0 0 0 3px rgba(96,95,180,0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #a0aec0; }
.form-group textarea { resize: vertical; min-height: 120px; }

.radio-group { display: flex; gap: 10px; padding: 8px 0; }
.radio-pill { display: inline-flex !important; align-items: center; cursor: pointer; }
.radio-pill input[type="radio"] { display: none; }
.radio-pill span {
    display: inline-block;
    padding: 8px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    background: #fff;
}
.radio-pill input[type="radio"]:checked + span {
    background: #605fb4;
    color: #fff;
    border-color: #605fb4;
    box-shadow: 0 2px 8px rgba(96,95,180,0.3);
}
.radio-pill:hover span { border-color: #605fb4; }

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    color: #4A5568;
}
.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px; height: 18px;
    accent-color: #605fb4;
}

.privacy-text { font-size: 13px; padding-left: 0; color: #718096; }

.btn-submit {
    background: linear-gradient(135deg, #605fb4 0%, #4b3f9e 100%);
    color: #fff;
    border: none;
    padding: 16px 44px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(96,95,180,0.3);
    width: 100%;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(96,95,180,0.4);
}

.form-image img {
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: transform 0.4s;
}
.form-image:hover img { transform: scale(1.02); }

.gallery-col { display: flex; flex-direction: column; gap: 20px; }
.gallery-image { overflow: hidden; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.gallery-image img { width: 100%; transition: transform 0.5s; }
.gallery-image:hover img { transform: scale(1.04); }

.form-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 1rem;
}
.form-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* ============================================
   Footer
   ============================================ */
#colophon { background: linear-gradient(135deg, #605fb4 0%, #4b3f9e 100%); margin-top: 0; }

.footer-top { padding: 35px 2rem 20px; text-align: center; }
.footer-social { display: flex; justify-content: center; gap: 16px; }
.footer-social a {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s;
}
.footer-social a:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }
.footer-social svg { fill: currentColor; }

.footer-middle { background: #ffffff; padding: 30px 2rem; text-align: center; }
.footer-middle img { max-width: 400px; margin: 0 auto; transition: transform 0.3s; }
.footer-middle a:hover img { transform: scale(1.03); }

.footer-bottom { padding: 25px 2rem; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.85); margin: 0; font-size: 14px; }
.footer-bottom a { color: rgba(255,255,255,0.85); transition: color 0.3s; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .section-maestro { grid-template-columns: 1fr; }
    .maestro-video { justify-content: center; }
}

@media (max-width: 768px) {
    .titolo-principale { font-size: 1.6rem; }
    .titolo-secondario { font-size: 1rem; }
    .section-two-cols { grid-template-columns: 1fr; }
    .section-form-gallery { grid-template-columns: 1fr; }
    .section-maestro { grid-template-columns: 1fr; }
    .brand img { max-width: 300px; }
    .quote-box { padding: 30px 24px; }
    .quote-text { font-size: 1rem; }
    .quote-icon { font-size: 3.5rem; }
    .cta-button { font-size: 0.95rem; padding: 14px 30px; }
    h2 { font-size: 26px; }
    h3 { font-size: 20px; }
    .hero-title { padding: 2rem 1.5rem; }
    .immagine-zoom img { transform: scale(1.75); transform-origin: center center; }
    .gallery-col .gallery-image { border-radius: 12px; }
    .form-container { padding: 20px; }
    .radio-group { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .header-inner { padding: 12px 1rem; }
    .brand img { max-width: 260px; }
    body { font-size: 16px; }
    .section-text, .section-cta, .section-two-cols, .section-quote,
    .section-maestro, .section-form-gallery { padding-left: 1rem; padding-right: 1rem; }
}
