/* 
   GALAXY BAKERY - Global Premium Stylesheet
   Design System: Cosmic Dark + Clean Interactive Elements
*/

@import url('https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&subset=latin,latin-ext&display=swap');

:root {
  /* Colors */
  --bg-cosmic: #0a0c10;
  --bg-cosmic-darker: #050608;
  --bg-cosmic-card: #12161f;
  --bg-light: #ffffff;
  --bg-light-alt: #f8fafc;
  
  --primary: #7EBEC5;
  --primary-glow: rgba(126, 190, 197, 0.4);
  --primary-hover: #9cd4db;
  --accent: #2ea3f2;
  
  --text-dark: #333333;
  --text-muted-dark: #666666;
  --text-light: #f1f5f9;
  --text-muted-light: #abb8c3;
  
  --border-light: #e2e8f0;
  --border-dark: rgba(255, 255, 255, 0.1);
  
  /* Fonts */
  --font-sans: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cosmic);
  color: var(--text-light);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-light);
}

p {
  margin-bottom: 1.2rem;
}

/* Sticky Header Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(10, 12, 16, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-dark);
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-img {
  height: 48px;
  width: auto;
  transition: var(--transition-smooth);
}

.logo-text {
  font-size: 1.25rem;
  letter-spacing: 2px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-light);
}

.logo-text span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted-light);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Mobile Menu Toggle (Simplified clean design) */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* Sections Base Layouts */
.section {
  padding: 5rem 2rem;
  position: relative;
}

.section-dark-bg {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.section-dark-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(5,6,8,0.7) 0%, rgba(5,6,8,0.95) 100%);
  z-index: 1;
}

.section-content {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-light {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.section-light h1, .section-light h2, .section-light h3, .section-light h4 {
  color: var(--text-dark);
}

.section-light p {
  color: var(--text-muted-dark);
}

/* Hero Section */
.hero-section {
  padding-top: 10rem;
  padding-bottom: 7rem;
  text-align: center;
}

.hero-logo-container {
  margin-bottom: 2rem;
}

.hero-logo {
  max-height: 180px;
  filter: drop-shadow(0 0 15px var(--primary-glow));
  animation: float 6s ease-in-out infinite;
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(126, 190, 197, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-description {
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.15rem;
  color: var(--text-muted-light);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  border: 2px solid var(--primary);
  background-color: transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn:hover {
  background-color: var(--primary);
  color: var(--bg-cosmic-darker);
  box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary-filled {
  background-color: var(--primary);
  color: var(--bg-cosmic-darker);
}

.btn-primary-filled:hover {
  background-color: transparent;
  color: var(--primary);
}

/* Video Containers */
.video-container {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  background-color: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Vision / Details Columns */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  text-align: center;
}

@media(min-width: 768px) {
  .vision-grid {
    grid-template-columns: 2fr 1fr;
    text-align: left;
  }
}

.vision-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.vision-text h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--primary);
  margin: 0.5rem auto 0;
}

@media(min-width: 768px) {
  .vision-text h2::after {
    margin: 0.5rem 0 0;
  }
}

.vision-text p {
  font-size: 1.15rem;
  color: var(--text-muted-light);
}

/* 6 Pillars / Future Section Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media(min-width: 576px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width: 992px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  background-color: var(--bg-cosmic-card);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pillar-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(126, 190, 197, 0.15);
}

.pillar-icon-wrapper {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-icon {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.pillar-card h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.pillar-card p {
  font-size: 0.95rem;
  color: var(--text-muted-light);
  margin-bottom: 0;
}

/* Prototipazione Grid & Elements */
.proto-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media(min-width: 992px) {
  .proto-section-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.proto-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.proto-text p {
  margin-bottom: 1rem;
}

.proto-text blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
}

.proto-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.proto-img-container {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.proto-img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

.proto-img:hover {
  transform: scale(1.05);
}

/* Newsletter Form */
.newsletter-section {
  text-align: center;
}

.newsletter-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.newsletter-section p {
  color: var(--text-muted-light);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

@media(min-width: 576px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.form-group {
  flex: 1;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border-radius: 4px;
  border: 1px solid var(--border-dark);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(126, 190, 197, 0.2);
}

.newsletter-form .btn {
  flex-shrink: 0;
}

/* Ricerche Grid List */
.ricerche-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media(min-width: 768px) {
  .ricerche-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width: 992px) {
  .ricerche-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.research-card {
  background-color: var(--bg-cosmic-card);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.research-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.research-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.research-date {
  font-size: 0.85rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.research-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.research-card h3 a {
  color: var(--text-light);
}

.research-card h3 a:hover {
  color: var(--primary);
}

.research-card p {
  font-size: 0.95rem;
  color: var(--text-muted-light);
  flex-grow: 1;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.research-readmore {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Quote Section */
.quote-section {
  text-align: center;
  padding: 6rem 2rem;
}

.quote-text {
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  line-height: 1.4;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.quote-author {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  background-color: var(--bg-cosmic-darker);
  border-top: 1px solid var(--border-dark);
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted-light);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  max-height: 40px;
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-link {
  color: var(--text-muted-light);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-copyright {
  margin-top: 1rem;
  font-size: 0.8rem;
}

/* Team Page Styles */
.team-header-section {
  padding-top: 9rem;
  padding-bottom: 4rem;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

@media(min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-card {
  background-color: var(--bg-cosmic-card);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 15px 30px rgba(126, 190, 197, 0.15);
}

.team-img-wrapper {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background-color: #0b0e14;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.team-card:hover .team-img {
  transform: scale(1.03);
}

.team-info {
  padding: 1.75rem;
}

.team-role {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.team-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.team-bio {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted-light);
  font-style: italic;
}

/* Article Page Layout */
.article-page {
  padding-top: 9rem;
  padding-bottom: 5rem;
}

.article-header {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.article-meta {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.article-header h1 {
  font-size: 2.5rem;
  line-height: 1.25;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--bg-cosmic-card);
  padding: 3rem 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-dark);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
}

.article-body h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.article-body h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  background-color: rgba(126, 190, 197, 0.05);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  border-radius: 0 4px 4px 0;
}

.article-body blockquote p {
  margin-bottom: 0;
}

.article-body hr {
  border: 0;
  height: 1px;
  background-color: var(--border-dark);
  margin: 2.5rem 0;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Responsive Hamburger Menu (CSS logic) */
@media(max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 80px);
    background-color: rgba(10, 12, 16, 0.98);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 1.5rem;
    border-left: 1px solid var(--border-dark);
    transition: var(--transition-smooth);
  }
  
  .nav-menu.open {
    right: 0;
  }
}
