@charset "UTF-8";
/* Media Queries
--------------------------------------------------------- */
/* HOVER
---------------------------------------------------------------------------------------------------- */
/* MISC
---------------------------------------------------------------------------------------------------- */
.visually-hidden {
  overflow: hidden !important;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
}

/* RESET
---------------------------------------------------------------------------------------------------- */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  vertical-align: baseline;
  margin: 0;
  padding: 0;
  font-size: 100%;
  background: transparent;
  border: 0;
  outline: 0;
}

html {
  font-size: 62.5%;
}

body {
  line-height: 1;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, main {
  display: block;
}

ul,
ol {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
  content: none;
}

a,
input,
button,
select,
textarea {
  appearance: none;
  text-decoration: none;
  outline: none;
}

a {
  vertical-align: baseline;
  margin: 0;
  padding: 0;
  font-size: 100%;
  color: inherit;
  background: transparent;
  outline: none;
}

button {
  padding: 0;
  cursor: pointer;
}

ins {
  text-decoration: none;
  color: #000;
  background-color: #ff9;
}

mark {
  font-style: italic;
  font-weight: 700;
  color: #000;
  background-color: #ff9;
}

del {
  text-decoration: line-through;
}

abbr[title],
dfn[title] {
  border-bottom: 1px dotted;
  cursor: help;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

hr {
  display: block;
  height: 1px;
  padding: 0;
  border: none;
}

input,
select {
  vertical-align: middle;
}

/* Base — scoped to slideshow container only
   (No global body/html/a rules — this CSS is loaded inline in the main page)
---------------------------------------------------------------------------------------------------- */
body {
  background-color: #ede7db; /* !! NON RIMUOVERE — colore sfondo identità INSULÆ */
}

#slideshow-container {
  --color-text: #3A3630;
  --color-bg: #EDE7DB;
  --color-title: #1C1A16;
  --color-link: #C4622D;
  --color-link-hover: #1C1A16;
  --color-muted: #8C8479;
  --color-border: #CFC9BC;
  --color-accent: #C4622D;
}

/* MAIN
--------------------------------------------------------- */
#stage {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media only screen and (max-width: 767px) {
  * {
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer */
    -khtml-user-select: none; /* KHTML browsers (e.g. Konqueror) */
    -webkit-user-select: none; /* Chrome, Safari, and Opera */
    -webkit-touch-callout: none; /* Disable Android and iOS callouts*/
  }
}

.frame {
  user-select: none;
}

/* TYPOGRAPHY
---------------------------------------------------------------------------------------------------- */
/* Styles
--------------------------------------------------------- */
.title-wrap {
  position: absolute;
  bottom: 230px;
  left: 74px;
  right: -6px;
  z-index: 100;
}

.title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  font-style: italic;
  text-transform: none;
  font-size: clamp(20px, 3.5vw, 52px);
  line-height: 1;
  color: var(--color-title);
  pointer-events: none;
  letter-spacing: -0.02em;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Split
--------------------------------------------------------- */
.split {
  display: inline-block;
  overflow: hidden;
}
.split:nth-child(1) {
  transform: translate3d(1ch, -50%, 0);
}
.split:nth-child(2) {
  transform: translate3d(-1ch, 50%, 0);
}

.split__text {
  display: block;
}

/* Slide meta — autore e link (Proposta A) */
.slide-meta {
  position: absolute;
  bottom: 12%;
  left: 100px;
  z-index: 200;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  width: 320px;
}
.slide-meta.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.slide-meta__photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(20%);
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  display: block;
}

.slide-meta__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slide-meta__author {
    font-family: "Barlow Semi Condensed", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0px;
    text-transform: uppercase;
    color: var(--color-muted);
    line-height: 32px;
}

.slide-meta__link {
  font-family: "Barlow Semi Condensed", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-title);
  /* border-bottom: 1px solid var(--color-title); */
  padding-bottom: 3px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: gap 0.25s, color 0.2s, border-color 0.2s;
  margin-top: 4px;
}
.slide-meta__link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  gap: 18px;
}

/* Slide counter */
.slide-counter {
  position: absolute;
  bottom: 11.5rem;
  right: 10rem;
  z-index: 200;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  font-weight: 300;
  font-style: italic;
  color: var(--color-muted);
  letter-spacing: 0.1em;
  pointer-events: none;
}

/* Anno paper — top right */
.slide-date-top {
  position: absolute;
  top: 9.5rem;
  right: 11rem;
  z-index: 200;
  font-family: "Barlow Semi Condensed", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c4622d;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Slider
---------------------------------------------------------------------------------------------------- */
.slideshow {
  display: flex;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
}
@media only screen and (max-width: 767px) {
  .slideshow {
    padding: 20vh 24vw;
  }
}

.slideshow__inner {
  width: 100%;
  max-width: 200px;
}
@media only screen and (min-width: 1024px) {
  .slideshow__inner {
    width: 24vw;
    max-width: 360px;
  }
}

.slide {
  position: relative;
}
.slide > img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.slide::before {
  content: "";
  display: block;
  padding-top: 160%;
}
.slide {
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin-bottom: 15%;
}
.slide h3, .slide .js-author, .slide .js-date, .slide .js-link {
  opacity: 0;
  user-select: none;
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}
.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  user-select: none;
  pointer-events: none;
}
@media only screen and (max-width: 767px) {
  .slide {
    margin-bottom: 75px;
  }
}

/* Deco elements
---------------------------------------------------------------------------------------------------- */
.deco {
  display: none;
}
