/* ALFREDO FELLETTI — stile condiviso HTML5 + CSS3 */
:root {
  --black: #171717;
  --white: #f7f7f5;
  --muted: #858585;
  --line: #deded9;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.site-header {
  min-height: 92px;
  padding: 23px 6.5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; gap: 5px; white-space: nowrap; }
.brand-name { font-size: 13px; font-weight: 700; letter-spacing: .16em; }
.brand-role { color: var(--muted); font-size: 9px; letter-spacing: .34em; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
.main-nav a { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.main-nav a:hover { opacity: .5; }
main { flex: 1; }
.home-main {
  min-height: calc(100vh - 150px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 55px 6.5%;
}
.home-video {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 760px);
  max-height: 65vh;
  object-fit: contain;
  background: #111;
}
.content-page { width: min(100% - 13%, 1320px); margin: 0 auto; padding: 85px 0 110px; }
.eyebrow { margin: 0 0 20px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .22em; }
h1 { margin: 0 0 52px; font-size: clamp(48px, 7vw, 82px); line-height: .98; letter-spacing: -.065em; font-weight: 500; }
h1 span { font-family: var(--serif); }
.profile-content { display: grid; grid-template-columns: 1fr 2fr; gap: 8%; max-width: 900px; }
.profile-rule { width: 100%; height: 1px; margin-top: 15px; background: var(--black); }
.profile-content p, .contact-page > p:not(.eyebrow) { max-width: 650px; color: #686868; font-size: 14px; line-height: 2; }
.lead { color: var(--black) !important; font-family: var(--serif); font-size: clamp(23px, 3vw, 34px) !important; line-height: 1.35 !important; }
.page-heading { margin-bottom: 42px; }
.page-heading h1 { margin-bottom: 0; }
.contact-details { display: flex; flex-wrap: wrap; gap: 70px; margin-top: 55px; padding-top: 25px; border-top: 1px solid var(--line); }
.contact-details > div { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.detail-label { color: var(--muted); font-size: 9px; letter-spacing: .18em; }
.contact-details a:hover { text-decoration: underline; }
.site-footer {
  padding: 22px 6.5%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .08em;
}
@media (max-width: 760px) {
  .site-header { padding: 20px 6%; align-items: flex-start; flex-direction: column; }
  .main-nav { width: 100%; flex-wrap: wrap; gap: 15px 22px; }
  .main-nav a { font-size: 9px; }
  .home-main { min-height: calc(100vh - 175px); padding: 38px 6%; }
  .home-video { max-width: min(100%, 620px); max-height: 62vh; }
  .content-page { width: 88%; padding: 65px 0 80px; }
  h1 { margin-bottom: 38px; }
  .profile-content { grid-template-columns: 1fr; gap: 25px; }
  .profile-rule { max-width: 90px; }
  .contact-details { gap: 32px; }
  .site-footer { padding: 20px 6%; }
}
@media (max-width: 420px) {
}


/* Pagina Profilo: impaginazione editoriale per il racconto biografico */
.profile-intro {
  max-width: 850px;
  padding-bottom: 70px;
  border-bottom: 1px solid var(--line);
}
.profile-intro h1 { margin-bottom: 34px; }
.profile-intro > p:not(.eyebrow) {
  max-width: 760px;
  color: #666;
  font-size: 15px;
  line-height: 2;
}
.profile-intro .profile-opening {
  color: var(--black) !important;
  font-family: var(--serif);
  font-size: clamp(21px, 2.6vw, 29px) !important;
  line-height: 1.55 !important;
}
.profile-story {
  max-width: 850px;
  margin: 0 auto;
  padding-top: 75px;
}
.story-section { margin-bottom: 76px; }
.story-section .eyebrow { margin-bottom: 15px; }
.story-section h2 {
  margin: 0 0 25px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 43px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -.035em;
}
.story-section h2 span { font-family: var(--sans); }
.story-section p:not(.eyebrow) {
  color: #555;
  font-size: 14px;
  line-height: 2;
  margin-bottom: 19px;
}
.profile-signature {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 24px;
}
.profile-signature em {
  color: var(--muted);
  font-size: 16px;
}
@media (max-width: 760px) {
  .profile-intro { padding-bottom: 48px; }
  .profile-story { padding-top: 52px; }
  .story-section { margin-bottom: 55px; }
}


/* Gallery: miniature uniformi e visualizzazione della foto */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 34px 22px;
}
.gallery-item { margin: 0; min-width: 0; }
.gallery-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e7e7e3;
}
.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, opacity .35s ease;
}
.gallery-thumb:hover img { transform: scale(1.035); opacity: .88; }
.gallery-item figcaption {
  padding-top: 13px;
  text-align: center;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
}

/* Lightbox CSS: l'immagine ingrandita conserva le proporzioni originali.
   Se supera lo schermo viene ridotta solo per entrare nell'area visibile. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vh 7vw;
  background: rgba(0, 0, 0, .97);
}
.lightbox:target { display: flex; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.lightbox > img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 86vw;
  max-height: 88vh;
  object-fit: contain;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  z-index: 2;
  color: #fff;
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
  opacity: .85;
}
.lightbox-close { top: 22px; right: 30px; font-size: 38px; }
.lightbox-prev, .lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  padding: 15px;
  font-size: 48px;
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: .55; }
.lightbox-count {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #aaa;
  font-size: 10px;
  letter-spacing: .18em;
}
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 13px; }
  .gallery-item figcaption { font-size: 15px; }
  .lightbox { padding: 7vh 4vw; }
  .lightbox > img { max-width: 92vw; max-height: 84vh; }
  .lightbox-prev { left: 2px; }
  .lightbox-next { right: 2px; }
  .lightbox-prev, .lightbox-next { font-size: 38px; }
}
@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr; }
}


/* Pagina Contatti e collegamenti social */
.social-section {
  max-width: 850px;
  margin-top: 65px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.social-section h2 {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: clamp(27px, 3.5vw, 38px);
  font-weight: 400;
  letter-spacing: -.035em;
}
.social-section h2 span { font-family: var(--sans); }
.social-links { border-top: 1px solid var(--line); }
.social-link {
  display: grid;
  grid-template-columns: 1fr 1.5fr 30px;
  align-items: center;
  gap: 20px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity .2s ease;
}
.social-link:hover { opacity: .55; }
.social-name { font-family: var(--serif); font-size: 23px; }
.social-handle { color: #777; font-size: 12px; }
.social-arrow { justify-self: end; font-size: 20px; }
@media (max-width: 600px) {
  .social-section { margin-top: 45px; }
  .social-link { grid-template-columns: 1fr 30px; gap: 8px; }
  .social-handle { grid-column: 1; grid-row: 2; }
  .social-arrow { grid-column: 2; grid-row: 1 / span 2; }
}


/* Indirizzo email nella pagina Contatti */
.email-section {
  max-width: 850px;
  margin-top: 48px;
}
.email-section h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(27px, 3.5vw, 38px);
  font-weight: 400;
  letter-spacing: -.035em;
}
.email-section h2 span { font-family: var(--sans); }
.email-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--black);
  font-size: 14px;
}
.email-link:hover { opacity: .55; }
.email-link span { font-size: 18px; }


/* Home: titolo su due righe, sopra il video e con distanza ben visibile */
.home-main {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 42px;
}
.home-title {
  width: min(100% - 40px, 760px);
  margin: 0;
  text-align: center;
}
.home-title h1 {
  margin: 0;
  white-space: normal;
  font-family: var(--serif, Georgia, "Times New Roman", serif);
  font-size: clamp(34px, 4.5vw, 48px);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -.04em;
}
@media (max-width: 760px) {
  .home-main {
    gap: 34px;
  }
  .home-title h1 {
    font-size: clamp(30px, 7vw, 40px);
  }
}
@media (max-width: 420px) {
  .home-main {
    gap: 28px;
  }
  .home-title h1 {
    font-size: 30px;
  }
}
