/* =====================================================================
   Immobiliare Claudia — template.css
   Base, header, topline, menu, footer, bottoni, utility, animazioni
   Identità: verde bosco + oro + crema, angoli netti, taglio elegante.
   ===================================================================== */

:root {
    --verde:      #14382f;
    --verde-2:    #0d2a23;
    --verde-3:    #091d18;
    --oro:        #c59b45;
    --oro-chiaro: #dfc17b;
    --crema:      #f7f3ec;
    --grigio:     #e8e2d8;
    --testo:      #182420;
    --muted:      #6b7169;
    --bianco:     #ffffff;
    --linea:      #e8e2d8;
    --ombra:      0 18px 40px rgba(20, 56, 47, 0.10);
    --ombra-sm:   0 8px 22px rgba(20, 56, 47, 0.08);
    --font:       'Jost', Arial, Helvetica, sans-serif;
    --serif:      'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --ct:         cubic-bezier(.22,.61,.36,1);
    --maxw:       1360px;
}

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

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
    font-family: var(--font);
    color: var(--testo);
    background: var(--bianco);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; color: var(--verde); letter-spacing: .2px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.container--narrow { max-width: 960px; }

::selection { background: var(--oro); color: var(--verde-2); }

/* ---------- Icone ---------- */
.ic { width: 22px; height: 22px; flex: 0 0 auto; }
.ic-s { width: 17px; height: 17px; }

/* ---------- Bottoni ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 28px;
    font-family: var(--font); font-size: 13px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    border: 1.5px solid transparent; cursor: pointer;
    transition: background .3s var(--ct), color .3s var(--ct), transform .3s var(--ct), border-color .3s var(--ct);
}
.btn:hover { transform: translateY(-2px); }
.btn--gold  { background: var(--oro); color: var(--verde-2); border-color: var(--oro); }
.btn--gold:hover  { background: var(--verde); color: #fff; border-color: var(--verde); }
.btn--green { background: var(--verde); color: #fff; border-color: var(--verde); }
.btn--green:hover { background: var(--oro); color: var(--verde-2); border-color: var(--oro); }
.btn--outline { background: transparent; color: var(--verde); border-color: var(--verde); }
.btn--outline:hover { background: var(--verde); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; color: var(--verde); border-color: #fff; }
.btn--wa { background: #1f8f4e; color: #fff; border-color: #1f8f4e; }
.btn--wa:hover { background: #14382f; border-color: #14382f; color: #fff; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Topline ---------- */
#topline {
    background: var(--verde);
    color: rgba(255,255,255,.86);
    border-bottom: 3px solid var(--oro);
    font-size: 13px;
}
#topline .container {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 30px; min-height: 46px; flex-wrap: wrap;
}
#topline span, #topline a { display: inline-flex; align-items: center; gap: 7px; }
#topline .ic { color: var(--oro-chiaro); }
#topline a { transition: color .25s; }
#topline a:hover { color: var(--oro-chiaro); }

/* ---------- Header ---------- */
#header {
    position: sticky; top: 0; z-index: 200;
    background: #fff;
    border-bottom: 1px solid var(--linea);
    box-shadow: 0 6px 22px rgba(20,56,47,.05);
}
.content-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 30px; padding: 16px 26px;
}
.brand img { width: 180px; max-width: 60vw; height: auto; }

.menu-desktop { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
.menu-link {
    position: relative;
    padding: 10px 13px;
    font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--verde); white-space: nowrap;
    transition: color .25s var(--ct);
}
.menu-link::after {
    content: ''; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
    background: var(--oro); transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ct);
}
.menu-link:hover::after, .menu-link.is-active::after { transform: scaleX(1); }
.menu-link.is-active { color: var(--oro); }

.menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    width: 46px; height: 46px; padding: 12px;
    background: var(--verde); border: none; cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; background: #fff; transition: .3s var(--ct); }

/* ---------- Menu mobile ---------- */
.menu-mobile {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(9,29,24,.55); backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ct), visibility .35s;
}
.menu-mobile.is-open { opacity: 1; visibility: visible; }
.menu-mobile__panel {
    position: absolute; top: 0; right: 0; height: 100%;
    width: min(400px, 88vw); background: var(--verde-2); color: #fff;
    padding: 30px 28px; overflow-y: auto;
    transform: translateX(100%); transition: transform .4s var(--ct);
    display: flex; flex-direction: column;
}
.menu-mobile.is-open .menu-mobile__panel { transform: translateX(0); }
.menu-mobile__close {
    align-self: flex-end; width: 44px; height: 44px;
    background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff;
    font-size: 26px; line-height: 1; cursor: pointer; transition: .25s;
}
.menu-mobile__close:hover { background: var(--oro); color: var(--verde-2); border-color: var(--oro); }
.menu-mobile__logo { width: 210px; background: #fff; padding: 14px; margin: 14px 0 24px; }
.menu-mobile nav a {
    display: block; padding: 15px 6px;
    border-bottom: 1px solid rgba(197,155,69,.28);
    font-size: 15px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
    transition: color .25s, padding-left .25s;
}
.menu-mobile nav a:hover, .menu-mobile nav a.is-active { color: var(--oro-chiaro); padding-left: 14px; }
.menu-mobile__contacts { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }

/* ---------- Testata pagine interne ---------- */
.page-band {
    position: relative;
    background: var(--verde); color: #fff;
    border-top: 4px solid var(--oro);
    padding: 66px 0 58px;
    overflow: hidden;
}
.page-band::before {
    content: ''; position: absolute; inset: 0;
    background-image: var(--band-img); background-size: cover; background-position: center;
    opacity: .16;
}
.page-band::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(13,42,35,.75), rgba(20,56,47,.35));
}
.page-band .container { position: relative; z-index: 2; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; color: rgba(255,255,255,.75); }
.breadcrumb a { color: var(--oro-chiaro); }
.breadcrumb strong { color: #fff; font-weight: 600; }
.page-band__title { color: #fff; font-size: clamp(34px, 5vw, 58px); }
.page-band__sub { max-width: 720px; margin-top: 12px; color: rgba(255,255,255,.85); font-size: 18px; }

/* ---------- Footer ---------- */
#footer { background: var(--verde-2); color: rgba(255,255,255,.82); border-top: 5px solid var(--oro); padding: 66px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 42px; }
.footer-logo { width: 240px; background: #fff; padding: 18px; margin-bottom: 20px; }
.footer-col h4 { color: #fff; font-size: 22px; margin-bottom: 18px; }
.footer-col p { margin-bottom: 12px; }
.footer-col a { transition: color .25s; display: inline-flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: var(--oro-chiaro); }
.footer-col .ic { color: var(--oro); }
.footer-links li { padding: 5px 0; }
.footer-links a { font-size: 14px; }
.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: var(--oro); color: var(--verde-2); transition: .3s var(--ct); }
.footer-social a:hover { background: #fff; transform: translateY(-3px); }
.footer-social .ic { color: currentColor; }
#bott-footer { margin-top: 56px; background: var(--verde-3); color: rgba(255,255,255,.62); font-size: 13px; }
#bott-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
#bott-footer a { color: var(--oro-chiaro); }
#bott-footer a:hover { text-decoration: underline; }

/* ---------- CTA flottante ---------- */
.floating-cta { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: none; flex-direction: column; gap: 12px; }
.floating-cta a { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; background: var(--verde); color: #fff; box-shadow: var(--ombra); }
.floating-cta__wa { background: #1f8f4e !important; }

/* ---------- Animazioni scroll ---------- */
[data-anim] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ct), transform .7s var(--ct); }
[data-anim].in { opacity: 1; transform: none; }
[data-anim].d1 { transition-delay: .08s; }
[data-anim].d2 { transition-delay: .16s; }
[data-anim].d3 { transition-delay: .24s; }
[data-anim].d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { [data-anim] { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive header/footer ---------- */
@media (max-width: 1120px) {
    .menu-desktop { display: none; }
    .menu-toggle { display: flex; }
    .floating-cta { display: flex; }
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 760px) {
    #topline .container { justify-content: center; gap: 8px 18px; font-size: 12px; }
    #topline span:first-child { flex-basis: 100%; justify-content: center; }
    .brand img { width: 200px; }
    .page-band { padding: 44px 0 40px; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    #bott-footer .container { flex-direction: column; text-align: center; }
    .container { padding: 0 18px; }
}
