:root {
  --black: #000000;
  --near-black: #080808;
  --white: #ffffff;
  --soft-white: #e7e7e7;
  --muted: #8c8c8c;
  --yellow: #ffd600;
  --line: rgba(255, 255, 255, 0.2);
  --yellow-soft: rgba(255, 214, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 214, 0, 0.07), transparent 25rem),
    var(--black);
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.page-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 30px;
  text-align: center;
  animation: page-in 0.9s ease both;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: clamp(180px, 31vw, 350px);
  height: auto;
  border-radius: 50%;
  filter:
    drop-shadow(0 0 18px rgba(255, 214, 0, 0.55))
    drop-shadow(0 0 52px rgba(255, 214, 0, 0.30));
  animation: logo-in 1.1s ease both;
}

h1 {
  margin: 34px 0 0;
  font-size: clamp(2rem, 5.5vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.brand-highlight {
  color: var(--yellow);
}

.brand-light {
  color: var(--white);
  font-weight: 300;
}

.construction {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 34px 0 0;
  color: var(--soft-white);
  font-size: clamp(0.9rem, 2vw, 1.18rem);
  letter-spacing: 0.27em;
  font-weight: 300;
}

.construction span {
  color: var(--yellow);
  font-size: 0.9em;
}

.content-section {
  margin-top: 78px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr);
  align-items: center;
  gap: 34px;
  margin-bottom: 34px;
}

.section-heading span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}

.section-heading span:last-child {
  background: linear-gradient(90deg, var(--line), transparent);
}

.section-heading h2 {
  margin: 0;
  color: var(--yellow);
  font-size: clamp(0.85rem, 1.7vw, 1.05rem);
  letter-spacing: 0.3em;
  font-weight: 500;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.platform-button {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 20px 24px;
  border: 2px solid var(--soft-white);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
  text-decoration: none;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.platform-button img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.platform-button span {
  display: flex;
  flex-direction: column;
}

.platform-button small {
  color: var(--soft-white);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.platform-button strong {
  margin-top: 2px;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  line-height: 1.15;
}

.platform-button:hover,
.platform-button:focus-visible {
  transform: translateY(-4px);
  border-color: var(--yellow);
  color: var(--yellow);
  box-shadow: 0 0 24px var(--yellow-soft);
  outline: none;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  max-width: 860px;
  margin: 0 auto;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: var(--soft-white);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  line-height: 1.5;
  transition: color 0.25s ease, transform 0.25s ease;
}

.social-icon {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.social-icon img {
  width: 46px;
  height: 46px;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--yellow);
  transform: translateY(-3px);
  outline: none;
}

.social-link:hover .social-icon,
.social-link:focus-visible .social-icon {
  background: rgba(255, 214, 0, 0.06);
  box-shadow: 0 0 25px var(--yellow-soft);
  transform: scale(1.05);
}

footer {
  margin-top: 86px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--muted);
  font-size: 0.86rem;
}

footer p {
  margin: 0;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(680px, calc(100% - 28px));
    padding-top: 40px;
  }

  h1 {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .construction {
    gap: 12px;
    letter-spacing: 0.18em;
  }

  .platform-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
  }

  .platform-button {
    justify-content: center;
  }

  .social-grid {
    gap: 26px;
  }
}

@media (max-width: 580px) {
  .page-shell {
    width: min(100% - 22px, 500px);
    padding-top: 28px;
  }

  .construction {
    font-size: 0.82rem;
  }

  .construction span {
    display: none;
  }

  .content-section {
    margin-top: 62px;
  }

  .section-heading {
    gap: 18px;
  }

  .section-heading h2 {
    letter-spacing: 0.2em;
  }

  .platform-button {
    min-height: 82px;
    padding: 16px 20px;
  }

  .platform-button img {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .social-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .social-icon {
    width: 82px;
    height: 82px;
  }

  footer {
    margin-top: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media(min-width:581px){.social-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-width:1100px;}}

.mail-grid{grid-template-columns:1fr!important;max-width:320px;margin:0 auto;}


/* v5 social alignment */
.social-grid{
    display:flex !important;
    justify-content:center;
    align-items:flex-start;
    flex-wrap:wrap;
    gap:60px;
    max-width:1000px;
    margin:0 auto;
}

.social-grid .social-link{
    flex:0 0 180px;
    text-align:center;
}

.mail-grid{
    justify-content:center;
}

@media (max-width:580px){
    .social-grid{
        flex-direction:column;
        align-items:center;
        gap:34px;
    }
    .social-grid .social-link{
        flex:none;
        width:220px;
    }
}


/* Absolute centering for mail section */
.mail-grid{
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    width:100%;
    max-width:none !important;
    margin:0 auto !important;
}
.mail-grid .social-link{
    flex:0 0 auto !important;
    width:auto !important;
    margin:0 auto !important;
    text-align:center !important;
}


/* News ticker responsive: dati esterni da news_source.js */
.news-ticker {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  margin-top: 28px;
  border: 1px solid rgba(255, 214, 0, 0.55);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(8, 8, 8, 0.86);
  box-shadow: 0 0 20px rgba(255, 214, 0, 0.10);
  text-align: left;
}

.news-ticker__label {
  display: grid;
  place-items: center;
  padding: 0 18px;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.news-ticker__viewport {
  --news-animation: 800ms;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  overflow: hidden;
  transition: height 260ms ease;
}

.news-ticker__viewport.no-height-transition {
  transition: none;
}

.news-ticker__item {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--soft-white);
  font-size: clamp(0.76rem, 1.5vw, 0.9rem);
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  opacity: 1;
  transform: translateY(0);
  visibility: hidden;
  will-change: transform;
  z-index: 1;
}

.news-ticker__item.is-current {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  z-index: 2;
}


.news-ticker__date {
  flex: 0 0 auto;
  color: var(--yellow);
  font-weight: 600;
}

.news-ticker__text {
  min-width: 0;
}

@media (max-width: 580px) {
  .news-ticker {
    grid-template-columns: 1fr;
  }

  .news-ticker__label {
    min-height: 30px;
    padding: 5px 12px;
  }

  .news-ticker__viewport {
    min-height: 76px;
  }

  .news-ticker__item {
    min-height: 76px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 14px 14px 16px;
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .news-ticker__date,
  .news-ticker__text {
    display: block;
    width: 100%;
    text-align: center;
  }
}


/* =========================================================
   PAGINA AUTORE — Cristiano Dalianera
   Estensione grafica coerente con la landing Cinerolla
   ========================================================= */
.author-home-card {
  width: min(760px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 28px;
  border: 1px solid rgba(255, 214, 0, 0.55);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,214,0,.055), rgba(255,255,255,.018));
  text-decoration: none;
  box-shadow: 0 0 26px rgba(255,214,0,.08);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.author-home-card:hover,
.author-home-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--yellow);
  box-shadow: 0 0 28px var(--yellow-soft);
  outline: none;
}
.author-home-card__kicker { color: var(--yellow); font-size: .72rem; letter-spacing: .22em; }
.author-home-card strong { margin-top: 8px; font-size: clamp(1.25rem, 3vw, 2rem); letter-spacing: .1em; }
.author-home-card__text { max-width: 620px; margin-top: 12px; color: var(--soft-white); font-size: .92rem; }
.author-home-card__cta { margin-top: 22px; color: var(--yellow); font-size: .78rem; letter-spacing: .15em; font-weight: 600; }

.author-shell { text-align: left; max-width: 980px; }
.author-nav { display:flex; align-items:center; justify-content:space-between; gap:20px; padding-bottom:26px; border-bottom:1px solid rgba(255,255,255,.11); }
.author-nav a { text-decoration:none; color:var(--soft-white); font-size:.78rem; letter-spacing:.16em; transition:color .2s ease; }
.author-nav a:hover, .author-nav a:focus-visible { color:var(--yellow); outline:none; }
.author-nav__mark { color:var(--yellow); font-size:.7rem; letter-spacing:.22em; }
.author-hero { display:flex; flex-direction:column; align-items:flex-start; padding:62px 0 12px; }
.author-logo { width:118px; height:auto; border-radius:50%; filter:drop-shadow(0 0 14px rgba(255,214,0,.52)) drop-shadow(0 0 38px rgba(255,214,0,.24)); }
.author-eyebrow { margin:30px 0 0; color:var(--yellow); font-size:.74rem; letter-spacing:.22em; }
.author-identity { width:100%; display:flex; align-items:center; justify-content:flex-start; gap:0; margin-top:13px; }
.author-name { margin:0; width:max-content; flex:0 0 auto; font-size:clamp(2.4rem, 7vw, 5.4rem); letter-spacing:.035em; line-height:.98; }
.author-portrait { flex:0 0 auto; margin-left:-2px; width:clamp(118px,16vw,170px); height:clamp(118px,16vw,170px); object-fit:cover; border-radius:50%; border:2px solid var(--yellow); box-shadow:0 0 18px rgba(255,214,0,.28),0 0 42px rgba(255,214,0,.10); filter:grayscale(100%); }
.author-role { margin:24px 0 0; color:var(--soft-white); font-size:clamp(.74rem, 1.7vw, .95rem); letter-spacing:.18em; line-height:1.8; }
.author-lead { max-width:760px; margin:26px 0 0; color:#d7d7d7; font-size:clamp(1rem, 2.2vw, 1.25rem); line-height:1.75; font-weight:300; }
.author-lead strong { color:var(--white); font-weight:600; }
.author-actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:34px; }
.author-actions a { display:inline-flex; align-items:center; justify-content:center; min-height:50px; padding:0 22px; border-radius:9px; text-decoration:none; font-size:.74rem; letter-spacing:.13em; font-weight:600; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.author-primary { background:var(--yellow); color:var(--black); border:1px solid var(--yellow); }
.author-secondary { border:1px solid rgba(255,255,255,.42); color:var(--white); }
.author-actions a:hover, .author-actions a:focus-visible { transform:translateY(-2px); box-shadow:0 0 22px rgba(255,214,0,.2); outline:none; }
.author-section { margin-top:84px; }
.author-section .section-heading { margin-bottom:38px; }
.author-copy { max-width:820px; margin:0; color:#d3d3d3; font-size:clamp(.96rem, 1.8vw, 1.08rem); line-height:1.85; }
.author-copy p { margin:0 0 20px; }
.author-copy strong { color:var(--white); }
.author-project-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.author-project-card { min-height:100%; padding:26px 24px 28px; border:1px solid rgba(255,255,255,.15); border-radius:12px; background:linear-gradient(155deg,rgba(255,255,255,.035),rgba(255,255,255,.01)); }
.author-project-card > span { color:var(--yellow); font-size:.72rem; letter-spacing:.15em; }
.author-project-card h3 { margin:14px 0 14px; color:var(--white); font-size:.96rem; line-height:1.45; letter-spacing:.07em; }
.author-project-card p { margin:0; color:#c5c5c5; font-size:.88rem; line-height:1.75; }
.author-quote { padding-left:24px; border-left:3px solid var(--yellow); }
.author-link-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.author-link-grid a { min-height:86px; display:flex; flex-direction:column; justify-content:center; padding:18px 22px; border:1px solid rgba(255,255,255,.16); border-radius:10px; text-decoration:none; background:rgba(255,255,255,.02); transition:border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.author-link-grid a:hover, .author-link-grid a:focus-visible { transform:translateY(-2px); border-color:var(--yellow); box-shadow:0 0 20px rgba(255,214,0,.12); outline:none; }
.author-link-grid small { color:var(--yellow); font-size:.68rem; letter-spacing:.2em; }
.author-link-grid strong { margin-top:5px; color:var(--white); font-size:.86rem; letter-spacing:.07em; overflow-wrap:anywhere; }
.author-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.author-footer a { color:var(--yellow); text-decoration:none; font-size:.76rem; letter-spacing:.16em; }
.author-footer p { margin:0; }

@media (max-width:820px) {
  .author-shell { width:min(720px,calc(100% - 30px)); }
  .author-hero { padding-top:46px; }
  .author-name { display:block; }
  .author-identity { gap:0; }
  .author-project-grid { grid-template-columns:1fr; }
}
@media (max-width:580px) {
  .author-shell { width:min(100% - 24px,520px); }
  .author-nav__mark { display:none; }
  .author-hero { padding-top:34px; }
  .author-logo { width:94px; }
  .author-name { font-size:clamp(2.15rem,13vw,3.5rem); }
  .author-identity { align-items:center; gap:0; }
  .author-portrait { width:92px; height:92px; }
  .author-role { letter-spacing:.12em; }
  .author-actions { width:100%; }
  .author-actions a { width:100%; }
  .author-section { margin-top:66px; }
  .author-section .section-heading { grid-template-columns:20px minmax(0,auto) 20px; gap:12px; }
  .author-section .section-heading h2 { text-align:center; line-height:1.45; }
  .author-link-grid { grid-template-columns:1fr; }
  .author-footer { flex-direction:column; align-items:flex-start; }
  .author-home-card { padding:28px 20px; }
}

/* v23: titolo autore su due righe + foto aderente al blocco */
.author-identity{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:4px;
}
.author-name{
  display:flex;
  flex-direction:column;
  width:auto !important;
  max-width:none;
  flex:0 0 auto;
}
.author-name span{
  display:block;
  white-space:nowrap;
}
.author-portrait{
  margin-left:0 !important;
  flex:0 0 auto;
}
@media (max-width: 620px){
  .author-identity{ gap:3px; }
}


/* v25 — autore responsive:
   desktop: foto aderente al nome;
   smartphone: foto subito sotto il nome. */
.author-identity{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  width:100%;
  gap:6px;
}

.author-name{
  display:flex;
  flex-direction:column;
  flex:0 0 auto;
  width:auto !important;
  max-width:100%;
  margin:0;
}

.author-name span{
  display:block;
  white-space:nowrap;
}

.author-portrait{
  display:block;
  flex:0 0 auto;
  width:clamp(118px,16vw,170px);
  height:clamp(118px,16vw,170px);
  max-width:100%;
  aspect-ratio:1 / 1;
  object-fit:cover;
  margin:0 !important;
}

@media (max-width:620px){
  .author-identity{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .author-name{
    width:100% !important;
    max-width:100%;
  }

  .author-name span{
    white-space:normal;
  }

  .author-portrait{
    width:clamp(96px,34vw,132px);
    height:auto;
    aspect-ratio:1 / 1;
    margin:0 !important;
  }
}

/* Attività autoriali, collaborazioni web e podcast */
.author-activity-wrap { overflow-x: auto; margin-top: 1.5rem; }
.author-activity-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .92rem; }
.author-activity-table th, .author-activity-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,.16); }
.author-activity-table th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.author-activity-table td:first-child { white-space: nowrap; font-weight: 700; }
.author-activity-table strong { font-weight: 700; }
@media (max-width: 700px) { .author-activity-table { min-width: 680px; font-size: .86rem; } .author-activity-table th, .author-activity-table td { padding: 12px; } }

/* v27 — tabella attività responsive senza scroll orizzontale */
.author-activity-wrap {
  overflow: visible;
}

@media (max-width: 700px) {
  .author-activity-table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .9rem;
  }

  .author-activity-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .author-activity-table tbody,
  .author-activity-table tr,
  .author-activity-table td {
    display: block;
    width: 100%;
  }

  .author-activity-table tr {
    margin: 0 0 18px;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
    background: linear-gradient(155deg,rgba(255,255,255,.035),rgba(255,255,255,.01));
  }

  .author-activity-table td {
    position: relative;
    box-sizing: border-box;
    padding: 11px 0 11px 7.4rem;
    border-bottom: 1px solid rgba(255,255,255,.10);
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .author-activity-table td:last-child {
    border-bottom: 0;
  }

  .author-activity-table td::before {
    position: absolute;
    left: 0;
    top: 11px;
    width: 6.7rem;
    color: var(--yellow);
    font-size: .68rem;
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .author-activity-table td:nth-child(1)::before { content: "Periodo"; }
  .author-activity-table td:nth-child(2)::before { content: "Progetto"; }
  .author-activity-table td:nth-child(3)::before { content: "Ruolo"; }
  .author-activity-table td:nth-child(4)::before { content: "Evidenza"; }
}

@media (max-width: 420px) {
  .author-activity-table tr {
    padding: 10px 14px;
  }

  .author-activity-table td {
    padding: 8px 0 12px;
  }

  .author-activity-table td::before {
    position: static;
    display: block;
    width: auto;
    margin-bottom: 4px;
  }
}
