* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #0a1628;
  --color-white: #ffffff;
  --color-accent: #b8860b;
  --color-bg: #f8f9fa;
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Roboto", sans-serif;
  background: var(--color-white);
  color: var(--color-primary);
  overflow-x: hidden;
}

/* Top bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10, 22, 40, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--color-primary);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
  transition: all 0.3s ease;
  padding: 10px 20px;
  border: 1px solid transparent;
}

.back-button::before {
  content: "←";
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.back-button:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.back-button:hover::before {
  transform: translateX(-5px);
}

.top-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-logo img {
  width: 40px;
  height: 40px;
}

.top-logo-text {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--color-primary);
}

.logo-accent {
  color: var(--color-accent);
}

/* Main container */
.main-container {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

/* Page header */
.page-header {
  padding: 60px 5% 40px;
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
}

.page-breadcrumb {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(10, 22, 40, 0.5);
  margin-bottom: 20px;
  font-weight: 300;
}

.page-title {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-subtitle {
  font-size: 1rem;
  color: rgba(10, 22, 40, 0.6);
  font-weight: 300;
  max-width: 800px;
}

/* Control panel */
.control-panel {
  background: var(--color-bg);
  border-top: 1px solid rgba(10, 22, 40, 0.08);
  padding: 80px 5% 120px;
}

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

/* Button Section */
.button-section {
  margin-bottom: 60px;
}

.button-wrapper {
  text-align: center;
}

/* Application Button - Raffinato ed Elegante */
.application-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 28px 70px;
  background: linear-gradient(135deg, var(--color-accent) 0%, #c9a227 50%, var(--color-accent) 100%);
  background-size: 200% 100%;
  color: var(--color-white);
  border: none;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 10px 40px rgba(184, 134, 11, 0.3),
    0 0 0 1px rgba(184, 134, 11, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.button-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
}

.button-icon {
  width: 26px;
  height: 26px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: left 0.7s ease;
  z-index: 1;
}

.application-button:hover {
  background-position: 100% 0;
  box-shadow:
    0 15px 60px rgba(184, 134, 11, 0.5),
    0 0 0 1px rgba(184, 134, 11, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  transform: translateY(-3px) scale(1.02);
}

.application-button:hover .button-shine {
  left: 100%;
}

.application-button:hover .button-icon {
  transform: translateY(-5px);
}

.application-button:active {
  transform: translateY(-1px) scale(1);
  box-shadow:
    0 8px 30px rgba(184, 134, 11, 0.4),
    0 0 0 1px rgba(184, 134, 11, 0.5);
}

.button-description {
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(10, 22, 40, 0.5);
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* Form Section */
.form-section {
  margin-top: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-header {
  margin-bottom: 40px;
}

.form-label {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 15px;
  font-weight: 500;
}

.form-title {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.form-description {
  font-size: 0.95rem;
  color: rgba(10, 22, 40, 0.6);
  font-weight: 300;
  max-width: 700px;
}

/* Google Form Embed Frame - Incastonato */
.form-embed-frame {
  position: relative;
  background: var(--color-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 20px 80px rgba(10, 22, 40, 0.12),
    0 0 0 1px rgba(184, 134, 11, 0.15);
}

/* Bordi decorativi incastonati */
.frame-border-top,
.frame-border-left,
.frame-border-right,
.frame-border-bottom {
  position: absolute;
  background: linear-gradient(90deg,
    transparent,
    var(--color-accent),
    transparent
  );
  opacity: 0.3;
  z-index: 10;
  pointer-events: none;
}

.frame-border-top {
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
}

.frame-border-bottom {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
}

.frame-border-left {
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg,
    transparent,
    var(--color-accent),
    transparent
  );
}

.frame-border-right {
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg,
    transparent,
    var(--color-accent),
    transparent
  );
}

.frame-header {
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.03), rgba(10, 22, 40, 0.01));
  padding: 20px 30px;
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
  display: flex;
  align-items: center;
  gap: 20px;
}

.frame-dots {
  display: flex;
  gap: 8px;
}

.frame-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(184, 134, 11, 0.3);
  border: 1px solid rgba(184, 134, 11, 0.4);
  transition: all 0.3s ease;
}

.frame-dots .dot:nth-child(1) {
  background: rgba(184, 134, 11, 0.4);
}

.frame-dots .dot:nth-child(2) {
  background: rgba(184, 134, 11, 0.5);
}

.frame-dots .dot:nth-child(3) {
  background: rgba(184, 134, 11, 0.6);
}

.form-embed-frame:hover .frame-dots .dot {
  background: var(--color-accent);
}

.frame-title {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(10, 22, 40, 0.7);
  font-weight: 700;
}

.form-embed-wrapper {
  background: var(--color-white);
  min-height: 1400px;
  position: relative;
}

.form-embed-wrapper iframe {
  display: block;
  width: 100%;
  background: transparent;
}

/* Form Footer */
.form-footer {
  margin-top: 40px;
  padding: 30px;
  background: rgba(184, 134, 11, 0.05);
  border-left: 3px solid var(--color-accent);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border-radius: 2px;
}

.footer-icon {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-icon svg {
  width: 100%;
  height: 100%;
}

.footer-text {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(10, 22, 40, 0.7);
  font-weight: 300;
}

/* Responsive */
@media (max-width: 1024px) {
  .page-title {
    font-size: 3rem;
  }

  .application-button {
    padding: 24px 50px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }

  .form-title {
    font-size: 2rem;
  }

  .application-button {
    padding: 20px 40px;
    font-size: 0.9rem;
  }

  .button-content {
    gap: 12px;
  }

  .button-icon {
    width: 22px;
    height: 22px;
  }

  .frame-header {
    padding: 15px 20px;
  }

  .form-footer {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 2rem;
  }

  .application-button {
    width: 100%;
    padding: 18px 30px;
    font-size: 0.85rem;
  }

  .control-panel {
    padding: 50px 5% 80px;
  }
}