/* Layout tenant - sfondo e testo “quasi” bianco/nero; titoli = colore utente (--color-primary) */
:root {
    --color-bg: #fafafa;
    --color-bg-hero: #f5f5f5;
    --color-primary: #6ec1e4;
    --color-primary-dark: #5aacd0;
    --color-text: #0d0d0d;
    --color-text-muted: #262626;
    --color-border: #e5e5e5;
    --color-white: #fcfcfc;
    --color-footer-bg: #1a1a1a;
    --color-footer-text: #fff;
    --color-footer-muted: #fff;
    --font-heading: 'Libre Baskerville', serif;
    --font-body: 'Lato', sans-serif;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.58824em;
    font-weight: 300;
    color: #0d0d0d;
    background-color: #fafafa;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
}
img, video, iframe, object, embed { max-width: 100%; height: auto; }
.section-body img, .section-body video { max-width: 100%; height: auto; display: block; }
.section-body iframe, .section-body object { max-width: 100%; }
.section-body, .main-content { overflow-wrap: break-word; word-wrap: break-word; }
.section-article { overflow: hidden; }
.main-content { max-width: 100%; }

.site-header { background: var(--color-white); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.logo { display: flex; align-items: center; text-decoration: none; color: inherit; }
.logo img { max-height: 60px; width: auto; max-width: 240px; object-fit: contain; }
.logo-fallback { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--color-primary); }
.main-nav { display: flex; gap: 1.75rem; }
.main-nav a { color: var(--color-primary); text-decoration: none; font-weight: 500; font-size: 0.95rem; text-transform: uppercase; }
.main-nav a:hover { color: var(--color-primary-dark); }
.lang-switch { font-size: 0.85rem; color: var(--color-text-muted); }
.lang-switch a { color: inherit; text-decoration: none; padding: 0 2px; }
.lang-switch a.active { font-weight: 700; color: var(--color-primary); }

.main-content { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.informazioni-utili .hero-section { text-align: center; padding: 2.5rem 0 2rem; }
.page-title { font-family: var(--font-heading); font-size: clamp(1.9rem, 5vw, 2.5rem); font-weight: 500; margin: 0 0 0.5rem; color: var(--color-primary); }
.greeting { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 500; margin: 0.25rem 0; color: var(--color-text); }
.welcome {
    font-size: 1.15rem;
    font-weight: 400;
    margin: 1rem 0 0;
    color: var(--color-text);
}
.instruction { font-size: 0.95rem; color: var(--color-text-muted); margin: 0.5rem 0 0; }

.icons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2rem 0 3rem; }
.icons-grid.icons-grid--count-1 { grid-template-columns: 1fr; }
.icons-grid.icons-grid--count-2 { grid-template-columns: repeat(2, 1fr); }
.icon-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.5rem 1rem; background: var(--color-white); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; border: 1px solid var(--color-border); }
.icon-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.icon-wrap { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.icon-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.icon-wrap i { font-size: 2.25rem; color: var(--color-primary); }
.icon-wrap.no-img { background: var(--color-bg-hero); border-radius: 50%; }
.icon-card h3 { margin: 0; font-family: var(--font-heading); font-size: 1rem; font-weight: 500; color: #1a1a1a; line-height: 1.3; }

.btn-contact { display: inline-block; padding: 0.9rem 2rem; background: var(--color-primary); color: var(--color-white) !important; text-decoration: none; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.05em; border-radius: 9999px; transition: background 0.2s; }
.btn-contact:hover { background: var(--color-primary-dark); }

.demo-share {
    background: #fcfcfc;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 2rem 1.25rem;
    margin: 1.25rem auto 2rem;
    max-width: 900px;
    text-align: center;
}
.demo-share-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--color-primary);
    margin: 0 0 0.6rem;
}
.demo-share-desc {
    margin: 0 0 1.25rem;
    color: var(--color-text);
    font-weight: 400;
}
.demo-share-url-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}
.demo-share-url-input {
    flex: 1 1 260px;
    min-width: 240px;
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    padding: 0.75rem 1rem;
    background: #fff;
    color: var(--color-text);
    font-size: 0.95rem;
}
.demo-share-action {
    border: none;
    border-radius: 9999px;
    padding: 0.65rem 1.05rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
    text-decoration: none;
}
.demo-share-action--primary {
    background: var(--color-primary);
    color: #fff;
}
.demo-share-action--primary:hover {
    background: var(--color-primary-dark);
}
.demo-share-action--ghost {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}
.demo-share-action--ghost:hover {
    background: rgba(0,0,0,0.03);
}
.demo-share-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin: 0.85rem 0 1.1rem;
}
.demo-share-social-label {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}
.demo-share-btn {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.35rem;
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.2s;
}
.demo-share-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
}
.demo-share-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.95rem;
    margin-top: 0.75rem;
}
.demo-share-qr canvas {
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: var(--radius);
}

.section-detail { padding-top: 1rem; }
.section-back { margin-bottom: 1.5rem; }
.btn-back { display: inline-block; padding: 0.65rem 1.25rem; background: var(--color-primary); color: var(--color-white) !important; text-decoration: none; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.03em; border-radius: 9999px; border: 2px solid var(--color-primary); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn-back:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: var(--color-white) !important; }
.section-article { background: #fcfcfc; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; border: 1px solid var(--color-border); }
.section-article header { text-align: center; margin-bottom: 1.5rem; }
.section-icon { display: inline-block; width: 56px; height: 56px; margin-bottom: 0.75rem; }
.section-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.section-icon i { font-size: 2rem; color: var(--color-primary); }
.section-article h1 { font-family: var(--font-heading); font-size: 1.9rem; margin: 0; color: var(--color-primary); text-transform: uppercase; font-weight: 500; }
.section-body { color: var(--color-text); font-family: var(--font-body); }
.section-body h2, .section-body h3 { font-family: var(--font-heading); color: var(--color-primary); font-weight: 500; }
.section-body h2 { font-size: 1.35rem; margin: 1.5rem 0 0.5rem; }
.section-body h3 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
.section-body h2:first-child, .section-body h3:first-child { margin-top: 0; }
.section-body p {
    margin: 0.5rem 0 1rem;
    color: #1a1a1a;
    font-weight: 400;
    font-family: var(--font-body);
}
.section-map {
    margin: 1.25rem 0 1.75rem;
}
.section-map--top {
    width: 100%;
    margin: 0 0 1.5rem;
    position: relative;
    left: 0;
    right: 0;
}
.section-map h2 {
    margin-top: 0;
}
.section-map-frame {
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    width: 100%;
}
.section-map-frame--full {
    width: 100%;
}
.section-map-frame iframe {
    width: 100%;
    min-height: 500px;
    height: 500px;
    border: 0;
    display: block;
}
@media (max-width: 768px) {
    .section-map--top {
        margin-bottom: 1rem;
    }
    .section-map-frame iframe {
        min-height: 500px;
        height: 500px;
    }
}
.section-body ul { margin: 0.5rem 0 1rem; padding-left: 1.5rem; }
.section-body blockquote { margin: 1.5rem 0; padding: 1rem 1.5rem; background: var(--color-bg-hero); border-left: 4px solid var(--color-primary); border-radius: 0 4px 4px 0; }
.section-body blockquote p { margin: 0 0 0.5rem; }
.section-body blockquote footer { font-size: 0.9rem; color: var(--color-text-muted); }
.section-back--bottom { margin-top: 1.5rem; margin-bottom: 0; }
.btn-document { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--color-primary); color: #fff !important; text-decoration: none; font-size: 0.9rem; font-weight: 600; border-radius: 9999px; }
.btn-document:hover { background: var(--color-primary-dark); color: #fff !important; }

.site-footer { background: var(--color-footer-bg); color: var(--color-footer-text); padding: 3rem 1.5rem 2rem; margin-top: 3rem; }
.footer-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.footer-columns { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 3rem; margin-bottom: 2rem; }
.footer-columns--two { justify-content: space-between; align-items: flex-start; }
.footer-social-col,
.footer-contact-col {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 0;
    text-align: left;
}
.footer-inner .btn-contact { margin-bottom: 2rem; }
.site-footer .btn-contact { background: var(--color-primary); }
.site-footer .btn-contact:hover { background: var(--color-primary-dark); }
.footer-about, .footer-follow, .footer-social, .footer-contact { margin-bottom: 0; min-width: 180px; }
.footer-about h3, .footer-follow h3, .footer-social h3, .footer-contact h3 { font-family: var(--font-heading); font-size: 0.9rem; letter-spacing: 0.1em; color: var(--color-footer-muted); margin: 0 0 0.5rem; }
.footer-contact { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #333; width: 100%; }
.footer-contact .footer-contact-line { margin: 0; padding: 0; border: none; }
.footer-about p, .footer-follow p { margin: 0; font-size: 0.95rem; line-height: 1.6; max-width: 480px; margin-left: auto; margin-right: auto; }
.footer-contact-line { font-size: 0.9rem; color: #fff; }
.footer-contact-line p { margin: 0.15rem 0; display: flex; align-items: center; gap: 0.5rem; }
.footer-contact-line i { margin-right: 0.4rem; }
.footer-contact-line a { color: #fff; text-decoration: none; }
.footer-contact-line a:hover { text-decoration: underline; }
.footer-brandline {
    margin: 1.25rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid #333;
    font-size: 0.8rem;
    color: var(--color-footer-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.footer-logo-mark {
    font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    font-weight: 700;
}
.footer-logo-mark .logo-ospite { color: #ffffff; }
.footer-logo-mark .logo-smart { color: #ea580c; }
.footer-copy { opacity: 0.9; }
.footer-social-links { margin-top: 0.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.footer-social-links a { color: #fff; text-decoration: none; font-size: 1.5rem; opacity: 0.9; transition: opacity 0.2s; }
.footer-social-links a:hover { opacity: 1; text-decoration: none; }
.footer-social { margin-bottom: 0; }

@media (max-width: 900px) {
    .icons-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .main-content { padding: 1.5rem 1rem 3rem; }
    .informazioni-utili .hero-section { padding: 1.5rem 0 1.5rem; }
}

@media (max-width: 600px) {
    .header-inner { flex-direction: column; align-items: flex-start; }
    .logo { align-self: center; }
    .logo img { max-height: 96px; max-width: 280px; }
    .main-nav { order: 3; width: 100%; }
    .lang-switch { margin-left: auto; }
    .icons-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .icon-card { padding: 1rem 0.75rem; }
    .section-article { padding: 1.5rem; }
    .page-title { font-size: 1.6rem; }
    .greeting { font-size: 1.2rem; }
    /* Footer centrato su mobile */
    .site-footer { text-align: center; }
    .footer-inner { text-align: center; }
    .footer-columns--two {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .footer-social-col,
    .footer-contact-col {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
    }
    .footer-about,
    .footer-follow,
    .footer-social,
    .footer-contact,
    .footer-contact-line {
        text-align: center;
    }
    .footer-contact-line p {
        justify-content: center;
    }
    .footer-brandline {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 400px) {
    body { font-size: 16px; }
    .header-inner { padding: 1rem; }
}
