/* ==========================================================================
   Michele Acocella — link page (versione minimale)
   La versione completa del sito è nel branch "archive/full-site".
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-text: #141414;
  --color-text-soft: #5a5a5a;
  --color-border: #e6e6e6;
  --color-surface: #f7f7f5;
  --color-accent: #1f6f4f;
  --color-accent-dark: #185a40;
  --color-accent-soft: #e7f2ec;
  --column: 480px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ---------- Colonna ---------- */

.page {
  max-width: var(--column);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 3rem;
}

@media (prefers-reduced-motion: no-preference) {
  .page {
    animation: fade-in 0.6s ease both;
  }

  @keyframes fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
}

.label {
  margin: 2.25rem 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ---------- Profilo ---------- */

.profile {
  text-align: center;
}

.profile-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  object-fit: cover;
}

/* Icone di contatto sotto la foto: piccole, ma con area di tocco da 44px */
.quick-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.quick-links a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-soft);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.quick-links a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.profile h1 {
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.profile-role {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent);
}

.profile-intro {
  margin-top: 1rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--color-text-soft);
  text-align: justify;
  hyphens: none;
  text-wrap: pretty;
}

/* ---------- Video ---------- */

.video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  overflow: hidden;
  border-radius: 14px;
  background: var(--color-surface);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-soft);
  text-align: center;
}

/* ---------- Progetti ---------- */

.projects {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.project {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.project-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 700;
  overflow: hidden;
}

.project-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.project-body strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.3;
}

.project-arrow {
  flex: 0 0 auto;
  color: var(--color-accent);
  font-weight: 600;
}

/* ---------- Pulsanti link ---------- */

.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.link-btn svg {
  flex: 0 0 auto;
}

.link-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.link-btn.primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

.link-btn.primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #ffffff;
}

/* ---------- Stampa ---------- */

.press-list {
  padding: 0 1rem;
  list-style: none;
  border: 1px solid var(--color-border);
  border-radius: 14px;
}

.press-list li + li {
  border-top: 1px solid var(--color-border);
}

.press-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  font-size: 0.95rem;
  color: var(--color-text-soft);
  transition: color 0.2s ease;
}

.press-list a::after {
  content: "→";
  color: var(--color-accent);
  font-weight: 600;
}

.press-list a:hover {
  color: var(--color-accent);
}

/* ---------- Footer ---------- */

footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: #9a9a9a;
}

footer a,
footer button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

footer a:hover,
footer button:hover {
  color: var(--color-accent);
}

/* ---------- Banner cookie ---------- */

.consent {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 50;
  max-width: var(--column);
  margin: 0 auto;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.consent[hidden] {
  display: none;
}

.consent a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

/* Rifiuta e Accetta hanno lo stesso aspetto: nessun pulsante in evidenza */
.consent-btn {
  flex: 1 1 0;
  min-height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #ffffff;
  font: inherit;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.consent-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ---------- Pagina privacy ---------- */

.page.doc {
  max-width: 640px;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
}

.doc h1 {
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.doc h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.05rem;
}

.doc p,
.doc li {
  font-size: 0.95rem;
  color: var(--color-text-soft);
}

.doc p {
  margin-top: 0.6rem;
}

.doc ul {
  margin: 0.6rem 0 0 1.2rem;
}

.doc a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc .updated {
  font-size: 0.85rem;
  color: #9a9a9a;
}

.doc table {
  width: 100%;
  margin-top: 0.8rem;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.doc th,
.doc td {
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  color: var(--color-text-soft);
}

.doc th {
  background: var(--color-surface);
  color: var(--color-text);
}
