/* quicksand-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/quicksand-v37-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* quicksand-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/quicksand-v37-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* quicksand-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/quicksand-v37-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* quicksand-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/quicksand-v37-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* quicksand-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/quicksand-v37-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}



/* ========= RESET AND BASE STYLES ========= */
:root {
  /* Colors */
  --color-primary-dark: #0066CC;
  --color-primary-light: #33CCFF;
  --color-background-light: #E6F3FF;
  --color-surface: #FFFFFF;
  --color-text: #212529;
  --color-text-secondary: #6c757d;

  /* Typography */
  --font-family-base: 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing */
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Radii */
  --radius-base: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Transitions */
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
}


.custom-link,
.custom-link:visited, .custom-link:hover {
  color: var(--color-primary-dark);         /* Set link color */
  text-decoration: none;  /* Remove underline */
}


.custom-link2,
.custom-link2:visited {
  color: var(--color-surface);         /* Set link color */
  text-decoration: none;  /* Remove underline */
}

.custom-link2:hover,
.custom-link2:focus {
  text-decoration: underline;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    color: var(--color-text);
    background-color: #f8f9fa; /* Base background for content */
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-right: auto;
  margin-left: auto;
  padding: 0 var(--space-24);
}

/* ========= PRELOADER ========= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-icon {
    width: 80px;
    height: 80px;
    animation: rotate 5s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========= HERO SECTION (LANDING) ========= */
.hero-landing {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('../images/bg.jpg') center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.hero-landing::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.25);
    z-index: 1;
}

.wave-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.wave-line {
    position: absolute;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    animation: drift 20s ease-in-out infinite;
    transform-origin: center;
}

.wave-line:nth-child(1) { top: 50%; animation-duration: 25s; animation-delay: 0s; } /*20% se ne metti 3, riporta a 20%*/
.wave-line:nth-child(2) { top: 45%; animation-duration: 30s; animation-delay: -5s; opacity: 0.5; }
.wave-line:nth-child(3) { top: 70%; animation-duration: 22s; animation-delay: -10s; opacity: 0.7; }

@keyframes drift {
    0%, 100% { transform: translateX(-25%) rotate(-1deg); }
    50% { transform: translateX(-75%) rotate(1deg); }
}

.hero-landing .content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 1.5s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.ocean-title {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 0.5em;
}

.ocean-letter {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.letter {
    font-size: 3.5rem;
    font-weight: 500;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    line-height: 0.9;
}

.meaning {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: -0.2rem;
    letter-spacing: 0.05rem;
    text-transform: lowercase;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
    letter-spacing: 0.1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.8);
    font-size: 0.9rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.05);
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 20px;
    cursor: pointer;
    z-index: 10;
}
.scroll-down-indicator span {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
    animation: scroll-pulse 2s infinite;
}
@keyframes scroll-pulse {
    0% { transform: translate(-50%, 0); opacity: 1; }
    50% { transform: translate(-50%, 10px); opacity: 1; }
    100% { transform: translate(-50%, 10px); opacity: 0; }
}


/* ========= CONTENT SECTIONS ========= */
#main-content {
    position: relative;
    z-index: 10;
    background-color: var(--color-surface);
}

section {
    padding: 60px 0;
    position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-32);
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-16);
  font-weight: 600;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* GEOMETRIC WAVES */
.geometric-waves-top {
  position: absolute;
  top: -1px; /* Overlap slightly to prevent gaps */
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
  pointer-events: none;
}

.geometric-waves-top svg {
    width: 100%;
    height: 100%;
}

/* OCEAN PHASES SECTION */
.phases-section {
  padding-top: 100px;
  background: var(--color-background-light);
}

.phases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-24);
  margin-top: var(--space-32);
}

.phase-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 102, 204, 0.1);
  padding: var(--space-24);
  position: relative;
  transition: all var(--duration-normal) var(--ease-standard);
  border: 1px solid rgba(51, 204, 255, 0.2);
}

.phase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15);
}

.phase-letter {
  position: absolute;
  top: -20px;
  left: var(--space-24);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
}

.phase-content {
  margin-top: var(--space-24);
}

.phase-content h3 {
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-8);
}

.phase-content > p {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-16);
}

.phase-description {
  font-size: 1rem;
  line-height: 1.6;
}

/* TEAM SECTION */
.team-section {
  padding-top: 100px;
  background: var(--color-surface);
}

.team-content-open {
  max-width: 900px;
  margin: 0 auto;
}

.author-info-open {
  text-align: center;
  padding: 0 var(--space-16);
}

.author-info-open h3 {
  font-size: 2.5rem;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-12);
}
.author-title { font-size: 1.25rem; margin-bottom: var(--space-8); }
.author-affiliation, .author-lab { font-size: 1.1rem; color: var(--color-text-secondary); margin-bottom: var(--space-8); }
.author-lab { color: var(--color-primary-light); margin-bottom: var(--space-24); }
.author-bio p { font-size: 1.1rem; line-height: 1.7; max-width: 800px; margin: 0 auto; }
.expertise-tags { display: flex; flex-wrap: wrap; gap: var(--space-12); margin: var(--space-32) 0; justify-content: center; }

.tag {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-light));
  color: white;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
}
.btn--outline {
  background: transparent;
  border: 1px solid var(--color-primary-dark);
  color: var(--color-primary-dark);
}
.btn--outline:hover { background: rgba(0, 102, 204, 0.1); }
.btn--primary {
    background: var(--color-primary-dark);
    color: white;
}
.btn--primary:hover {
    background: #0056b3;
}
.btn--lg {
    padding: var(--space-16) var(--space-32);
    font-size: 1.2rem;
}

/* SERVICES SECTION */
.services-section { padding-top: 100px; background: #CCE7FF; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-24); margin-top: var(--space-32); }
.service-card { background: white; border-radius: var(--radius-lg); padding: var(--space-24); box-shadow: 0 8px 32px rgba(0, 102, 204, 0.08); text-align: center; }
.service-icon { width: 60px; height: 60px; margin: 0 auto var(--space-20); color: var(--color-primary-light); }
.service-card h3 { font-size: 1.25rem; color: var(--color-primary-dark); margin-bottom: var(--space-16); }
.service-card p { line-height: 1.6; }

/* BOOK SECTION */
.book-section { padding-top: 100px; background: #F8F9FA; }
.book-content { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-32); align-items: start; } /* era center */
.book-info h2 { font-size: 2.5rem; color: var(--color-primary-dark); margin-bottom: var(--space-12); }
.book-authors { font-size: 1.1rem; margin-bottom: var(--space-8); }
.book-publisher { color: var(--color-text-secondary); margin-bottom: var(--space-24); }
.book-description p { line-height: 1.7; margin-bottom: var(--space-16); }
.book-visual { display: flex; justify-content: center; align-items: center; }
.book-visual img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: var(--radius-base);
  box-shadow: 0 20px 40px rgba(0, 102, 204, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.book-visual img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 45px rgba(0, 102, 204, 0.3);
}


/* CONTACT SECTION */
.contact-section { padding-top: 100px; background: var(--color-background-light); }
.contact-content { max-width: 800px; margin: 0 auto; text-align: center; }
.contact-description p { font-size: 1.1rem; line-height: 1.6; }
.contact-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-24); margin: var(--space-32) 0; }
.contact-item { background: white; border-radius: var(--radius-lg); padding: var(--space-20); box-shadow: 0 4px 16px rgba(0, 102, 204, 0.08); }
.contact-item h4 { color: var(--color-primary-dark); margin-bottom: var(--space-12); }
.contact-item a { color: var(--color-primary-light); text-decoration: none; font-weight: 500; }
.contact-item a:hover { text-decoration: underline; color: var(--color-primary-dark); }
.contact-cta .btn {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-light));
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.3);
}

/* FOOTER */
.footer { background: var(--color-primary-dark); color: white; padding: var(--space-24) 0; text-align: center; }
.footer-content p { margin-bottom: var(--space-8); opacity: 0.9; }
.footer-content p:last-child { margin-bottom: 0; }

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    /*.letter { font-size: 2.5rem; }
    .subtitle { font-size: 1rem; }*/
    .book-content { grid-template-columns: 1fr; text-align: center; }
    .book-visual { margin-top: var(--space-32); }
    .section-header h2, .author-info-open h3, .book-info h2 { font-size: 2rem; }
}

/*@media (max-width: 480px) {
    .ocean-title { flex-direction: column; }
    .ocean-letter { flex-direction: row; align-items: center; gap: 1rem; }
    .letter { font-size: 2rem; }
    .meaning { font-size: 0.8rem; margin-top: 0; }
}*/
