/* =============================================
   VARIABLES & RESET
============================================= */
:root {
    --primary:    #30637E;
    --secondary:  #316565;
    --dark:       #3C3C3C;
    --muted:      #6E6E6E;
    --light-bg:   #F7FCFE;
    --dark-bg:    #1e3a4a;
    --white:      #FFFFFF;
    --border:     #dde8ed;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'Source Sans 3', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { list-style: none; }

/* =============================================
   LAYOUT
============================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.narrow { max-width: 780px; }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.two-col-equal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.text-center { text-align: center; }
.mt-24  { margin-top: 24px; }
.mt-40  { margin-top: 40px; }

/* =============================================
   HEADER / NAV
============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo { height: 48px; width: auto; }

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: border-color .2s, color .2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle img { width: 28px; }

/* =============================================
   BUTTONS
============================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background .2s, color .2s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover { background: var(--secondary); text-decoration: none; }

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: var(--white); text-decoration: none; }

/* =============================================
   HERO
============================================= */
.hero {
    position: relative;
    min-height: 520px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-alt { min-height: 340px; }
.hero-short { min-height: 260px; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 35, 45, .65);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 580px;
    padding: 80px 24px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero-text {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 32px;
    color: rgba(255,255,255,.9);
}

/* =============================================
   SECTIONS
============================================= */
.section       { padding: 80px 0; }
.section-white { background: var(--white); }
.section-light { background: var(--light-bg); }
.section-dark  { background: var(--dark-bg); }

.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 12px;
}
.section-title.white { color: var(--white); }

.section-lead {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 48px;
    max-width: 640px;
}
.section-lead.white { color: rgba(255,255,255,.8); }
.text-center .section-lead { margin-left: auto; margin-right: auto; }

h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

h3 {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

/* =============================================
   SERVICE CARDS
============================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.card-service {
    border-left: 3px solid var(--primary);
    padding: 24px 28px;
    background: var(--white);
}

.card-service h3 {
    color: var(--primary);
    font-size: 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 16px;
}

.card-service p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* =============================================
   METHOD LIST
============================================= */
.method-list {
    list-style: none;
    margin: 20px 0;
}

.method-list li {
    padding: 6px 0 6px 20px;
    position: relative;
    font-size: 15px;
    color: var(--dark);
}

.method-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 10px;
    top: 10px;
}

/* =============================================
   DECORATIVE DOTS
============================================= */
.decorative-dots {
    display: grid;
    grid-template-columns: repeat(3, 10px);
    gap: 6px;
    margin: 32px 0;
}

.decorative-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    display: block;
}

/* =============================================
   VANTAGGI GRID
============================================= */
.vantaggi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin: 40px 0;
}

.vantaggio-item {
    text-align: center;
    color: var(--white);
}

.vantaggio-item p { font-size: 14px; margin-top: 12px; }

.vantaggio-icon {
    width: 72px;
    height: 72px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.vantaggio-icon img { width: 36px; height: 36px; filter: brightness(0) invert(1); }

.vantaggi-light .vantaggio-item { color: var(--dark); }
.vantaggio-item-light p { color: var(--muted); }

.vantaggio-icon-dark {
    background: var(--dark-bg);
}

.note.white { color: rgba(255,255,255,.8); font-size: 14px; }

/* =============================================
   STUDIO PHOTO
============================================= */
.studio-photo-wrap { position: relative; }

.studio-photo {
    width: 100%;
    height: 460px;
    object-fit: cover;
    object-position: top center;
}

.studio-photo-wrap figcaption {
    font-size: 12px;
    color: var(--muted);
    text-align: right;
    margin-top: 8px;
}

/* =============================================
   CONTACT INFO
============================================= */
.contact-info {
    font-size: 15px;
    line-height: 1.8;
    color: var(--dark);
}

.contact-info a { color: var(--primary); }

/* =============================================
   SECTION BANNER (dark CTA)
============================================= */
.section-banner {
    background: var(--dark-bg);
    padding: 64px 0;
    color: var(--white);
    position: relative;
}

.section-banner h2 { color: var(--white); margin-bottom: 16px; }
.section-banner p  { color: rgba(255,255,255,.85); max-width: 700px; margin: 0 auto; }

.dots-left {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

/* =============================================
   AREA CARDS
============================================= */
.area-card {
    background: var(--white);
    border-left: 3px solid var(--primary);
    padding: 28px 32px;
}

.area-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 12px;
}

.area-card p { font-size: 14px; color: var(--muted); }

/* =============================================
   FAQ
============================================= */
.faq-list { margin-top: 40px; }

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
}

.faq-icon {
    font-size: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform .2s;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
    display: none;
    padding: 0 0 20px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* =============================================
   CONTACT FORM
============================================= */
.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label { font-size: 14px; font-weight: 600; color: var(--dark); }

.form-group input,
.form-group textarea {
    padding: 10px 14px;
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--dark);
    outline: none;
    transition: border-color .2s;
}

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

.form-note { font-size: 12px; color: var(--muted); }

.alert {
    padding: 14px 18px;
    font-size: 14px;
    margin-bottom: 20px;
}
.alert-success { background: #e6f4ea; color: #2d6a4f; border-left: 4px solid #2d6a4f; }
.alert-error   { background: #fdecea; color: #c0392b; border-left: 4px solid #c0392b; }

/* =============================================
   FOOTER
============================================= */
.site-footer {
    background: var(--dark-bg);
    color: rgba(255,255,255,.75);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 160px repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 48px;
}

.footer-brand { display: flex; align-items: flex-start; }

.footer-logo { width: 120px; height: auto; filter: brightness(0) invert(1); }

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-col p,
.footer-col li {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,.7);
    margin-bottom: 4px;
}

.footer-col a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
}
.footer-col a:hover { color: var(--white); text-decoration: underline; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0;
    font-size: 12px;
    color: rgba(255,255,255,.5);
    display: flex;
}

.footer-bottom .container {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: underline; }

/* =============================================
   UTILITY
============================================= */
.img-fluid { width: 100%; height: auto; }
.rounded { border-radius: 4px; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
    .two-col,
    .two-col-equal { grid-template-columns: 1fr; gap: 40px; }

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

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

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }

    h2 { font-size: 26px; }
    .hero-content h1 { font-size: 36px; }
}

@media (max-width: 600px) {
    .main-nav {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
        box-shadow: 0 4px 12px rgba(0,0,0,.08);
    }

    .main-nav.open { display: flex; }

    .main-nav a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        border-right: none;
    }

    .nav-toggle { display: block; }

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

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

    .hero-content h1 { font-size: 28px; }
    .section { padding: 56px 0; }

    .dots-left { display: none; }
}
