:root {
    --bg: #080b15;
    --card: #11172a;
    --text: #f4f7ff;
    --muted: #a8b1ca;
    --accent: #8b5cff;
    --accent2: #00d4ff;
    --danger: #ff477e;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* HEADER */

.topbar {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: rgba(8, 11, 21, .86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 10px 40px rgba(0,0,0,.35);
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    font-size: 20px;
}

.brand img {
    height: 200px;
    width: auto;
    display: block;
}

.topbar nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar a {
    color: var(--text);
    text-decoration: none;
}

/* BUTTONS */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(
        135deg,
        var(--accent2),
        var(--accent),
        #ff2daa
    );
    color: white;
    text-decoration: none;
    font-weight: 800;
    padding: 14px 22px;
    cursor: pointer;
    box-shadow: 0 14px 45px rgba(124,61,255,.28);
}

.button.small {
    padding: 10px 16px;
    font-size: 14px;
}

.button.full {
    width: 100%;
    margin-top: 18px;
}

.button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* HERO */

.hero {
    min-height: 58vh;
    padding: 150px 28px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(circle at 50% 10%, rgba(124,61,255,.4), transparent 35%),
        radial-gradient(circle at 20% 40%, rgba(0,212,255,.22), transparent 28%);
}

.heroText {
    max-width: 820px;
}

.eyebrow {
    color: var(--accent2);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 13px;
}

.hero h1,
.claimIntro h1,
.messagePage h1 {
    font-size: clamp(42px, 7vw, 86px);
    line-height: .93;
    margin: 12px 0 18px;
}

.hero p,
.claimIntro p,
.messagePage p {
    color: var(--muted);
    font-size: 20px;
    line-height: 1.45;
}

/* MAP */

.worldMap {
    height: calc(100vh - 110px);
    min-height: 620px;
}

.mapInfo {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 14px 20px;
    background: #0b1020;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: var(--muted);
}

.mapInfo strong {
    color: #fff;
}

.mapInfo span {
    font-size: 14px;
}

/* MODAL */

.modal {
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0,0,0,.7);
    display: grid;
    place-items: center;
    padding: 20px;
}

.hidden {
    display: none !important;
}

.modalCard {
    position: relative;
    width: min(430px, 96vw);
    background: var(--card);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 28px;
    padding: 18px;
    box-shadow: 0 30px 90px rgba(0,0,0,.5);
}

.close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: rgba(0,0,0,.55);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
}

.modalImg {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 22px;
}

/* CLAIM */

.claimPage {
    padding: 130px 28px 40px;
}

.claimIntro {
    max-width: 900px;
    margin: 0 auto 28px;
    text-align: center;
}

.claimGrid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
}

#claimMap {
    height: 680px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
}

/* CARDS */

.card {
    background: rgba(17,23,42,.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 30px;
    padding: 24px;
}

.card h2 {
    margin-top: 0;
    font-size: 30px;
}

.card label {
    display: block;
    margin: 14px 0 8px;
    color: #dfe6ff;
    font-weight: 700;
}

.card input,
.card textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.12);
    background: #070a13;
    color: white;
    border-radius: 16px;
    padding: 14px 15px;
    font-size: 16px;
}

.card textarea {
    min-height: 120px;
    resize: vertical;
}

/* STATUS */

.status {
    padding: 13px 14px;
    border-radius: 15px;
    background: #070a13;
    color: var(--muted);
    border: 1px solid rgba(255,255,255,.1);
}

.status.ok {
    color: #56f0a7;
}

.status.bad {
    color: #ff7298;
}

/* FOOTER */

.siteFooter {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 22px 24px;
    background: #080b15;
    border-top: 1px solid rgba(255,255,255,.08);
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.siteFooter a {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.siteFooter a:hover {
    color: var(--accent2);
}

/* FOUNDERS BANNER */

.foundersBanner {
    background: linear-gradient(
        135deg,
        var(--accent2),
        var(--accent)
    );
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .3px;
}

.ohpModal{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(10px);
}

.ohpModal.hidden{
  display:none;
}

.ohpModalCard{
  width:min(92vw,500px);
  padding:32px;
  border-radius:24px;
  text-align:center;
  background:#111827;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 30px 80px rgba(0,0,0,.5);
}

.ohpIcon{
  font-size:48px;
  margin-bottom:16px;
}

.ohpModalCard h2{
  margin-bottom:14px;
}

.ohpModalCard p{
  line-height:1.6;
  opacity:.9;
  margin-bottom:24px;
}

#modalLink{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#ffffff;
    font-weight:700;
    text-decoration:none;
    padding:10px 16px;
    border-radius:999px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.15);
    transition:all .2s ease;
}

#modalLink:hover{
    color:#ffffff;
    background:rgba(255,255,255,.15);
    transform:translateY(-1px);
}

.successPage{
    padding-top:140px;
    padding-bottom:80px;
    display:flex;
    justify-content:center;
}

.successCard{
    max-width:800px;
    width:100%;
    text-align:center;
}

.successIcon{
    font-size:64px;
    margin-bottom:20px;
}

.successCard h1{
    font-size:56px;
    margin-bottom:10px;
}

.successSubtitle{
    font-size:22px;
    opacity:.8;
    margin-bottom:40px;
}

.ownerBox{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:16px;
    margin:30px 0;
}

.ownerPhoto{
    width:220px;
    height:220px;
    border-radius:24px;
    object-fit:cover;
    border:3px solid rgba(255,255,255,.15);
}

.founderBadge{
    display:inline-flex;
    flex-direction:column;
    gap:8px;
    margin:20px 0;
    padding:16px 24px;
    border-radius:16px;
    background:linear-gradient(
      135deg,
      #ffd700,
      #ffb300
    );
    color:#111;
    font-weight:700;
}

.founderBadge span{
    font-size:14px;
    font-weight:500;
}

.share-input{
    margin-top:20px;
    margin-bottom:20px;
}

.share-buttons{
    justify-content:center;
}

.hidden{
    display:none;
}
/* MOBILE */

@media (max-width: 900px) {

    .topbar {
        height: 80px;
        padding: 0 16px;
    }

    .brand img {
        height: 56px;
    }

    .topbar nav a:first-child {
        display: none;
    }

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

    #claimMap {
        height: 460px;
    }

    .hero {
        padding: 120px 20px 60px;
    }

    .hero h1,
    .claimIntro h1 {
        font-size: 44px;
    }

    .button.small {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* FOTO UTENTI SULLA MAPPA */

.photoIcon{
    width:40px !important;
    height:40px !important;
    border-radius:12px;
    border:2px solid #fff;
    object-fit:cover;
    box-shadow:0 4px 12px rgba(0,0,0,.35);
}

.photoTileButton{
    border:0;
    background:transparent;
    padding:0;
    cursor:pointer;
}

.photoTileButton img{
    width:40px;
    height:40px;
    border-radius:12px;
    border:2px solid #fff;
    object-fit:cover;
    box-shadow:0 4px 12px rgba(0,0,0,.35);
}