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

body { overflow-x: hidden; max-width: 100%; }

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #fff;
  color: #111;
  font-size: 15px;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

nav img { height: 120px; }

nav .links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 13px;
  letter-spacing: .06em;
}

nav .links a:hover { text-decoration: underline; }

nav .lang {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: #999;
  align-items: center;
}

nav .lang button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  color: #999;
  padding: 0;
}

nav .lang button.on { color: #111; font-weight: 700; }

/* ── SEZIONI ── */
section {
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 48px;
}

section + section { border-top: 1px solid #e8e8e8; }

h2 {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 32px;
}

p { margin-bottom: 14px; color: #333; }
p:last-child { margin-bottom: 0; }

/* ── PORTALUCE ── */
.portaluce-logo { margin-bottom: 32px; }
.portaluce-logo img { height: 36px; filter: invert(1); }

/* ── CONCEPT LABEL ── */
.concept-label {
  font-size: 11px;
  letter-spacing: .1em;
  color: #aaa;
  margin-top: 12px;
  margin-bottom: 0;
  font-style: italic;
}

/* ── TUNNEL FOTO ── */
.tunnel-img {
  width: 100%;
  margin: 20px 0 0;
  overflow: hidden;
}

.tunnel-img img { width: 100%; display: block; }

/* ── TEAM ── */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 40px;
}

.member {
  cursor: pointer;
  transition: opacity .2s;
}
.member:hover { opacity: .75; }

.member .foto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 18px;
}

.member .foto img {
  width: 200%;
  aspect-ratio: 1;
  object-fit: cover;
}

.member h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

.member p { font-size: 13px; color: #555; }

/* ── MODAL CAROSELLO ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.85);
  align-items: center;
  justify-content: center;
}

.modal-overlay.open { display: flex; }
  
.modal-card {
  background: #fff;
  max-width: 560px;
  width: 90%;
  padding: 40px;
  position: relative;
  animation: fadeIn .2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-card .foto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 24px;
}

.modal-card .foto img {
  width: 200%;
  aspect-ratio: 1;
  object-fit: cover;
}

.modal-card h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 12px;
}

.modal-card p { font-size: 14px; color: #444; }

.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none; border: none;
  font-size: 22px; cursor: pointer;
  color: #999; line-height: 1;
}
.modal-close:hover { color: #111; }

.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
  padding: 12px;
  line-height: 1;
  transition: color .15s;
}
.modal-arrow:hover { color: #ccc; }
.modal-arrow.prev { left: 16px; }
.modal-arrow.next { right: 16px; }

.modal-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.modal-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ccc;
  display: block;
  transition: background .2s;
}
.modal-dots span.on { background: #111; }

/* ── CONTATTI ── */
.contact-info { font-size: 14px; }
.contact-info a { text-decoration: underline; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid #e8e8e8;
  text-align: center;
  padding: 24px 48px;
  font-size: 11px;
  color: #aaa;
  letter-spacing: .06em;
}

/* ── I18N ── */
[data-lang] { display: none; }

body.it [data-lang="it"] { display: block; }
body.it span[data-lang="it"] { display: inline; }
body.en [data-lang="en"] { display: block; }
body.en span[data-lang="en"] { display: inline; }


/* ── DIAMONDS DECO (solo desktop) ── */
.deco {
  display: none;
  position: absolute;
  pointer-events: none;
  user-select: none;
}

@media (min-width: 641px) {
  .deco { display: block; }

  /* intro: angolo in alto a destra */
  .deco-1 { top: -30px; right: -60px; width: 260px; opacity: .15; transform: rotate(0deg); }
  /* intro: angolo in basso a sinistra, ruotato */
  .deco-2 { bottom: -20px; left: -40px; width: 200px; opacity: .2; transform: rotate(180deg); }

  /* portaluce: alto a sinistra */
  .deco-3 { top: -20px; left: -50px; width: 240px; opacity: .12; transform: rotate(270deg); }
  /* portaluce: basso a destra */
  .deco-4 { bottom: -20px; right: -40px; width: 180px; opacity: .22; transform: rotate(90deg); }

  /* chi siamo: alto a destra */
  .deco-5 { top: -30px; right: -60px; width: 260px; opacity: .15; transform: rotate(0deg); }
  /* chi siamo: basso a sinistra */
  .deco-6 { bottom: -20px; left: -40px; width: 200px; opacity: .2; transform: rotate(180deg); }

  /* contatti: alto a destra */
  .deco-7 { top: -20px; right: -40px; width: 200px; opacity: .2; transform: rotate(90deg); }
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav { padding: 14px 20px; }
  nav img { height: 52px; }
  nav .links { gap: 16px; }
  section { padding: 48px 20px; }
  .team { grid-template-columns: 1fr; gap: 40px; }
  footer { padding: 20px; }
}

/* ── PIXEL 7 e schermi ~412px ── */
@media (max-width: 430px) {
  nav { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  nav img { height: 44px; }
  nav .links { gap: 12px; font-size: 11px; }
  section { padding: 40px 16px; }
  footer { padding: 16px; font-size: 10px; }
  .tunnel-img img { width: 100%; }
}
