/* =========================================================
   LA ROSA DI SHARON S.M.S. - FOGLIO DI STILE
   ========================================================= */

/* COLORI E MISURE DEL SITO (modificali qui per cambiarli ovunque) */
:root {
    --navy: #1c3c6b;
    --navy-dark: #12294b;
    --accent: #2a5694;
    --gold: #b8976a;
    --gold-light: #d9bd93;
    --ivory: #f8f6f1;
    --sand: #efe9df;
    --ink: #2b3440;
    --muted: #5f6b78;
    --green: #2d8c55;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(28, 60, 107, 0.08);
    --shadow-hover: 0 20px 44px rgba(28, 60, 107, 0.16);
    --serif: 'Old Standard TT', Georgia, 'Times New Roman', serif;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

/* TESTI GENERALI */
p {
    font-size: 16px;
    line-height: 1.7;
    color: #48525e;
}

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

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =========================================================
   HEADER
   ========================================================= */
.main-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 14px rgba(28, 60, 107, 0.06);
    padding: 14px 0;
    z-index: 100;
}

/* filo oro sottile, ripreso dal logo */
.main-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #b8976a 20%, #b8976a 80%, transparent);
    opacity: 0.7;
}

.main-header .container {
    width: 94%;
    max-width: 1280px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

/* LOGO + NOME */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.logo img {
    display: block;
    height: 80px;
    width: auto;
    transition: height 0.3s ease;
}

/* header compatto quando si scorre la pagina */
.main-header.is-scrolled {
    padding: 8px 0;
    box-shadow: 0 6px 24px rgba(28, 60, 107, 0.10);
}

.main-header.is-scrolled .logo img {
    height: 58px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.logo-text .logo-title {
    font-family: 'Old Standard TT', Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 22px;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    color: #1c3c6b;
    white-space: nowrap;
}

.logo-text span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6c7a89;
    white-space: nowrap;
}

.logo-text span::before {
    content: "";
    width: 22px;
    height: 1px;
    background: #b8976a;
}

/* MENU */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 22px;
}

nav a {
    position: relative;
    display: inline-block;
    padding: 6px 0;
    text-decoration: none;
    color: #1c3c6b;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    white-space: nowrap;
    transition: color 0.2s ease;
}

/* sottolineatura oro al passaggio / pagina attiva */
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #b8976a;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

nav a:hover::after,
nav a.active::after {
    transform: scaleX(1);
}

nav a.active {
    font-weight: 600;
}

/* AREA RISERVATA come pulsante */
nav a.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid #1c3c6b;
    border-radius: 30px;
    transition: background 0.2s ease, color 0.2s ease;
}

nav a.nav-cta::after {
    display: none;
}

nav a.nav-cta:hover {
    background: #1c3c6b;
    color: #fff;
}

/* pulsante hamburger (visibile solo sotto i 1240px) */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e3ddd2;
    border-radius: 10px;
    font-size: 20px;
    color: #1c3c6b;
    cursor: pointer;
}

/* TABLET E MOBILE: menu a scomparsa */
@media (max-width: 1240px) {
    .header-content {
        flex-wrap: wrap;
        gap: 0;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        flex-basis: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.25s ease;
    }

    nav.active {
        max-height: 480px;
        opacity: 1;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: 12px;
    }

    nav ul li {
        border-top: 1px solid #eee;
    }

    nav ul li:last-child {
        border-top: none;
    }

    nav a {
        display: block;
        padding: 14px 4px;
        font-size: 14px;
    }

    nav a::after {
        display: none;
    }

    nav a.active {
        color: #b8976a;
    }

    nav a.nav-cta {
        display: flex;
        justify-content: center;
        margin: 12px 0 6px;
        padding: 12px;
    }
}

@media (max-width: 600px) {
    .main-header {
        padding: 10px 0;
    }

    .logo {
        gap: 10px;
    }

    .logo img {
        height: 54px;
    }

    .logo-text {
        gap: 5px;
    }

    .logo-text .logo-title {
        font-size: 17px;
        letter-spacing: 0.05em;
    }

    .logo-text span {
        font-size: 9.5px;
        letter-spacing: 0.12em;
        gap: 6px;
    }

    .logo-text span::before {
        width: 14px;
    }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    background: var(--navy-dark) url('img/hero.webp') center right / cover no-repeat;
    height: 400px;
    position: relative;
}

.hero-overlay {
    background: linear-gradient(90deg,
            rgba(18, 41, 75, 0.88) 0%,
            rgba(18, 41, 75, 0.62) 40%,
            rgba(18, 41, 75, 0.10) 78%);
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--serif);
    font-weight: 400;
    color: #fff;
    font-size: 52px;
    line-height: 1.12;
    letter-spacing: 0.005em;
    margin-bottom: 20px;
}

/* home */
.hero-home {
    height: 560px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.hero-eyebrow::before {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--gold);
}

.hero-home .hero-subtitle {
    margin: 0 0 32px;
    max-width: 480px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* pagine interne */
.hero-small {
    height: 280px;
}

.hero-small h1 {
    font-size: 44px;
    margin-bottom: 14px;
}

.hero-small .hero-content h1::before {
    content: "";
    display: block;
    width: 44px;
    height: 2px;
    margin-bottom: 18px;
    background: var(--gold);
}

.hero-small .hero-subtitle {
    color: rgba(255, 255, 255, 0.88);
    max-width: 600px;
}

/* =========================================================
   PULSANTI
   ========================================================= */
.btn-primary,
.btn-light,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.btn-primary {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 10px 24px rgba(28, 60, 107, 0.25);
}

.btn-primary:hover {
    background: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(28, 60, 107, 0.32);
}

.btn-light {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn-light:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.btn-primary::after,
.btn-light::after {
    content: "\2192";
    font-weight: 400;
    transition: transform 0.3s;
}

.btn-primary:hover::after,
.btn-light:hover::after {
    transform: translateX(4px);
}

.cta-button {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* =========================================================
   SEZIONI E TITOLI
   ========================================================= */
.section-padding {
    padding: 64px 0;
}

.bkg-grey {
    background: var(--sand);
}

.section-title {
    font-family: var(--serif);
    font-weight: 400;
    text-align: center;
    font-size: 40px;
    line-height: 1.2;
    color: var(--navy);
    margin: 56px 0 44px;
}

.section-padding .section-title {
    margin-top: 0;
}

.section-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    margin: 20px auto 0;
    background: var(--gold);
}

.green-title {
    color: var(--green);
}

.max-text {
    max-width: 820px;
    margin: 0 auto 16px;
    font-size: 20px;
    line-height: 1.85;
    color: var(--ink);
    text-align: center;
}

/* separatore con piccolo rombo oro */
.divider {
    position: relative;
    width: 180px;
    height: 1px;
    margin: 56px auto;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.divider::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    border: 1px solid var(--gold);
    background: var(--ivory);
    transform: translate(-50%, -50%) rotate(45deg);
}

/* =========================================================
   CARD
   ========================================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card-grid-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.card-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.card {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-link:hover .card {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card-link:hover .card img {
    transform: scale(1.05);
}

/* etichetta sopra la foto, con sfumatura blu */
.card-label,
.card-label.red,
.card-label.green,
.card-label.blue,
.card-label.lightgreen {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 70px 26px 22px;
    background: linear-gradient(to top, rgba(18, 41, 75, 0.92) 0%, rgba(18, 41, 75, 0.55) 55%, rgba(18, 41, 75, 0) 100%);
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 400;
    color: #fff;
    text-align: left;
}

.card-label::after {
    content: "\2192";
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(217, 189, 147, 0.7);
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    color: var(--gold-light);
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.card-link:hover .card-label::after {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    transform: translateX(3px);
}

.card-body {
    padding: 18px 26px 22px;
    background: #fff;
}

.card-description {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--muted);
}

/* colori generici (non più usati sulle card) */
.blue { background: var(--accent); }
.green { background: var(--green); }
.red { background: #c0392b; }
.lightgreen { background: #4caf7d; }

/* card piccole (destinatari) */
.small-card img {
    height: 220px;
}

.small-card p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    font-family: var(--serif);
    font-size: 21px;
    color: var(--navy);
}

.small-card p::after {
    content: "\2192";
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    color: var(--gold);
    transition: transform 0.3s;
}

.card-link:hover .small-card p::after {
    transform: translateX(4px);
}

/* card valori / vantaggi */
.value-card {
    padding: 36px 28px 32px;
    text-align: center;
}

.value-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--sand);
    color: var(--navy);
    font-size: 24px;
}

.value-card h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 23px;
    color: var(--navy);
    margin-bottom: 10px;
}

.value-card p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

.text-center .card-grid,
.section-padding .max-text + .card-grid {
    margin-top: 36px;
    text-align: center;
}

/* =========================================================
   BLOCCHI IMMAGINE + TESTO
   ========================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    position: relative;
    padding: 0 18px 18px 0;
}

/* cornice oro decorativa */
.about-image::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 18px;
    right: 0;
    bottom: 0;
    border: 1px solid var(--gold);
    border-radius: var(--radius);
}

.about-image img {
    position: relative;
    display: block;
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-text {
    padding-right: 10px;
}

.about-text h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 38px;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 22px;
}

.about-text h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    margin-top: 18px;
    background: var(--gold);
}

.about-text p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-intro {
    font-size: 18px;
    color: var(--ink) !important;
}

.about-bottom {
    font-size: 17px;
    margin-top: 20px;
}

.about-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 22px 0;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(28, 60, 107, 0.06);
    font-size: 16px;
    font-weight: 500;
    color: var(--navy);
}

.about-list i {
    color: var(--gold);
    font-size: 18px;
}

/* =========================================================
   DESCRIZIONE SERVIZI
   ========================================================= */
.services-description {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.service-row {
    position: relative;
    background: #fff;
    padding: 36px 40px;
    border-radius: var(--radius);
    border-left: 3px solid var(--gold);
    box-shadow: var(--shadow);
}

.service-text h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 28px;
    color: var(--navy);
    margin-bottom: 12px;
}

.service-text p {
    line-height: 1.8;
}

/* =========================================================
   PREZZI
   ========================================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: center;
}

.pricing-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.pricing-card h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 26px;
    color: var(--navy);
}

.pricing-card.featured {
    border: 2px solid var(--gold);
    transform: scale(1.05);
}

.price {
    font-size: 40px;
    font-weight: 700;
    color: var(--navy);
    margin: 15px 0;
}

.price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--muted);
}

.pricing-card ul {
    list-style: none;
    margin: 20px 0 28px;
}

.pricing-card ul li {
    margin: 10px 0;
    color: var(--muted);
}

/* =========================================================
   VECCHIO MODULO CONTATTI (classi mantenute per compatibilità)
   ========================================================= */
.contact-form { max-width: 100%; margin: auto; display: flex; flex-direction: column; gap: 15px; }
.form-row { display: flex; gap: 15px; }
.form-row input { flex: 1; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); outline: none; }
.contact-form button { align-self: flex-start; }
.success-box { background: var(--green); color: #fff; padding: 12px; border-radius: 8px; margin-bottom: 20px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact-image img { width: 100%; height: 500px; object-fit: cover; border-radius: 12px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    position: relative;
    background: var(--navy-dark);
    color: #fff;
    margin-top: 72px;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--navy), var(--gold), var(--navy));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    padding: 56px 0 44px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand img {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    padding: 6px;
    border-radius: 50%;
    background: #fff;
}

.footer-col h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 22px;
    margin-bottom: 4px;
}

.footer-col h4 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 12px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    color: #c9d3e2;
}

.footer-bottom {
    text-align: center;
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: #9fb1cc;
}

/* =========================================================
   ANIMAZIONE DI COMPARSA (attiva solo con JavaScript)
   ========================================================= */
.js .reveal {
    opacity: 0;
    translate: 0 26px;
    transition: opacity 0.7s ease, translate 0.7s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

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

    .hero-content h1 {
        font-size: 40px;
    }

    .about-grid {
        gap: 44px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 92%;
    }

    .hero {
        background-position: 70% center;
    }

    .hero-home {
        height: 520px;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(18, 41, 75, 0.9) 0%, rgba(18, 41, 75, 0.6) 100%);
    }

    .hero-content h1 {
        font-size: 34px;
        line-height: 1.18;
    }

    .hero-small {
        height: 230px;
    }

    .hero-small h1 {
        font-size: 32px;
    }

    .hero-home .hero-subtitle {
        font-size: 16px;
    }

    .section-padding {
        padding: 48px 0;
    }

    .section-title {
        font-size: 30px;
        margin: 44px 0 32px;
    }

    .max-text {
        font-size: 17px;
    }

    .divider {
        margin: 40px auto;
    }

    .card-grid-services {
        grid-template-columns: 1fr;
    }

    .card img {
        height: 230px;
    }

    .card-label,
    .card-label.red,
    .card-label.green {
        font-size: 22px;
        padding: 60px 20px 18px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* su mobile l'immagine va sempre sopra il testo */
    .about-image {
        order: -1;
    }

    .about-image img {
        height: 300px;
    }

    .about-text h2 {
        font-size: 30px;
    }

    .service-row {
        padding: 28px 24px;
    }

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

    .contact-image img {
        height: 300px;
    }

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

    .footer-brand {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .about-list {
        grid-template-columns: 1fr;
    }

    .hero-actions a {
        flex: 1 1 100%;
        justify-content: center;
    }

    .main-header.is-scrolled .logo img {
        height: 44px;
    }
}

/* TELEFONO */
.footer-phone a {
    color: #ffffff;
    text-decoration: none;
}

.footer-phone a:hover {
    text-decoration: underline;
}

.footer-phone i {
    color: #cfe0ff;
    margin-right: 6px;
}

/* =========================================================
   PAGINA CONTATTI
   ========================================================= */
.hero-subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    max-width: 560px;
    margin-top: -8px;
}

.hero-contact {
    height: 330px;
}

.hero-contact .hero-content {
    padding-bottom: 50px;
}

.contact-section {
    padding: 0 0 40px;
}

.contact-layout {
    position: relative;
    margin-top: -60px;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 32px;
    align-items: start;
}

/* ---------- colonna info ---------- */
.contact-info {
    background: #1c3c6b;
    color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(28, 60, 107, 0.18);
}

.contact-info-image {
    position: relative;
    height: 210px;
}

.contact-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-info-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(28, 60, 107, 0) 40%, #1c3c6b 100%);
}

.contact-info-body {
    padding: 8px 34px 36px;
}

.contact-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #d9bd93;
}

.contact-eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: #b8976a;
}

.contact-info h3 {
    font-family: 'Old Standard TT', Georgia, serif;
    font-weight: 400;
    font-size: 28px;
    margin: 12px 0 12px;
    color: #fff;
}

.contact-info p {
    color: #d5deeb;
    font-size: 15px;
}

.contact-list {
    list-style: none;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(184, 151, 106, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d9bd93;
    font-size: 16px;
}

.contact-list small {
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9fb1cc;
    margin-bottom: 2px;
}

.contact-list a,
.contact-list span {
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
    text-decoration: none;
}

.contact-list a:hover {
    color: #d9bd93;
}

.contact-list li:first-child a {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ---------- card form ---------- */
.contact-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 40px 44px 36px;
    box-shadow: 0 18px 40px rgba(28, 60, 107, 0.10);
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #1c3c6b, var(--accent) 60%, #b8976a);
}

.contact-card-head h2 {
    font-family: 'Old Standard TT', Georgia, serif;
    font-weight: 400;
    font-size: 30px;
    color: #1c3c6b;
    margin-bottom: 6px;
}

.contact-card-head p {
    font-size: 14px;
    color: #6c7a89;
    margin-bottom: 26px;
}

.req {
    color: #c0392b;
}

.cf-optional {
    font-weight: 400;
    color: #8a96a3;
    font-size: 12px;
}

.cf {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cf-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.cf-field > label {
    font-size: 13px;
    font-weight: 600;
    color: #1c3c6b;
}

.cf-input {
    position: relative;
}

.cf-input > i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa7b6;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s;
}

.cf input[type="text"],
.cf input[type="email"],
.cf input[type="tel"],
.cf select,
.cf textarea {
    width: 100%;
    font: inherit;
    font-size: 15px;
    color: #333;
    background: #f7f9fc;
    border: 1px solid #dde3ec;
    border-radius: 10px;
    padding: 13px 14px 13px 42px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.cf textarea {
    padding: 14px 16px;
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.cf select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 40px;
}

.cf select:invalid,
.cf select option[value=""] {
    color: #8a96a3;
}

.cf-select::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c7a89;
    pointer-events: none;
}

.cf ::placeholder {
    color: #a3aebb;
}

.cf input:focus,
.cf select:focus,
.cf textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(42, 86, 148, 0.12);
}

.cf-input:focus-within > i {
    color: var(--accent);
}

/* errori */
.cf-field.has-error input,
.cf-field.has-error select,
.cf-field.has-error textarea {
    border-color: #d64545;
    background: #fff8f8;
}

.cf-field.has-error input:focus,
.cf-field.has-error select:focus,
.cf-field.has-error textarea:focus {
    box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.12);
}

.cf-field.has-error .cf-input > i {
    color: #d64545;
}

.cf-error {
    font-size: 13px;
    color: #c0392b;
}

.cf-error::before {
    content: "\f06a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 6px;
}

.cf-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.cf-counter {
    margin-left: auto;
    font-size: 12px;
    color: #8a96a3;
}

.cf-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fdf1f0;
    border: 1px solid #f3c7c2;
    color: #a5322a;
    border-radius: 10px;
    padding: 13px 16px;
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.5;
}

.cf-alert i {
    margin-top: 2px;
}

/* checkbox privacy */
.cf-checkbox {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
}

.cf-checkbox input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.cf-box {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 1.5px solid #c4cdd9;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cf-box i {
    font-size: 12px;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s;
}

.cf-checkbox input:checked + .cf-box {
    background: var(--accent);
    border-color: var(--accent);
}

.cf-checkbox input:checked + .cf-box i {
    opacity: 1;
    transform: scale(1);
}

.cf-checkbox input:focus-visible + .cf-box {
    box-shadow: 0 0 0 4px rgba(42, 86, 148, 0.2);
}

.cf-field.has-error .cf-box {
    border-color: #d64545;
}

.cf-check-text {
    font-size: 13px;
    line-height: 1.6;
    color: #5b6775;
}

/* invio */
.cf-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 6px;
    padding-top: 22px;
    border-top: 1px solid #edf0f5;
}

.cf-submit {
    border: none;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    padding: 15px 34px;
    border-radius: 40px;
    box-shadow: 0 8px 20px rgba(42, 86, 148, 0.3);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.cf-submit:hover {
    background: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(42, 86, 148, 0.4);
}

.cf-submit i {
    margin-right: 6px;
}

.cf-submit-loading {
    display: none;
}

.cf-submit.is-loading {
    opacity: 0.8;
    cursor: wait;
    transform: none;
}

.cf-submit.is-loading .cf-submit-label {
    display: none;
}

.cf-submit.is-loading .cf-submit-loading {
    display: inline;
}

.cf-note {
    font-size: 13px;
    color: #8a96a3;
}

.cf-note i {
    color: var(--green);
    margin-right: 4px;
}

/* honeypot */
.cf-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* conferma invio */
.cf-success {
    text-align: center;
    padding: 40px 10px 20px;
}

.cf-success-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #e8f6ee;
    color: var(--green);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 10px #f3fbf6;
}

.cf-success h3 {
    font-family: 'Old Standard TT', Georgia, serif;
    font-weight: 400;
    font-size: 30px;
    color: #1c3c6b;
    margin-bottom: 12px;
}

.cf-success p {
    max-width: 440px;
    margin: 0 auto 28px;
    color: #5b6775;
}

.btn-outline {
    display: inline-block;
    padding: 12px 28px;
    border: 1.5px solid var(--accent);
    border-radius: 40px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

/* responsive */
@media (max-width: 960px) {
    .contact-layout {
        grid-template-columns: 1fr;
        margin-top: -40px;
    }

    .contact-card {
        order: -1;
    }
}

@media (max-width: 600px) {
    .contact-card {
        padding: 30px 22px 26px;
    }

    .contact-info-body {
        padding: 4px 22px 26px;
    }

    .cf-row {
        grid-template-columns: 1fr;
    }

    .cf-submit {
        width: 100%;
    }

    .cf-actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

/* =========================================================
   DOCUMENTAZIONE
   ========================================================= */
.doc-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 960px;
    margin: 40px auto 0;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 28px 32px;
    background: #fff;
    border-radius: var(--radius);
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.doc-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.doc-icon {
    flex: 0 0 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ivory);
    color: var(--navy);
    font-size: 28px;
}

.doc-body {
    flex: 1;
    min-width: 0;
}

.doc-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
}

.doc-body h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 24px;
    color: var(--navy);
    margin: 0 0 8px;
}

.doc-body p {
    margin: 0 0 8px;
    color: var(--ink);
    line-height: 1.65;
}

.doc-meta {
    font-size: 13px;
    color: var(--muted);
}

.doc-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.doc-btn {
    justify-content: center;
    padding: 11px 22px;
    font-size: 14px;
}

.doc-btn.btn-primary::after {
    content: none;
}

.doc-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    color: var(--navy);
    border: 1px solid var(--navy);
    transition: background 0.3s, color 0.3s;
}

.doc-btn-outline:hover {
    background: var(--navy);
    color: #fff;
}

@media (max-width: 768px) {
    .doc-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px 22px;
    }

    .doc-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }

    .doc-btn {
        flex: 1;
    }
}
